2 Replies Latest reply on May 8, 2019 12:26 AM by ZhengbaoZ_96

    Increasing default stack size has no effect


      Hello All:


      I recently tried to increase the default stack size of my main thread through the #define statement in wiced_defaults.h, but every value I tried seemed to have no effect. I don't know of a good method to check the stack size, but I needed to increase it to avoid a stack overflow, and how I know it had no effect was that I would see the same stack overflow reset with every value I tried - 2x the default, 4x, 8x, 10x, and 20x. This doesnt seem to be an issue when the stack is created via wiced_rtos_create_thread, where I found that setting a stack size of 2x the default successfully avoided the stack overflow problem


      Any suggestions about why the wiced_default.h method doesn't work, or how to do it differently?