Hi STACK_MAIN defines the stack size in bytes for your main task. Only if you see low stack warnings on the debug console or in the log, you will need to increase it. Use the top command to see the stack usage of all running applications. COMPILE_FLAGS are additional flags passed to the compiler. You typically don’t need them.
Although I increased the value of STACK_MAIN because ‘low on stack!’ message happens, the stack size is not changed when I see it by the ‘top’ command.
And also I changed all the stack values such as CONFIG_USERMAIN_STACKSIZE in deconfig file, but the stack size of a user made application module does not change.
Finally, the stack size changed after I increased the size in px4_task_spawn_cmd().