JTAG/SWD on Quartz64 model A
#1
Hello.

The Quartz64 model A I purchased should be here in a few days. I would like to connect a JTAG/SWD debugger to it. 

Where could I find documentation where this is described? In the schematics for the board, I see mention of JTAG in few places, but I am not sure where physically the pins are on the board. 

Can anyone provide specifics? Also, aside from the RK3566 datasheet are there any reference manuals/guides for the board? Where can I find these? Also, the same for the Quartz64.
  Reply
#2
(07-30-2021, 02:33 PM)capablegh Wrote: Hello.

The Quartz64 model A I purchased should be here in a few days. I would like to connect a JTAG/SWD debugger to it. 

Where could I find documentation where this is described? In the schematics for the board, I see mention of JTAG in few places, but I am not sure where physically the pins are on the board. 

Can anyone provide specifics? Also, aside from the RK3566 datasheet are there any reference manuals/guides for the board? Where can I find these? Also, the same for the Quartz64.


No response from Pine64? I understand the board is not ready for production use, and I am using it only for exploring/experimenting. Surely, a JTAG is present that was used for the UBoot and Linux porting efforts.
  Reply
#3
(08-04-2021, 06:05 AM)capablegh Wrote:
(07-30-2021, 02:33 PM)capablegh Wrote: Hello.

The Quartz64 model A I purchased should be here in a few days. I would like to connect a JTAG/SWD debugger to it. 

Where could I find documentation where this is described? In the schematics for the board, I see mention of JTAG in few places, but I am not sure where physically the pins are on the board. 

Can anyone provide specifics? Also, aside from the RK3566 datasheet are there any reference manuals/guides for the board? Where can I find these? Also, the same for the Quartz64.


No response from Pine64? I understand the board is not ready for production use, and I am using it only for exploring/experimenting. Surely, a JTAG is present that was used for the UBoot and Linux porting efforts.


An article https://crwulff.blogspot.com/p/rock64.html I came across by a Chris Wulff (thank you Chris), is about JTAG/SWD on Rock64. Apparently the what appear to be two JTAG pins (TCK and TMS), seem to really be SWD pins  (SWCLK and SWDIO). Similarly on the Quartz64 schematic I see ARM_JTAG_TCK and ARM_JTAG_SWD.

Is it true that Quartz64 follows the same as for the Rock64? After all Quartz64 is after Rock64/RockPro64.

Could anyone please confirm that indeed the ARM_JTAG labelled pins are actually SWD and not JTAG, and Chris Wulff's article/blog is applicable to Quartz64?
  Reply
#4
Here is an article I wrote about how I got it working: http://notes.zahoryzontnik.com

There are significant differences from the process described by Chris, but reading his article put me on the right track. Specifically the register addresses and values are different. One needs an openocd config file for RK3566 that I had to create (it can be copied from the article - once I've tested it more I'll submit it as a contribution to openocd) . It was created based on scanning the rom table. And one needs to disable sleep/idle states for the cores. This is also described there.

The two pins labelled ARM_JTAG are indeed JTAG and SWD. There is a procedure to switch them between JTAG and SWD. OpenOCD runs that procedure automatically when SWD as protocol is specified.

In general debugging via SWD works fine. Hardware breakpoints and watch points work, single stepping through the kernel (including irq handlers) works, memory copy works. Mind I've used jlink hardware only as my debug probe and instead of "break" use "hbreak" when kernel debugging.
  Reply
#5
plz refer to this
https://t.rock-chips.com/forum.php?mod=v...a=page%3D1
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Quartz64 seeming died Darin755 0 430 01-19-2024, 07:29 PM
Last Post: Darin755
  Quartz64 model a neither booting nor resetting without pressing reset button aleix 2 1,757 08-24-2023, 04:52 AM
Last Post: aleix
  Thoughts on repairs for a Quartz64-B beepy 1 1,235 08-02-2023, 05:02 PM
Last Post: beepy
Question Li-Pol QUARTZ64 Model-B vs Model-A polrus 1 1,310 07-13-2023, 10:36 PM
Last Post: tllim
  can't get quartz64-A working jyoung 14 7,106 04-29-2023, 04:41 PM
Last Post: diederik
  Trustzone support for QUARTZ64 capablegh 13 9,734 04-28-2023, 01:58 AM
Last Post: NCLI
  Booting Quartz64 Model B Jojo120120 14 10,004 01-23-2023, 03:31 AM
Last Post: balbes150
  quartz64 model b 2x20 max power proj964 1 1,946 10-23-2022, 05:32 AM
Last Post: CounterPillow
  quartz64 model b 2x20 pin header proj964 1 1,971 10-23-2022, 05:21 AM
Last Post: CounterPillow
Tongue Trying to get Quartz model A working fasani 2 2,828 09-17-2022, 06:43 AM
Last Post: balbes150

Forum Jump:


Users browsing this thread: 1 Guest(s)