J-Link fail to erase or program RT1052, and VTref only 2.608V

cancel
Showing results for 
Search instead for 
Did you mean: 

J-Link fail to erase or program RT1052, and VTref only 2.608V

Jump to solution
599 Views
felix1
Contributor III

My custom board fail to erase or program using J-Link.

 

my environment:

MCUXpresso 11.2.1

Segger J-Link V6.86

a custom board (MIMXRT1052DVL6B)

 

my pin connect as fellow,

MCU pin <--> J-Link pin
=================================
pin 1 VCC <--> Vref
pin 3 GND <--> GND
pin 5 GND <--> GND
pin 7 N/U X
pin 9 GND X

pin 2 SWDIO(JTAG_TMS) <--> TMS
pin 4 SWCLK(JTAG_TCK) <--> TCK
pin 6 SWO(JTAG_TDO) <--> TDO
pin 8 N/U(JTAG_TDI) <--> TDI
pin 10 RESET(JTAG_nSRST) <--> nRST

 

the J-Link log as fellow,

 

Executing flash operation 'Erase' (Erase flash) - Fri Oct 23 10:31:25 CST 2020
Checking MCU info...
Scanning for targets...
Executing flash action...
SEGGER J-Link Commander V6.86 (Compiled Sep 24 2020 17:33:12)
DLL version V6.86, compiled Sep 24 2020 17:31:31
J-Link Command File read successfully.
Processing script file...
J-Link Commander will now exit on Error
J-Link connection not established yet but required for command.
Connecting to J-Link via USB...O.K.
Firmware: J-Link V9 compiled Dec 13 2019 11:14:50
Hardware version: V9.30
S/N: xxxxxxxxx
License(s): FlashBP, GDB
OEM: SEGGER-EDU
VTref=2.608V
Target connection not established yet but required for command.
Device "MCIMXRT1052" selected.
Connecting to target via JTAG

InitTarget() start
InitTarget()
Connect Under Reset
Connect Under Reset
InitTarget() end

InitTarget() start
InitTarget()
Connect Under Reset
Connect Under Reset
InitTarget() end
InitTarget() start
InitTarget()
Connect Under Reset
Connect Under Reset
InitTarget() end
InitTarget() start
InitTarget()
Connect Under Reset
Connect Under Reset
InitTarget() end
Cannot connect to target.
Script processing completed.
Unable to perform operation!
Command failed with exit code 1

 

Labels (1)
Tags (1)
0 Kudos
1 Solution
594 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi felix1,

  Please check your MIMXRT1052 board, your VDD is 2.52v, it should be about 3.3V.

This is my JLINK test result for MIMXRT1050-EVK board with the JLINK commander:

RT1052_JLINK.jpg

So, you need to check your VDD in the board.

BTW, you need to use the JLINK SWD, not JTAG, as the RT chip is using the SWD interface in default.

Please check it on your side.

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

View solution in original post

0 Kudos
5 Replies
595 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi felix1,

  Please check your MIMXRT1052 board, your VDD is 2.52v, it should be about 3.3V.

This is my JLINK test result for MIMXRT1050-EVK board with the JLINK commander:

RT1052_JLINK.jpg

So, you need to check your VDD in the board.

BTW, you need to use the JLINK SWD, not JTAG, as the RT chip is using the SWD interface in default.

Please check it on your side.

Wish it helps you!

If you still have questions about it, please kindly let me know!

Best Regards,

Kerry

-------------------------------------------------------------------------------

Note:

- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored

Please open a new thread and refer to the closed one, if you have a related question at a later point in time.

-----------------------------------------------------------------------------

View solution in original post

0 Kudos
581 Views
felix1
Contributor III

Hi kerry,

 

I use multimeter to measure pin 1(VCC) and pin 3(GND) on the board, it's 3.22V, but I just got VTref=2.697V on J-Link commander, why?

 

J-Link.PNG

0 Kudos
576 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi felix1

  Do you test the JTAG interface VDD pin when your jlink is connected?

   Check the JTAG VDD pin voltage directly, that is used directly for the JLINK.

Best Regards,

Kerry

0 Kudos
565 Views
felix1
Contributor III

Hi kerry,

You are right, to correct the VDD pin connection and using the SWD mode, J-Link can program RT1052 successfully now.

 

0 Kudos
556 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi felix1,

  That's good to hear you make it works now.

   Any new questions in the future, welcome to create a new question post, thanks.

 

Best Regards,

Kerry

0 Kudos