I have tried porting FreeRTOS (ARM_CM33_NTZ) on nRF5340 with IAR IDE. The software works as expected when the board is connected to PC and IAR is in debugging mode, otherwise it stuck somewhere in vRestoreContextOfFirstTask() function (I used LED to identify where it is stucking).
I would like to know the result if anyone has tried before.
I flash it by the method you mentioned above and JFlash tool from Segger as well but it seems that the software stuck in vRestoreContextOfFirstTask().
But when I run it with debugging mode, it works well. So I can’t debug.
Is there any example using ARM_CM33_NTZ with IAR?
When you attach to the running target, it should not reset which means it should remain stuck at whatever position it is. Can you then break in the debugger and examine the call stack? You should also try to reach out to IAR Systems.
If it is not, you should be able to get it from main.
It seems that interrupts are disabled after calling vRestoreContextOfFirstTask();
Do you have any suggestion for me?
This is my config for Cortex M33 #define configENABLE_MPU 0 #define configENABLE_FPU 1 #define configENABLE_TRUSTZONE 0 #define configRUN_FREERTOS_SECURE_ONLY 1
It’s been awhile since last time. Now I am using Segger Embedded Studio (SES) with Kernel V11.1.0 but unfortunately I am facing same problem.
I have seen you suggested this in other topic but I couldn’t find where SAU is configured in “/Demo/CORTEX_MPU_M33F_NTZ_Nordic_NRF9160_SES 29”