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%3E%E6%95%85%E9%9A%9C%E6%8E%92%E9%99%A4%EF%BC%9APEMicro%20%E8%B0%83%E8%AF%95%EF%BC%9A%E4%BB%8E%20vTaskDelay%20%E4%B8%AD%E7%9A%84%E6%96%AD%E7%82%B9%E6%81%A2%E5%A4%8D%E9%97%AE%E9%A2%98%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123579%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23172b4d%3B%20background-color%3A%20%23ffffff%3B%22%3E%E5%81%A5%E5%BA%B7%EF%BC%89%E7%8A%B6%E5%86%B5%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23172b4d%3B%20background-color%3A%20%23ffffff%3B%22%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%20S32K118%20EVB%20%E7%9A%84%20FreeRTOS%20%E5%B9%B6%E5%9C%A8%E8%B0%83%E8%AF%95%E6%A8%A1%E5%BC%8F%E4%B8%8B%E8%BF%90%E8%A1%8C%E3%80%82%E5%BD%93%E6%88%91%E5%9C%A8vTaskDelay%E4%B8%AD%E8%AE%BE%E7%BD%AE%E6%96%AD%E7%82%B9%E5%B9%B6%E7%AC%AC%E4%B8%80%E6%AC%A1%E6%8C%89%E4%B8%8BResume%E6%97%B6%EF%BC%8C%E5%9C%A8%E6%96%AD%E7%82%B9%E5%A4%84%E5%B9%B3%E7%A8%B3%E5%81%9C%E6%AD%A2%E3%80%82%E7%AC%AC%E4%BA%8C%E6%AC%A1%E6%8C%89%E4%B8%8B%E2%80%9C%E6%81%A2%E5%A4%8D%E2%80%9D%E6%97%B6%EF%BC%8C%E8%B0%83%E8%AF%95%E5%99%A8%E5%BA%94%E8%AF%A5%E5%86%8D%E6%AC%A1%E8%BF%9B%E5%85%A5%E7%9B%B8%E5%90%8C%E7%9A%84%E6%96%AD%E7%82%B9%EF%BC%8C%E4%BD%86%E6%B2%A1%E6%9C%89%E4%BB%BB%E4%BD%95%E5%8F%8D%E5%BA%94%E3%80%82%E7%84%B6%E5%90%8E%E6%88%91%E6%8C%89%E4%BA%86%E6%9A%82%E5%81%9C%E9%94%AE%E5%B0%B1%E6%97%A0%E6%B3%95%E5%86%8D%E6%8C%89%E6%81%A2%E5%A4%8D%E9%94%AE%E4%BA%86%EF%BC%8C%E6%AD%A4%E6%97%B6%E6%88%91%E5%8F%AA%E8%83%BD%E7%A6%BB%E5%BC%80%E3%80%82%E4%BD%86%E6%98%AF%E6%88%91%E5%8F%AF%E4%BB%A5%E8%87%AA%E7%94%B1%E8%BF%90%E8%A1%8C%E8%BF%99%E4%B8%AA%E9%A1%B9%E7%9B%AE%EF%BC%8C%E6%B2%A1%E6%9C%89%E4%BB%BB%E4%BD%95%E9%97%AE%E9%A2%98%EF%BC%8C%E5%87%BA%E4%BA%86%E4%BB%80%E4%B9%88%E9%97%AE%E9%A2%98%EF%BC%9F%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%3E%E5%88%86%E6%9E%90%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23172b4d%3B%20background-color%3A%20%23ffffff%3B%22%3E%E8%BF%99%E6%98%AF%E7%94%B1%E4%BA%8E%E8%AE%BF%E9%97%AE%E7%9A%84%20DDR%20%E5%86%85%E5%AD%98%E5%8C%BA%E5%9F%9F%E6%9C%AA%E9%80%9A%E8%BF%87%E9%BB%98%E8%AE%A4%E9%A1%B9%E7%9B%AE%E8%AE%BE%E7%BD%AE%E5%88%9D%E5%A7%8B%E5%8C%96%E3%80%82%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%3E%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22color%3A%20%23172b4d%3B%20background-color%3A%20%23ffffff%3B%22%3E%E4%B8%BA%E4%BA%86%E8%A7%A3%E5%86%B3%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%EF%BC%8C%E5%BA%94%E8%AF%A5%E9%80%89%E6%8B%A9%E5%9C%A8%E8%B0%83%E8%AF%95%E4%BC%9A%E8%AF%9D%E5%BC%80%E5%A7%8B%E6%97%B6%E8%BF%90%E8%A1%8C%E5%88%9D%E5%A7%8B%E5%8C%96%20DDR%20%E5%86%85%E5%AD%98%E7%9A%84%E5%AE%8F%E3%80%82%E7%94%A8%E6%88%B7%E5%BA%94%E8%AF%A5%E8%BD%AC%E5%88%B0%E9%AB%98%E7%BA%A7%E9%80%89%E9%A1%B9%E5%AF%B9%E8%AF%9D%E6%A1%86%E5%B9%B6%E9%80%89%E4%B8%AD%E2%80%9C%E5%90%AF%E7%94%A8%E5%88%9D%E5%A7%8B%E5%8C%96%E8%84%9A%E6%9C%AC%E2%80%9D%E3%80%82%E6%88%91%E4%BB%AC%E7%9A%84%20DDR%20%E5%88%9D%E5%A7%8B%E5%8C%96%E5%AE%8F%E5%8F%AF%E4%BB%A5%E5%9C%A8%20S32DS3.2%20%E5%B8%83%E5%B1%80%E4%B8%AD%E7%9A%84%E4%BB%A5%E4%B8%8B%E4%BD%8D%E7%BD%AE%E6%89%BE%E5%88%B0%EF%BC%9Aeclipse%5Cplugins%5Ccom.pemicro.debug.gdbjtag.pne_4.2.8.201909091700%5Cwin32%5Cgdi%5CP%26amp%3BE%5CsupportFiles_ARM%5CNXP%5CS32Vxxx%5CS32V234M100_DDR3_EVB29288.mac%E3%80%82%E8%AF%B7%E6%B3%A8%E6%84%8F%EF%BC%8C%E5%AE%8F%E7%9A%84%E7%B1%BB%E5%9E%8B%E5%8F%AF%E8%83%BD%E5%8F%96%E5%86%B3%E4%BA%8E%E6%89%80%E4%BD%BF%E7%94%A8%E7%9A%84%E4%B8%BB%E6%9D%BF%E5%92%8C%20S32V23x%20%E8%AE%BE%E5%A4%87%E7%9A%84%E4%BF%AE%E8%AE%A2%E7%89%88%E6%9C%AC%E3%80%82%E6%88%91%E8%BF%98%E9%99%84%E4%B8%8A%E4%BA%86%E8%B0%83%E8%AF%95%E9%85%8D%E7%BD%AE%E5%92%8C%E9%AB%98%E7%BA%A7%E9%80%89%E9%A1%B9%E5%AF%B9%E8%AF%9D%E6%A1%86%E7%9A%84%E5%9B%BE%E7%89%87%EF%BC%8C%E5%85%B6%E4%B8%AD%E5%8C%85%E5%90%AB%E6%89%80%E6%9C%89%E8%AE%BE%E7%BD%AE%E3%80%82%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%3E%E7%AC%AC%E4%B8%89%E6%96%B9%EF%BC%88%E9%AB%98%E7%BA%A7%EF%BC%89%E6%8F%92%E4%BB%B6%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%B0%83%E8%AF%95%20-%20Flash%20%E7%BC%96%E7%A8%8B%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E6%A6%82%E8%BF%B0%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎09-16-2019 06:38 AM
Updated by: