Debugging MIMXRT1052 via LPC-Link2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Debugging MIMXRT1052 via LPC-Link2

1,672 次查看
BUras
Contributor I

Hello everyone, 

I use NXP MIMXRT1052 as MCU in a display project and have problem about installing the software to my board. I am using LPC-Link2 for debugging the software and made connections according to JTAG interface. The connections between my board and LPC-Link2 are in attach. 

What is my mistake ? Can LPC-Link2 be used for installing the software this way or what is the easiest way for debugging?  

Thank you for your time and help!!

 

0 项奖励
回复
3 回复数

1,624 次查看
BUras
Contributor I

Hi @diego_charles , 

Thank you for your answer. We have LPCLink2 and prepared software but we can not install the software our MCU via LPCLink2. We use MCUXpresso for installing the software. 

I made the all connections with your hardware guide as you mentioned above and also connected the JTAG_MOD to GND via 4.7k resistor. My connections can be seen in figure in below. Also, I am adding connections of MCU side. 

Connections.PNG 

 

BUras_0-1678368251944.png

 

Are these connections wrong for debugging our MCU via LPCLink2 ?

We take an connection error when we make these connections . That's why , we thought our hardware connections was missing. 

Thank you. 

0 项奖励
回复

1,602 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi @BUras 

Thanks for your reply! 

I have not seen major issues within your HW connections, I hope not to miss anything. However, below I request a bit more of information. 

1 Could you please provide me the log you see when attempting to program your MCU? 

2 Is this  a new desing you are trying to program for the first time? If not, do you know what was programmed into your MCU?

I have a couple of pointers for you:

  • Eventougth the LPC-Link can supply power to the MCU via JTAG. Make sure to provide the proper supply voltage for your chip itself. 
  • Check that the Reset line can be de-asserted by the debugger.
  • Eventougth the hardware guide does not mandates this, the design is more stable with a external reset monitoring IC, an exaple of this circuit can be seen in the RT1050 EVK.
  • Monitor that the power-up sequence complies with our specification defined in our hardware guide.
  • Check that the external 24 MHz oscillator is operating, or generating the proper signal.

If you are still not able to debug the MCU over JTAG/SWD, try to see if you can communicate with the ROM bootloader over UART or USB (if your desing does enables this )

Set the MCU into serial downloader mode (  set boot mode pins to this mode according RM ) and try to connect with the MCU using a tool like our MCUXpresso Secure Provisioning Tool. This  communication is over BootROM dedicated  LPUART1 or USB1 port. The actual pins for the ports are described in our user manual. 

Best regards, 

Diego

 

0 项奖励
回复

1,658 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi @BUras 

I hope you are doing well! 

Would you be able to further describe your problem?

Here is an snapshot from our RT1050 Hardware Development Guide ( MIMXRT105060HDUG ) JTAG interface connection termination. I do not see the JTAG mod setting in your picture, could you confirm if the termination is made as we recommend for JTAG? 

diego_charles_0-1677534154865.png

Yes, the LPC-Link 2 can be used for programming debugging over JTAG or SWD the RT MCUs. Also,  it can work with the same HW connections for the FREELINK, mentioned in the above picture. 

All the best, 

Diego

 

0 项奖励
回复