Hi everyone,
I'm currently developing an application for S32K344 using FreeRTOS and encountered a rather strange issue. When I try to step-through debug my program, it consistently gets stuck at static void prvPortStartFirstTask(void), specifically at the assembly instruction svc 255.
The odd part is that the program runs perfectly fine when I simply download and reset it - the issue only occurs during step-by-step debugging.
Has anyone experienced something similar or could offer some guidance? I've attached my debugger configuration page for reference.
Thanks in advance for any help!
#S32K344 #jlink
Hello @Qiurui,
To be able to help you, please share the following information:
Thanks.
Thanks for your reply.
I'm using RTD 5.0.0
The board is a custom design (not an NXP development board)
None modifications on the FreeRTOS example project
I set up the build environment by installing the offline packages listed below.
.
├── S32DS_3.6.1_RFP_win32.x86_64.exe
├── SW32K3_FreeRTOS_11.1.0_5.0.0_CD1_D2409_DesignStudio_updatesite.zip
├── SW32K3_HAL_examples_2025.03_DesignStudio_updatesite.zip
└── SW32K3_S32M27x_RTD_R21-11_5.0.0_D2410_DesignStudio_updatesite.zip
Hello @Qiurui,
Thanks for the detailed description of your setup. I have tested with the same packages and I successfully debugged the FreeRTOS_Toggle_Led_Example_S32K344 program, I was able to perform step-by-step debugging with no problem. I a S32K3X4EVB-T172, which has a build-in debugger using the PEmicro configuration in S32DS.
From my perspective your issue is related to the Segger-Jlink plugin, I would recommend to contact them directly to know if their debugger features FreeRTOS debugging.
Let me know if I can help you with anything else relate to this problem.