Hello all,
I have slightly modified the coap_client sample from the SDK such that the main function is being called on certain actions from another program. I'm getting some very odd behavior. Occasionally, I will get one of the following errors:
This one:
[00:01:06.340,362] <inf> coap_client_sample: The CoAP client sample started. Sending a message before turning modem off. [00:01:06.340,393] <inf> coap_client_sample: Bringing network interface up and connecting to the network [00:01:07.374,816] <inf> coap_client_sample: IPv4 Address found 10.60.2.219 [00:01:07.375,366] <inf> coap_client_sample: Initializing CoAP client [00:01:07.375,396] <err> coap_client_sample: Failed to initialize CoAP client: -28 [00:01:07.375,396] <err> coap_client_sample: periodic_coap_request_loop, error: -28 �*** Booting nRF Connect SDK v2.9.0-7787b2649840 ***rror! Rebooting the device. *** Using Zephyr OS v3.7.99-1f8f3dc29142 ***
or this one:
[00:00:41.803,497] <inf> coap_client_sample: The CoAP client sample started. Sending a message before turning modem off. [00:00:41.803,527] <inf> coap_client_sample: Bringing network interface up and connecting to the network [00:00:42.328,430] <inf> coap_client_sample: IPv4 Address found 10.60.2.219 [00:00:42.328,948] <inf> coap_client_sample: Initializing CoAP client [00:00:42.330,688] <inf> coap_client_sample: CoAP POST request sent sent to coap.os.1nce.com [00:00:42.630,584] <inf> coap_client_sample: CoAP response code: 0x44 [00:00:43.133,056] <err> os: ***** BUS FAULT ***** *** Booting nRF Connect SDK v2.9.0-7787b2649840 *** *** Using Zephyr OS v3.7.99-1f8f3dc29142 ***
Any idea how to resolve this? I've tried increasing CONFIG_MAIN_STACK_SIZE to 16384, but that hasn't helped.