Troubleshooting: PEMicro Debugging: Problems resuming from breakpoint in vTaskDelay

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

Troubleshooting: PEMicro Debugging: Problems resuming from breakpoint in vTaskDelay

Troubleshooting: PEMicro Debugging: Problems resuming from breakpoint in vTaskDelay

Condition: 

I am trying FreeRTOS using S32K118 EVB and run in DEBUG mode. When I set the break point in vTaskDelay and press Resume for the first time, there is a smooth stop at the break point. The second time I press Resume, the debugger should enter the same break point again, but there is no response. Then I press Suspend and can't press Resume again, at this point I can only leave. However, I am free to run this project with no problem, what's wrong?

Analysis:

This is due to an access of DDR memory region which is not initialized by default project settings.

Solution:

To resolve it, a macro initializing the DDR memory should be selected to run at the beginning of a debug session. A user should go to Advanced Options dialog and check "Enable initialization script". Our DDR init macros can be found at the following location within S32DS3.2 layout: eclipse\plugins\com.pemicro.debug.gdbjtag.pne_4.2.8.201909091700\win32\gdi\P&E\supportFiles_ARM\NXP\S32Vxxx\S32V234M100_DDR3_EVB29288.mac. Please note that the type of the macro might depend on the revision of the board and S32V23x device one is working with. I am also attaching a picture of debug configuration and Advanced Options dialog with all the settings in place.

pastedImage_1.png

%3CLINGO-SUB%20id%3D%22lingo-sub-1123579%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ETroubleshooting%3A%20PEMicro%20Debugging%3A%20Problems%20resuming%20from%20breakpoint%20in%20vTaskDelay%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123579%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23172b4d%3B%20background-color%3A%20%23ffffff%3B%22%3ECondition%3A%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23172b4d%3B%20background-color%3A%20%23ffffff%3B%22%3EI%20am%20trying%20FreeRTOS%20using%20S32K118%20EVB%20and%20run%20in%20DEBUG%20mode.%20When%20I%20set%20the%20break%20point%20in%20vTaskDelay%20and%20press%20Resume%20for%20the%20first%20time%2C%20there%20is%20a%20smooth%20stop%20at%20the%20break%20point.%20The%20second%20time%20I%20press%20Resume%2C%20the%20debugger%20should%20enter%20the%20same%20break%20point%20again%2C%20but%20there%20is%20no%20response.%20Then%20I%20press%20Suspend%20and%20can't%20press%20Resume%20again%2C%20at%20this%20point%20I%20can%20only%20leave.%20However%2C%20I%20am%20free%20to%20run%20this%20project%20with%20no%20problem%2C%20what's%20wrong%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23172b4d%3B%20background-color%3A%20%23ffffff%3B%22%3EAnalysis%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23172b4d%3B%20background-color%3A%20%23ffffff%3B%22%3EThis%20is%20due%20to%20an%20access%20of%20DDR%20memory%20region%20which%20is%20not%20initialized%20by%20default%20project%20settings.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23172b4d%3B%20background-color%3A%20%23ffffff%3B%22%3ESolution%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23172b4d%3B%20background-color%3A%20%23ffffff%3B%22%3ETo%20resolve%20it%2C%20a%20macro%20initializing%20the%20DDR%20memory%20should%20be%20selected%20to%20run%20at%20the%20beginning%20of%20a%20debug%20session.%20A%20user%20should%20go%20to%20Advanced%20Options%20dialog%20and%20check%20%22Enable%20initialization%20script%22.%20Our%20DDR%20init%20macros%20can%20be%20found%20at%20the%20following%20location%20within%20S32DS3.2%20layout%3A%26nbsp%3Beclipse%5Cplugins%5Ccom.pemicro.debug.gdbjtag.pne_4.2.8.201909091700%5Cwin32%5Cgdi%5CP%26amp%3BE%5CsupportFiles_ARM%5CNXP%5CS32Vxxx%5CS32V234M100_DDR3_EVB29288.mac.%20Please%20note%20that%20the%20type%20of%20the%20macro%20might%20depend%20on%20the%20revision%20of%20the%20board%20and%20S32V23x%20device%20one%20is%20working%20with.%20I%20am%20also%20attaching%20a%20picture%20of%20debug%20configuration%20and%20Advanced%20Options%20dialog%20with%20all%20the%20settings%20in%20place.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F85096iD0F047023F6D23CE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_1.png%22%20alt%3D%22pastedImage_1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1123579%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3E3-rd%20party%20(premium)%20plug-ins%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDebugging%20-%20Flash%20Programming%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎09-16-2019 06:38 AM
Updated by: