JTAG on Rock64
#1
I see that the rk3328 offers the TCK and TMS pins for JTAG (at the expense of using the SD card).  But I don't see any pins for TDI or TDO.  On the other hand, the rk3328 development board apparently supports JTAG.  Does someone have a schematic for hooking up JTAG to the Rock64?

Thanks,
Tom
  Reply
#2
Hi, are you planning on debugging bare metal A53 applications, or low level firmware stuff? I don't see the rest of the JTAG pins in the pinmux tables either, and when further reading the RK3328 user manual it seems it's not really JTAG but SWDIO they support with JTAG emulated by the DAP SWJ-DP IP block, which is indeed only a two pin interface described in chapter 11...
Come have a chat in the Pine IRC channel >>
  Reply
#3
(02-28-2018, 11:19 AM)xalius Wrote: Hi, are you planning on debugging bare metal A53 applications, or low level firmware stuff? I don't see the rest of the JTAG pins in the pinmux tables either, and when further reading the RK3328 user manual it seems it's not really JTAG but SWDIO they support with JTAG emulated by the DAP SWJ-DP IP block, which is indeed only a two pin interface described in chapter 11...

Hi Xalius,
I always end up needing JTAG to fix those intermittent, timing-related, bugs.   Big Grin  In looking at the RK3328 TRM I also saw the reference to the CoreSight DAP (Debug Access Port) module that is part of the RK3328.  As you say, it supports both SWD (Serial Wire Debug) and JTAG, but the RK3328 might not expose the extra JTAG pins.  I'm becoming a little suspicious of the claim that the RK3328 dev board supports JTAG.  I may ask RockChip if this is just a cut-and-paste error from documentation of another SoC.

I have a Lauterbach so JTAG would be convenient, but I saw that Segger offers a JTAG/SWD product that looks like it would do the same thing.  I'm just not familiar with the SWD interface.  I guess it can't be too different.  If you have further insights please let me know.

Thanks,
Tom

Update: It looks like the Segger J-Link DOES NOT support the Cortex A53. They apparently plan to but only on the Ultra+ model (which is out my price range).
  Reply
#4
In my experience JTAG/SWD is pretty useless when used with operating systems or firmware that uses virtual memory and multiple cores/processes/threads? There are more advanced debug systems which are often embedded in those SoC to do OS level hardware debugging, but JTAG might still be useful if you want to work on bootloader stuff or bare metal applications...

PS: JTAG via sdcard-pins seems to be pretty common because of tablets and phones, Allwinner SoC have that as well and often you can use an adapter like this:

https://www.cubietruck.com/products/usd-breakout-board
Come have a chat in the Pine IRC channel >>
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Are HW design files available for ROCK64? irenek 3 4,539 12-11-2023, 09:31 PM
Last Post: tllim
  Rock64 is unreliable after 3 years of service - power problem? ReleaseTheGeese 0 279 11-23-2023, 05:05 AM
Last Post: ReleaseTheGeese
  Rock64 PoE compatbility with Pi4 Hatt recent Single Board Computer offering from PINE kharak 1 975 04-26-2023, 11:38 PM
Last Post: tllim
  Case for the rock64 that supports the POE hat. o1CRiMSON1o 0 576 03-21-2023, 03:48 PM
Last Post: o1CRiMSON1o
Brick Rock64 usb2.0 Power Control Floating GPIO Tutorial Files & Notes MarkHaysHarris777 6 13,045 01-15-2023, 10:36 AM
Last Post: ds00
  rock64 totally brick dakobg 2 1,650 11-07-2022, 05:45 PM
Last Post: olivercfc
  3D-Printable Button Pegs for the ROCK64 Aluminium Case CounterPillow 2 3,413 08-04-2022, 01:31 AM
Last Post: Vicky Weimann PhD
  Where can I find the ROCK64 POE HAT Zoz 2 2,498 06-08-2022, 12:44 AM
Last Post: Zoz
Smile wooden case for ROCK64 killor 13 16,189 03-04-2022, 06:56 AM
Last Post: killor
  1wire DS18b20 on Rock64? mypineme 6 6,828 09-28-2021, 03:07 PM
Last Post: TRS-80

Forum Jump:


Users browsing this thread: 1 Guest(s)