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
  Configuring Python GPIO Pin Control Rock64 www139 2 3,012 9 hours ago
Last Post: nolan
  How to enable ES9023-based DAC hat on Rock64? lowry 2 258 03-18-2021, 03:44 PM
Last Post: zborgerd
  1wire DS18b20 on Rock64? mypineme 3 1,244 02-10-2021, 11:21 AM
Last Post: TRS-80
  Display options for the Rock64 joey49 1 744 11-23-2020, 09:52 AM
Last Post: joey49
  Are HW design files available for ROCK64? irenek 1 1,111 09-29-2020, 05:57 PM
Last Post: tllim
  No sound from Rock64 DAC codebreaker 2 1,057 09-29-2020, 02:14 PM
Last Post: codebreaker
  Which Voltage and Amper to supply both Rock64 + External drive enclosure ? prog-amateur 0 983 08-21-2020, 09:16 PM
Last Post: prog-amateur
Information Rock64 RTL8188EU Wifi Adapter from Pine Store Tested Well MarkHaysHarris777 7 4,770 05-13-2020, 06:00 PM
Last Post: Leon Rembowski
  accident got 12v at my rock64 lifeform 1 1,269 04-17-2020, 09:46 AM
Last Post: fire219
  Help! Rock64 won't boot anything! trohn_javolta 3 2,162 03-09-2020, 06:03 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)