Hi.
I use NCS SDK 1.5.1 with NRF5340.
I took the project from: \zephyr\samples\portability\cmsis_rtos_v2\philosophers\ as base and try to add two additional tasks.
Application works when:
1) Optimization for size and the the main has infinite loop with delay.
2) Optimizaion for size, the the main terminated but without 2 additional tasks (only example tasks).
In other cases I get z_arm_exc_spurious. This happens when optimization disabled (base example) or when main has not infinite loop.
How can I understand what is a reason?
Thanks.