sipeed / LicheeRV-Nano-Build

LicheeRV-Nano-Build
82 stars 31 forks source link

JTAG #13

Open Fishwaldo opened 5 months ago

Fishwaldo commented 5 months ago

Has anyone had any success getting JTAG working? I've got the sipeed SLOGIC and setup the pinmux for JTAG, but it can't be detected....

Fishwaldo commented 4 months ago

Just a update - The Pull Up resisters attached to GPIOA_18, GPIOA_19, GPIOA_28, GPIOA_29 (which are used for JTAG) cause JTAG to fail.

I'm not sure why these were added. The SOC has the ability to do PU/PD on GPIO pins itself, and these resisters are not present on the MilkV Duo256 (which works fine with JTAG).

This makes JTAG debugging on the LicheeRVNano impossible. :(

fzi-haxel commented 4 months ago

I do not have a SLOGIC, but I tried it with the "Blue Pill" board with the cklink-lite firmware and a JLINK with openocd and both worked. The only problem I had, was (as mentioned in #650) that the TMS and TCK signals are switched on the diagram.

0x754C commented 4 months ago

You need reset the c906 core:

  1. connect jtag
  2. hold reset button
  3. release reset button, then open DebugServer