google-coral/coralmicro

Issue accessing Jtag on Coral Micro Dev Board

Tarek-Mhareb opened this issue · 15 comments

Description

Hello,

We are unable to connect using JTAG on the board.
The pictures shows the simple setup but the connection fails every time.
We tried Keil debuggers and we are still unable to communicate with the board.
Do we have to use an external power supply and free the USB port?

Thanks

Coral Debugg1
Coral Debugg
Coral Debugg2
Coral Debugg3
Coral Debugg4

Click to expand!

Issue Type

Build/Install

Operating System

Windows 10, Ubuntu

Coral Device

Dev Board Micro

Other Devices

No response

Programming Language

No response

Relevant Log Output

No response

Hi @Tarek-Mhareb can you please try the set up software section mentioned at: https://coral.ai/docs/dev-board-micro/wireless-addon/#jtag

Hi @Tarek-Mhareb were you able to access the jtag?

Hello @hjonnala

I am using Linux Ubuntu and SWD (Jtag) now.
I am getting the following error every time I try to connect.
Jlink CMD Log
Here how it should be
NXP EVK Board.txt
I tried both serial and default modes.
Thanks,
Tarek

Looks like you would need a wireless add on board or custom add on board as per requirements.

Can you pls try attaching wireless add on board: https://www.mouser.com/ProductDetail/Coral/G650-07974-01?qs=vvQtp7zwQdMFLSVsQtkh5g%3D%3D

Hi @hjonnala
I forgot to mention that it is attached on a custom board. It is not possible to connect to all jtag pins from interface.
Coral Jtag

Does the custom board has board to board connectors? https://coral.ai/docs/dev-board-micro/get-started/#2-get-to-know-the-board. I don't think, it would work without those connections.

There are of course board to board connectors.
I attached a picture to show you exactly that the board is attached to a custom prototype carrier board with jtag connector showed in the picture.
Can you verify that the serial mode is the correct mode for jtag connection and that we can use jtag to flash to NXP’s on board?
Thanks

Hi,
I also attached here the command line steps with the error.

jtag _from_cmd

Hi, It looks like you are trying to debug without all the JTAG pins, since they are only connecting to the headers and not all the JTAG pins are broken out there. Unfortunately, this isn't supported.

Here are the some recommendation for you:

  1. You can buy the wifi board and use that for debug. This is the only officially supported JTAG debugging method.

  2. or you can use altium design files to locate the Dev Board Micro pads with the remaining JTAG signals and solder their own wires to the PCB to connect to their debugger.

  3. or you can design another board that does break out the all JTAG pins available on the WIFI board from the high density connectors.

Thanks!

Hello,

The header was first used without the add-on board. The add-on board has the full jtag as shown.
The error obtained from Jlink commander seems to show that the communication was established so it might not be a hardware issue.
Thank you
b2b2
b2b3
InkedCoral Jtag
JTAG
PCB
b2b1

I am using Linux Ubuntu and SWD (Jtag) now. I am getting the following error every time I try to connect. Jlink CMD Log Here how it should be NXP EVK Board.txt

Please check with the NXP community if they have any suugestions for the Jlink CMD Log issue: https://community.nxp.com/t5/i-MX-RT/Failed-to-power-up-DAP-ERROR-Could-not-connect-to-target/m-p/1503062#M20946

jtag _from_cmd

To debug the blink_led error first try to flash the blink_led and then try with --debug flag: https://coral.ai/docs/dev-board-micro/wireless-addon/#flash-for-debugging
To revise the GDB commands that run our app, open scripts/flashtool.py and edit the StateStartGdb function: https://github.com/google-coral/coralmicro/blob/main/scripts/flashtool.py#L789

Hello @hjonnala ,

I was able after several tries to use JTAG. I can use both modes, but it seems that the USB has to be also connected in serial mode. JTAG can also be verified using windows/Linux JTAG Commander.
You can mark this as solved but I have a question related to flashing bare metal projects.
I used Mcuxpresso with JTAG and I was able to debug but not flash. I linked the application to RAM and performed real time debugging. I was not able to flash to QSPI memory onboard because it seems that the memory starting address is not at 0x30000000. Could you please provide us with the correct configuration for flashing C projects?

Thank you

I was able after several tries to use JTAG. I can use both modes, but it seems that the USB has to be also connected in serial mode. JTAG can also be verified using windows/Linux JTAG Commander.

Great, Thanks for letting us know.

I used Mcuxpresso with JTAG and I was able to debug but not flash. I linked the application to RAM and performed real time debugging. I was not able to flash to QSPI memory onboard because it seems that the memory starting address is not at 0x30000000. Could you please provide us with the correct configuration for flashing C projects?

Unfortunately, I don't have experience with Mcuxpresso IDE. Please use the setps mentioned for FreeRTOS or arduino IDE to flash the Dev Board Micro. Thanks!!

Are you satisfied with the resolution of your issue?
Yes
No

@Tarek-Mhareb,
Hello. Tell me, will the following programmers be suitable for this microcontroller iMXRT1176?

  1. https://www.waveshare.com/st-link-v2-mini-stm32.htm
  2. https://www.waveshare.com/st-link-v2-mini-stm32.htm

Will they be able to program it? Will it be possible to debug it?