Hello,
according my Observation Zephyr, more precisely the rpmsg stuff for BLE between both nRF5340 cores, doesn't work when optimization is switched off. But stepping through an application that was not optimized is at least "more obvious".
The optimization Level is configured in prj.con through CONFIG_NO_OPTOMIZATIONS=y. But this is then valid for the whole Project. So for all my files I added with target_sources(app PRIVATE file.cpp and the Zephyr Project itself that mentioend through find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
It would now be nice to have all the Zephyr, that with find_package, compiled with CONFIG_SIZE_OPTIMIZATIONS=y and all my stuff, included with target_sources, with CONFIG_NO_OPTIMIZATIONS=y.
But according my current searches in the Internet I guess this is not possible.
Is that true?
Erwin