The program is stuck in the prvPortStartFirstTask function in freertos

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The program is stuck in the prvPortStartFirstTask function in freertos

221 Views
user01
Contributor I

Hello,

I recently encountered an issue while debugging the freertos program of S32K322: the program gets stuck in the prvPortStartFirstTask function during runtime.
(Development Platform: S32DS. 3.6.2      Chip model: S32K322   

RTD:SW32K3_S32M27x_RTD_R21-11_6.0.0_D2506_DesignStudio_updatesite

FreeRTOS:SW32K3_FreeRTOS_10.6.0_CD_4.0.0_DS_updatesite_D2312

Debugging tools:SEGGER J-Link)

user01_8-1756344655740.png

The freertos configuration is as follows:

user01_1-1756344533162.png

user01_2-1756344533186.png

user01_3-1756344533200.png

user01_4-1756344533159.png

I have also looked at solutions to similar problems, mainly in two ways: ① updating the FreeRTOS version; ② Replace the debugging tool with a PE burner.

Since I don't have a PE burner, I tried the first option and the situation is as follows:
Firstly, I uninstalled SW32K3_SreeRTOS_10.6.0_CD_4.0_Supdatesite_S2312, and then installed SW32K3_SreeRTOS_11.1.0_6.0.0_CD1_S2506-DesightStudio_uupdatesite (as this version of freertos is compatible with my RTD6.0 and S32DS 3.6.2 versions), and it shows in help ->S32DS Extensions and Updates ->Installed that the installation has indeed been successful,

user01_5-1756344533085.png

but two issues arose:

① There is no OS layer, let alone freertos option

user01_6-1756344533085.png

②There are no routines for freertos

user01_7-1756344533354.png

It seems that the first method has failed,so I would like to ask if there are any other methods that can solve my problem. Thank you

Tags (1)
0 Kudos
Reply
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-2159483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThe%20program%20is%20stuck%20in%20the%20prvPortStartFirstTask%20function%20in%20freertos%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2159483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20recently%20encountered%20an%20issue%20while%20debugging%20the%20freertos%20program%20of%20S32K322%3A%20the%20program%20gets%20stuck%20in%20the%20prvPortStartFirstTask%20function%20during%20runtime.%3CBR%20%2F%3E(Development%20Platform%3A%20S32DS.%203.6.2%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20Chip%20model%3A%20S32K322%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3ERTD%3ASW32K3_S32M27x_RTD_R21-11_6.0.0_D2506_DesignStudio_updatesite%3C%2FP%3E%3CP%3EFreeRTOS%3ASW32K3_FreeRTOS_10.6.0_CD_4.0.0_DS_updatesite_D2312%3C%2FP%3E%3CP%3EDebugging%20tools%3ASEGGER%20J-Link)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22user01_8-1756344655740.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22user01_8-1756344655740.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354469iDE2022845EE36966%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22user01_8-1756344655740.png%22%20alt%3D%22user01_8-1756344655740.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20freertos%20configuration%20is%20as%20follows%EF%BC%9A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22user01_1-1756344533162.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22user01_1-1756344533162.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354461iEC86EAA89F0D5C9C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22user01_1-1756344533162.png%22%20alt%3D%22user01_1-1756344533162.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22user01_2-1756344533186.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22user01_2-1756344533186.png%22%20style%3D%22width%3A%20301px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354463iD88FEA52628AD6AE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22user01_2-1756344533186.png%22%20alt%3D%22user01_2-1756344533186.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22user01_3-1756344533200.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22user01_3-1756344533200.png%22%20style%3D%22width%3A%20360px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354464iA908F694EBCE91C9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22user01_3-1756344533200.png%22%20alt%3D%22user01_3-1756344533200.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22user01_4-1756344533159.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22user01_4-1756344533159.png%22%20style%3D%22width%3A%20268px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354466i6337176EEDDA38D7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22user01_4-1756344533159.png%22%20alt%3D%22user01_4-1756344533159.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20have%20also%20looked%20at%20solutions%20to%20similar%20problems%2C%20mainly%20in%20two%20ways%3A%20%E2%91%A0%20updating%20the%20FreeRTOS%20version%3B%20%E2%91%A1%20Replace%20the%20debugging%20tool%20with%20a%20PE%20burner.%3C%2FP%3E%3CP%3ESince%20I%20don't%20have%20a%20PE%20burner%2C%20I%20tried%20the%20first%20option%20and%20the%20situation%20is%20as%20follows%3A%3CBR%20%2F%3EFirstly%2C%20I%20uninstalled%20SW32K3_SreeRTOS_10.6.0_CD_4.0_Supdatesite_S2312%2C%20and%20then%20installed%20SW32K3_SreeRTOS_11.1.0_6.0.0_CD1_S2506-DesightStudio_uupdatesite%20(as%20this%20version%20of%20freertos%20is%20compatible%20with%20my%20RTD6.0%20and%20S32DS%203.6.2%20versions)%2C%20and%20it%20shows%20in%20help%20-%26gt%3BS32DS%20Extensions%20and%20Updates%20-%26gt%3BInstalled%20that%20the%20installation%20has%20indeed%20been%20successful%EF%BC%8C%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22user01_5-1756344533085.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22user01_5-1756344533085.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354465i67B5FDC06B8CEE41%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22user01_5-1756344533085.png%22%20alt%3D%22user01_5-1756344533085.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ebut%20two%20issues%20arose%3A%3C%2FP%3E%3CP%3E%E2%91%A0%20There%20is%20no%20OS%20layer%2C%20let%20alone%20freertos%20option%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22user01_6-1756344533085.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22user01_6-1756344533085.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354468iDCE9496ACCFC3686%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22user01_6-1756344533085.png%22%20alt%3D%22user01_6-1756344533085.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%91%A1There%20are%20no%20routines%20for%20freertos%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22user01_7-1756344533354.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22user01_7-1756344533354.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F354467i4E1D47CC2B71CA3B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22user01_7-1756344533354.png%22%20alt%3D%22user01_7-1756344533354.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIt%20seems%20that%20the%20first%20method%20has%20failed%EF%BC%8Cso%20I%20would%20like%20to%20ask%20if%20there%20are%20any%20other%20methods%20that%20can%20solve%20my%20problem.%20Thank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E