This content has been marked as final. Show 1 reply
The default stack size of the WICED_HARDWARE_IO_WORKER_THREAD is only 512 bytes.
I have registered a timed event function to be called in the WICED_HARDWARE_IO_WORKER_THREAD.
When the function is called without printing, it works.
When I try to print inside the function, printing doesnt work and the app watchdogs.
I cant workout what is going wrong?
See the definition here:
Printing requires at least 4kB as noted in
So, when you try to print from the WICED_HARDWARE_IO_WORKER_THREAD, the thread blows its stack and the system probably crashes.
FYI, the WICED_NETWORKING_WORKER_THREAD has a 6kB stack size by default, so it is ok to print from this thread by default.