How to debug the cortex-m4 kernel using j-link on the i.MX 8M Mini EVK

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

How to debug the cortex-m4 kernel using j-link on the i.MX 8M Mini EVK

Jump to solution
2,401 Views
bigtruck
Contributor I

dears:

How to debug the cortex-m4 kernel using j-link on the i.MX 8M Mini EVK.

I had a problem debugging on the IAR.

The IAR version I used was 8.40.

The error is shown below

pastedImage_3.png

The following is my engineering configuration

pastedImage_4.png

pastedImage_5.png

pastedImage_6.png

pastedImage_7.png

pastedImage_8.png

pastedImage_9.png

I used the j-link Commander program to connect to the target board with the following information

pastedImage_13.png
tks!

0 Kudos
Reply
1 Solution
2,292 Views
igorpadykov
NXP Employee
NXP Employee

Hi ryan

recommended to use J-Link PLUS debug probe as described in sect.4.2

attached Getting Started with MCUXpresso SDK for i.MX 8M Mini.pdf

Check that appropriate j-link firmware used : https://www.segger.com/downloads/jlink 

use "IAR and Segger tool patch to support MCUXpresso SDK for i.MX 8 devices GA"

https://www.nxp.com/webapp/Download?colCode=SDK_2.7_MX8_GA_Patch&appType=license 

Note, there is for option FreeRTOS task aware debugger for GDB, please look at

sect.6.4 FreeRTOS aware debugger plugin Getting Started with MCUXpresso SDK and FreeRTOS OS.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
2,293 Views
igorpadykov
NXP Employee
NXP Employee

Hi ryan

recommended to use J-Link PLUS debug probe as described in sect.4.2

attached Getting Started with MCUXpresso SDK for i.MX 8M Mini.pdf

Check that appropriate j-link firmware used : https://www.segger.com/downloads/jlink 

use "IAR and Segger tool patch to support MCUXpresso SDK for i.MX 8 devices GA"

https://www.nxp.com/webapp/Download?colCode=SDK_2.7_MX8_GA_Patch&appType=license 

Note, there is for option FreeRTOS task aware debugger for GDB, please look at

sect.6.4 FreeRTOS aware debugger plugin Getting Started with MCUXpresso SDK and FreeRTOS OS.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,292 Views
bigtruck
Contributor I
Thank you very much!
I solved my problem by using the software package "IAR and Segger tool patch to support MCUXpresso SDK for i.mx 8 devices GA"
0 Kudos
Reply