keever50 commented on PR #16424:
URL: https://github.com/apache/nuttx/pull/16424#issuecomment-2902205896

   @shtirlic 
   I have a suggestion. This could save some big headaches for developers in 
the future using this config.
   I suggest increasing the stacksize of nsh_main by changing the default task 
stacksize.
   See kconfig below
   >   config INIT_STACKSIZE
   >         int "Main thread stack size"
   >         default DEFAULT_TASK_STACKSIZE(=2048)
   >         help
   >           The size of the stack to allocate for the user initialization 
thread
   >           that is started as soon as the OS completes its initialization.
   
   As you can see, default is 2k, which is exceeded after enabling some basic 
debugging or applications in kconfig. Causing crashes without notice.
   See image below for stack usage:
   
   
![image](https://github.com/user-attachments/assets/8ac64a29-cc03-4dce-b399-38c8d3d7c2e1)
   
   This chip has plenty of memory and I consider that few kB of extra memory 
usage to prevent headaches worth it.
   4k should be more than enough.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to