nRF53 and Zephyr: optimization level

Hi,

I would like to know if it is possible to configure the optimization level only the application built on top of Zephyr, and not all the project.

I am trying to debug the temperature sensor example for TMP117. It is working for the board nrf53 with optimization set size.

If i change it to no optimization i am having stack overflow.

I have increased the main stack size up to 4 KB, but the problem is still present.

As far as i could get with my tests, the stack overflow happens inside the function pm_system_suspend declared in power.c

Could you give some advice regarding this aspect please ?

Thanks in advance !

Kind regards

Riccardo Gaiati

Parents Reply Children
Related