Error Debug FreeRTOS Example On S32K344 S32 Design Studio@3.6.1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Error Debug FreeRTOS Example On S32K344 S32 Design Studio@3.6.1

799 次查看
Qiurui
Contributor I

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

c8544584-5c2f-45e8-ac3d-e62dcceb47b2.png

Snipaste_2025-04-21_20-35-59.png

标签 (1)
0 项奖励
回复
3 回复数

766 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @Qiurui,

To be able to help you, please share the following information:

  • RTD version you are using, so I may try to reproduce the issue locally.
  • Are you using one of our boards or a custom one? If you are using an NXP board, please share the model.
  • Have you done any modifications to the FreeRTOS example you mentioned you are using?

Thanks.

0 项奖励
回复

752 次查看
Qiurui
Contributor I

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

0 项奖励
回复

725 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

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. 

alejandro_e_0-1745361614536.png

 

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.

0 项奖励
回复