Hi !
I started learning nRF Connect SDK and try to analise sample "Bluetooth LLPM".
On nRF52840 board (PCA10056) all work fine but when I try to test this sample on PCA10059 (dongle) (used USB CDC ACM like console transport) - the application is stopped when calling :
app->poll_out() that is "cdc_acm_poll_out()" call a "cdc_acm_fifo_fill()" .
After investigation I understand that this function calls very often before the usb is initialized and stop whith maybe stack overflow.
Error is: (Program received signal SIGTRAP, Trace/breakpoint trap)
Since I just started to learn SDK, I still do not know how to increase the stack, so I went the other way. I just commented out the line
in cdc_acm.c file
in "cdc_acm_fifo_fill()" func
a strung: LOG_WRN("Device not configured or suspended, drop %d bytes", len);
After that еverything became work.
But a change source code in SDK and this is not right.
Another strange: sample "...\ncs\v1.7.0\zephyr\samples\subsys\usb\cdc_acm" nice work on PCA10059 but that code dont use "subsystem/console" feature.
Maybe someone will help me with advice on how to correct this error or where to tweak something to increase the usb stack size ?
Thanks!