Help us improve the Power & Sensing Selection Guide. Share feedback

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable

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?
1 Reply
Not applicable
The default stack size of the WICED_HARDWARE_IO_WORKER_THREAD is only 512 bytes.

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.