J-Link Error when attempting to debug program

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

J-Link Error when attempting to debug program

16,373 Views
jochnich
Contributor I

Hello, 

I am attempting to bring up the EVK-MIMXRT685 evaluation board.  I am following the videos/instructions in the "Getting Started with i.MX RT600 Evaluation Kit" pages on the NXP site.  I have successfully installed all of the necessary applications as per the instructions. 

When I attempt to debug the SDK example (dsp_mu_pollng_cm33), I receive an error stating that the evkmimxrt685.JLinkScript file cannot be found by the debugger.  The folder listed in the error message is empty.  

The second error message received states that "No connection could be make because the target machine actively refused it."  

After this initial connection failure, I deleted all applications and re-installed them again.  However, I receive the same error messages when attempting to debug the program. 

Screenshots of the errors are attached. 

I am running the MCUXpresso IDE on a Windows 10 VMware virtual machine.  I verified that the evaluation board is connected to the guest OS.  Previously, I have run MCUXpresso on a Windows 10 VM with a FRDM-K64F evaluation board with no issues.  

Can anyone provide an answer or point me in the right direction?  

Thanks in advance for your help. 

Labels (1)
0 Kudos
Reply
12 Replies

15,374 Views
AkshayWale
Contributor II

 Hi @kerryzhou , same issue have happened to our evaluation board IMXRT1050EVKB when tried to program through J-link , Both the steps mentioned above have tired but no results. still showing the same error. "proper functionality cannot be guarantee.

i am using MCUXpresso IDE v11.3.0_5222. Please give us a solution

0 Kudos
Reply

16,352 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello ,

Hope you are doing well.

Could you please confirm the version of the Jlink you are using on the virtual machine? Have you been able to try it on a different machine that is not running on a VM.

Best Regards,

Sabina

 

0 Kudos
Reply

16,319 Views
jochnich
Contributor I

Hello Sabina,

I was able to get up and running by setting the "Enable discovering of SEGGER J-Link IP Probes" in Window > Preferences > MCUXpresso IDE > Debug Options > J-Link Options.  This is working in both a VM and a machine not running a VM.  

Thanks.  

-John

0 Kudos
Reply

16,253 Views
KennyHo
Contributor II

I had followed NXP MIMXRT685-EVK: i.MX RT600 Evaluation Kit Getting Started 3. Build, Run,
and met the same condition that a pop up message box: "J-Link V6.86f Error", Could not find script file referenced by debugger: D:\McuExpressoWorkSpace\.mcuxpressoide_packages_support\MIMXRT685S_support/Script/evkmimxrt685.JLinkScript Proper functionality cannot be guaranteed.

After setting the "Enable discovering of SEGGER J-Link IP Probes" in Window > Preferences > MCUXpresso IDE > Debug Options > J-Link Options, it can's solve the issue.

OS: Windows7 64 bit professional

Ask for application advice sincerely.

0 Kudos
Reply

16,227 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hi Kenny, 

Kindly create a new post with the information, since it was not resolved with the above solution your case may be different and it will help others in future referencing. 

Best Regards,

Sabina

0 Kudos
Reply

16,248 Views
KennyHo
Contributor II

I had followed NXP MIMXRT685-EVK: i.MX RT600 Evaluation Kit Getting Started 3. Build, Run,
and met the same condition that a pop up message box: "J-Link V6.86f Error", Could not find script file referenced by debugger: D:\McuExpressoWorkSpace\.mcuxpressoide_packages_support\MIMXRT685S_support/Script/evkmimxrt685.JLinkScript Proper functionality cannot be guaranteed.

After setting the "Enable discovering of SEGGER J-Link IP Probes" in Window > Preferences > MCUXpresso IDE > Debug Options > J-Link Options, it can't solve the issue.

OS: Windows7 64 bit professional
MCUXpresso IDE v11.2.1_4149
JLink_Windows_V686f.exe

Ask for application advice sincerely.

0 Kudos
Reply

16,029 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hello KennyHo,

   Still have JLINK debug issues in the RT685 or not?

   If yes, please try my following method, double click the .launch file, and do the following modification.

   About the .script, you can find it in the SDK demo package, eg:

SDK_2.8.3_EVK-MIMXRT685\boards\evkmimxrt685\driver_examples\gpio\led_output

When you unzip it, you will find it.

image.png

I also meet the same issues like you, and after the above modification, I can enter the debug mode with the JLINK now:

image.png

 

You can try it like my configuration.

If you still have questions, you can create the new case.

Best Regards,

Kerry

0 Kudos
Reply

16,004 Views
KennyHo
Contributor II

Dear KerryZhou:

I follow another NXP expert's solution and it works.

https://www.segger.com/products/debug-probes/j-link/models/other-j-links/lpc-link-2/

thans for your concern!

0 Kudos
Reply

15,995 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi KennyHo,

    Thanks so much for your confirmation.

   Do you use the latest MCUXpresso IDE V11.2.1_4149?

Best Regards,

Kerry

 

0 Kudos
Reply

15,991 Views
KennyHo
Contributor II

Hi Kerryzhou:

Yes,

MCUXpresso IDE V11.2.1_4149
SEGGER J-Link6.86

Thanks!

0 Kudos
Reply

16,251 Views
KennyHo
Contributor II

I had followed NXP MIMXRT685-EVK: i.MX RT600 Evaluation Kit Getting Started 3. Build, Run,
and met the same condition that a pop up message box: "J-Link V6.86f Error", Could not find script file referenced by debugger: D:\McuExpressoWorkSpace\.mcuxpressoide_packages_support\MIMXRT685S_support/Script/evkmimxrt685.JLinkScript Proper functionality cannot be guaranteed.

After setting the "Enable discovering of SEGGER J-Link IP Probes" in Window > Preferences > MCUXpresso IDE > Debug Options > J-Link Options, it can't solve the issue.

OS: Windows7 64 bit professional

Ask for application advice sincerely.

0 Kudos
Reply

16,307 Views
Sabina_Bruce
NXP Employee
NXP Employee

I'm glad to hear that you were able to get this working. Thank you for providing your results as well. 

Have a great rest of your week!

Sabina

0 Kudos
Reply