Hi,
I am trying to flash one of the example projects in the SDK on i.MX RT1170 board. However, I am not able to flash successfully due as the debug probe was not supported. We have a LPC Link2 available. However I am not sure how we have to connect or proceed with the flashing/debugging using LPC Link2.
I am using JLink for flashing/debugging and ARM GCC tools for building.
Any guidance with connections/software checks will be of great help.
Thanks!
Solved! Go to Solution.
Hi @kerryzhou ,
After many attempts with KEIL and ARM GCC tools I found that the flashing issue resolved when I used MCUXpresso IDE. I am still not completely sure what setting could have gone wrong in KEIL or ARM GCC settings. However, for now I see MCUXpresso solves the flashing issue even without the LPC-Link2 Debug probe.
Thanks for all Your support! I am closing this thread!
Hi @kerryzhou
The connection failure issue sorted after I started using a JTag device.
Currently I am facing another issue where the GDB server gets stuck at "Starting target CPU..."
Please find a screen shot below
Can You please suggest a solution.
Let me know if You want this to be put in a different thread.
Thanks!
Hi @SakSath ,
Please try the JLINK command connection, whether that works OK or not?
I mean, like this:
Best Regards,
Kerry
Hi Kerry,
Yes connection through J-link is working for me as expected.
Issue is only with logs on the Putty / Tera Term Terminal.
I have cross checked the settings multiple times.
Hi @SakSath ,
What do you mean: Issue is only with logs on the Putty / Tera Term Terminal?
Do you mean, you download the hello_world project, and can't output the uart data?
If yes, you need to check your project, whether it is selected to the semihosting, and the UART hardware connection to your PC COM port.
If not the JLINK debug issues, just the UART printf issuse, it's better to create a new case about it, thanks.
Best Regards,
kerry
Hi @kerryzhou,
Thanks for the very quick and prompt response!
Can You please guide us to a quick link on how to use the CMSIS DAP on the board?
Is this is a setting that is available with JLink software ?
Thanks in advance!
Hi @SakSath ,
Please download the SDK for RT1170, then follow this manual:
https://mcuxpresso.nxp.com/en/builder?hw=MIMXRT1170-EVK
SDK_2_12_0_MIMXRT1170-EVK\docs\
Getting Started with MCUXpresso SDK for MIMXRT1170-EVK.pdf
Wish it helps you!
Best Regards,
Kerry
Hi @kerryzhou
Thanks for the links!
We have referred to the same document that You have pointed and came across an error when JlinkGdbServer is launched. Please find a screenshot of the error we are facing below
From the document We see that there are two points mentioned to be taken care before launching Jlink gdb server
Hi @SakSath ,
Now, you are still using the MIMXRT1170-EVK on board debugger, right?
Please give me a photo about your board connection, and the picture like this:
Control Panel\Hardware and Sound\Devices and Printers
You can see, my board is the CMSIS DAP.
If you want to change the on board debugger, please refer to this link:
If you want to change it to the JLINK, you can use the LPCSCrypt to change it, but please note, after you change the firmware, you need to use another USB to connect the J20 power on the chip.
Wish it helps you!
Best Regards,
Kerry
Hi,
Yes I am still trying to use the on board debugger.
Additional Information:
The jumper J22 is closed.
Thanks in advance!
[Update]
Please find below the screenshot of devices when I booted the device with Command_Jlink.cmd
I believe I should get this to "CMSIS DAP" not sure of the appropriate script!
Thanks!
Hi @SakSath ,
Ok, your board is not the new board which is out of factory, the on board debugger should be modified to the JLINK when you get the board.
So, now, do you want to use the JLINK as debugger? JLINK also works OK.
You can try the JLINK, please note, find another USB cable to connect the J20, otherwise, maybe you meet issues, as the RT chip is not powered on.
Best Regards,
kerry
Hi @kerryzhou
Thanks a lot for all the support!
Have a couple of questions
1. When You say Jlink will work, does it need a Jlink debug probe as well ?
2. Can You please let know the procedure if I have to change the existing debugger to what comes as default with the board with out the need of any external probe. Also can You tell if there is a way to check if the PC has all necessary drives to interact with the board and vice-versa
I have connected another USB to J20 yet Jlink says the probe does not support the processor. Here is the picture of my current connections for your reference
Thanks again!
Hi @SakSath ,
1. When You say Jlink will work, does it need a Jlink debug probe as well ?
=> No, not the external JLINK, from your description, your board on board debugger already JLINK, so, when you do the debugging, just select the JLINK.
You even can use the JLINK command to connect your board, it should can find the ARM core:
2. Can You please let know the procedure if I have to change the existing debugger to what comes as default with the board with out the need of any external probe. Also can You tell if there is a way to check if the PC has all necessary drives to interact with the board and vice-versa
I have connected another USB to J20 yet Jlink says the probe does not support the processor. Here is the picture of my current connections for your reference
=> This application note is useful to you, if you want to change back to the CMSIS DAP:
https://www.nxp.com/docs/en/application-note/AN13206.pdf
Ok, find you already use the external power supply, then J20 also can be removed.
Please use the item 1, JLINK driver attached JLINK command, check the ARM core at first.
JLINK driver:
https://www.segger.com/downloads/jlink/JLink_Windows_x86_64.exe
Wish it helps you!
Best Regards,
Kerry
Hi @kerryzhou ,
PFA the error seen on trying JLink Commander
Hi @SakSath ,
Sorry, we mainly support the customer with email or the community, no call.
If you need the directly support, you also can contact with the local NXP distributor.
https://www.nxp.com/support/sample-and-buy/distributor-network:DISTRIBUTORS
Seems your used JLINK firmware is not OK.
Please follow me to update your JLINK firmware again:
1. download the LPCScrypt and install it.
https://www.nxp.com/design/microcontrollers-developer-resources/lpcscrypt-v2-1-2:LPCSCRYPT
2. update JLINK firmware
https://www.segger.com/products/debug-probes/j-link/models/other-j-links/lpc-link-2/
Mainly this information
3. then board enter DFU, insert J22, power off and power on the board again
You will find the LPC like your previous picture
4. open this one
Press any key to update your firmware.
Then the new JLINK firmware should can support it.
Then you can try remove J22, power off and power on the board again, and do the JLINK connection again.
BTW, your chip partnumber is wrong, you need to select RT1176, not RT1166
Best Regards,
kerry
Hi @kerryzhou ,
I have downloaded and installed "LPCScrypt_2.1.2_57". However the installation folder does not contain the script You mentioned - "Program LPC-Link2 with segger J-Link_2."
I downloaded the LPCScrypt installation executable from the same page You referred.
Can You please let me know where I can find this script ?
Regards,
Saketh
Hi @SakSath ,
These scrypt is what you need:
If you open it from start->lpcscrypt, then you will find my mentioned picture in the previous reply, as I am the same version as you.
Best Regards,
kerry
Hi,
So I changed the core to Cortex-M4 instead of Cortex-M7 and selected the board to MIMXRT1176XXX8_M4
I was able to connect to the board.
But after a power cycle when I did tried to flash some a demo application I am encountering the error "Could not find core in Coresight setup"
What could have gone wrong?
EDIT: I tried "unlock" as mentioned in other threads but still couldn't connect even after unlocking
Regards,
Saketh
Hi @SakSath ,
Please refer to this post, which also using the on board JLINK, it works OK:
Best Regards,
kerry
Hi @kerryzhou ,
I have tried the steps you mentioned in the other thread as well.
Still I am facing the issue of "Could not find core in Coresight setup"
I tried unlocking following the discussions in few other threads. However that also did not help
The switch SW1 is in 1-OFF, 2-OFF, 3-ON, 4-OFF state and the Switch SW2 was is in all off state.
From the prints appearing on the Putty terminal I identified that the program currently flashed is "bubble_peripehral"
What other checks can I do?
Request You to guide me on how to halt/erase the existing program and re-program with some other sample application .
Regards,
Saketh