I got my app running pretty well again, so I renabled the alarms see it is commented out for cmake: . I did nothing but start the picow up and after a few seconds I get the hang:
This is a hang, not a crash. I cntl-C in gdb to get this stack trace.
I do not know what specially triggered this. I will keep trying stuff. It is a complete system including LWIP http host and tcp client/host. I am trying to see what causes the hang.
Code:
#add_definitions(-DPICO_TIME_DEFAULT_ALARM_POOL_DISABLED=1)This is a hang, not a crash. I cntl-C in gdb to get this stack trace.
I do not know what specially triggered this. I will keep trying stuff. It is a complete system including LWIP http host and tcp client/host. I am trying to see what causes the hang.
Code:
#0 0x1000be0c in timer_time_reached (t=266262602042090978, timer=0x40054000) at /home/calfee/Projects/pico-sdk/src/rp2_common/hardware_timer/include/hardware/timer.h:323#1 time_reached (t=266262602042090978) at /home/calfee/Projects/pico-sdk/src/rp2_common/hardware_timer/include/hardware/timer.h:335#2 best_effort_wfe_or_timeout (timeout_timestamp=266262602042090978) at /home/calfee/Projects/pico-sdk/src/common/pico_time/time.c:475#3 0x200003ba in sem_acquire_block_until (sem=0x200011f0 <cyw43_async_context_poll+32>, until=<optimized out>) at /home/calfee/Projects/pico-sdk/src/common/pico_sync/sem.c:54#4 0x10020476 in async_context_poll_wait_for_work_until (self_base=<optimized out>, until=<optimized out>) at /home/calfee/Projects/pico-sdk/src/rp2_common/pico_async_context/async_context_poll.c:45#5 0x100203a4 in async_context_wait_for_work_until (until=<optimized out>, context=0x200011d0 <cyw43_async_context_poll>) at /home/calfee/Projects/pico-sdk/src/rp2_common/pico_async_context/include/pico/async_context.h:424#6 cyw43_await_background_or_timeout_us (timeout_us=timeout_us@entry=1000) at /home/calfee/Projects/pico-sdk/src/rp2_common/pico_cyw43_driver/cyw43_driver.c:172#7 0x1001c956 in cyw43_do_ioctl (self=self@entry=0x20002778 <cyw43_state>, kind=kind@entry=0, cmd=cmd@entry=262, len=len@entry=9, buf=buf@entry=0x200027bc <cyw43_state+68> "ccgpioin", iface=0) at /home/calfee/Projects/pico-sdk/lib/cyw43-driver/src/cyw43_ll.c:1207#8 0x1001ef22 in cyw43_do_ioctl (iface=0, buf=0x200027bc <cyw43_state+68> "ccgpioin", len=9, cmd=262, kind=0, self=0x20002778 <cyw43_state>) at /home/calfee/Projects/pico-sdk/lib/cyw43-driver/src/cyw43_ll.c:1182#9 cyw43_ll_gpio_get (self_in=self_in@entry=0x20002778 <cyw43_state>, gpio_n=gpio_n@entry=0, gpio_en=gpio_en@entry=0x20041cff) at /home/calfee/Projects/pico-sdk/lib/cyw43-driver/src/cyw43_ll.c:2388#10 0x1001fbfa in cyw43_gpio_get (self=0x20002778 <cyw43_state>, gpio=gpio@entry=0, val=val@entry=0x20041cff) at /home/calfee/Projects/pico-sdk/lib/cyw43-driver/src/cyw43_ctrl.c:737#11 0x1001ae88 in cyw43_arch_gpio_get (wl_gpio=wl_gpio@entry=0) at /home/calfee/Projects/pico-sdk/src/rp2_common/pico_cyw43_arch/cyw43_arch.c:173#12 0x10000a7c in ssi_handler (iIndex=<optimized out>, pcInsert=0x20010019 "23.393347", iInsertLen=192, current_tag_part=<optimized out>, next_tag_part=0x2001000c) at /home/calfee/Projects/apicow_sprink/ssi.c:80--Type <RET> for more, q to quit, c to continue without paging--c#13 0x1002308a in get_tag_insert (hs=hs@entry=0x2000ff38) at /home/calfee/Projects/pico-sdk/lib/lwip/src/apps/http/httpd.c:797#14 0x10023bba in http_send_data_ssi (pcb=pcb@entry=0x2000dcd0 <memp_memory_TCP_PCB_base+492>, hs=hs@entry=0x2000ff38) at /home/calfee/Projects/pico-sdk/lib/lwip/src/apps/http/httpd.c:1409#15 0x10023df8 in http_send (hs=0x2000ff38, pcb=0x2000dcd0 <memp_memory_TCP_PCB_base+492>) at /home/calfee/Projects/pico-sdk/lib/lwip/src/apps/http/httpd.c:1628#16 http_send (pcb=0x2000dcd0 <memp_memory_TCP_PCB_base+492>, hs=0x2000ff38) at /home/calfee/Projects/pico-sdk/lib/lwip/src/apps/http/httpd.c:1575#17 0x100241c0 in http_recv (err=0 '\000', p=0x2000d100 <memp_memory_PBUF_POOL_base+35236>, pcb=0x2000dcd0 <memp_memory_TCP_PCB_base+492>, arg=0x2000ff38) at /home/calfee/Projects/pico-sdk/lib/lwip/src/apps/http/httpd.c:2580#18 http_recv (arg=0x2000ff38, pcb=0x2000dcd0 <memp_memory_TCP_PCB_base+492>, p=0x2000d100 <memp_memory_PBUF_POOL_base+35236>, err=<optimized out>) at /home/calfee/Projects/pico-sdk/lib/lwip/src/apps/http/httpd.c:2540#19 0x10011db0 in tcp_input (p=p@entry=0x2000d100 <memp_memory_PBUF_POOL_base+35236>, inp=inp@entry=0x2000305c <cyw43_state+2276>) at /home/calfee/Projects/pico-sdk/lib/lwip/src/core/tcp_in.c:501#20 0x1001a10c in ip4_input (p=p@entry=0x2000d100 <memp_memory_PBUF_POOL_base+35236>, inp=inp@entry=0x2000305c <cyw43_state+2276>) at /home/calfee/Projects/pico-sdk/lib/lwip/src/core/ipv4/ip4.c:743#21 0x1001ac3e in ethernet_input (p=0x2000d100 <memp_memory_PBUF_POOL_base+35236>, netif=0x2000305c <cyw43_state+2276>) at /home/calfee/Projects/pico-sdk/lib/lwip/src/netif/ethernet.c:186#22 0x1001f1de in cyw43_cb_process_ethernet (cb_data=0x20002778 <cyw43_state>, itf=<optimized out>, len=<optimized out>, buf=0x200027b6 <cyw43_state+62> "4") at /home/calfee/Projects/pico-sdk/lib/cyw43-driver/src/cyw43_lwip.c:278#23 0x1001d280 in cyw43_ll_process_packets (self_in=self_in@entry=0x20002778 <cyw43_state>) at /home/calfee/Projects/pico-sdk/lib/cyw43-driver/src/cyw43_ll.c:1166#24 0x1001f2f8 in cyw43_poll_func () at /home/calfee/Projects/pico-sdk/lib/cyw43-driver/src/cyw43_ctrl.c:230#25 cyw43_poll_func () at /home/calfee/Projects/pico-sdk/lib/cyw43-driver/src/cyw43_ctrl.c:211#26 0x1002016e in cyw43_do_poll (context=0x200011d0 <cyw43_async_context_poll>, worker=<optimized out>) at /home/calfee/Projects/pico-sdk/src/rp2_common/pico_cyw43_driver/cyw43_driver.c:91#27 0x1000ae7c in async_context_base_execute_once (self=0x200011d0 <cyw43_async_context_poll>) at /home/calfee/Projects/pico-sdk/src/rp2_common/pico_async_context/async_context_base.c:101#28 0x10020496 in async_context_poll_poll (self_base=<optimized out>) at /home/calfee/Projects/pico-sdk/src/rp2_common/pico_async_context/async_context_poll.c:35#29 0x1001aeb0 in async_context_poll (context=<optimized out>) at /home/calfee/Projects/pico-sdk/src/rp2_common/pico_async_context/include/pico/async_context.h:397#30 cyw43_arch_poll () at /home/calfee/Projects/pico-sdk/src/rp2_common/pico_cyw43_arch/cyw43_arch.c:183#31 0x10000622 in main () at /home/calfee/Projects/apicow_sprink/picow_web.c:280
Statistics: Posted by nospamcalfee — Sat Jan 03, 2026 1:24 am