Anonymous
Not applicable
Feb 26, 2013
05:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 26, 2013
05:16 PM
[WICED-SDK-2.2.1]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?
Labels
- Labels:
-
SPI
- Tags:
- [wiced-sdk-2.2.1]
- called
- event
- function
- inside
- printing
- registered
- thread
- timed
- watchdog
- watchdogs
- wiced_hardware_io_worker_thread
- work
- worker
- workout
- works
- wrong
1 Reply
Anonymous
Not applicable
Feb 26, 2013
05:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 26, 2013
05:19 PM
The default stack size of the WICED_HARDWARE_IO_WORKER_THREAD is only 512 bytes. See the definition here:<WICED-SDK>/Wiced/RTOS/<YOUR_RTOS>/wiced/rtos.h Printing requires at least 4kB as noted in <WICED-SDK>/include/wiced_defaults.hSo, 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.