JTAG/SWD on Quartz64 model A
#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


Messages In This Thread
JTAG/SWD on Quartz64 model A - by capablegh - 07-30-2021, 02:33 PM
RE: JTAG/SWD on Quartz64 model A - by capablegh - 08-04-2021, 06:05 AM
RE: JTAG/SWD on Quartz64 model A - by capablegh - 08-12-2021, 02:29 PM
RE: JTAG/SWD on Quartz64 model A - by Randomuser - 08-15-2022, 06:19 PM
RE: JTAG/SWD on Quartz64 model A - by fatalfeel - 10-03-2022, 03:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  The "Should I buy a Quartz64 right now?" flow chart CounterPillow 4 6,405 03-06-2025, 08:35 PM
Last Post: corruptgnu
  Quartz64 seeming died Darin755 0 793 01-19-2024, 07:29 PM
Last Post: Darin755
  Quartz64 model a neither booting nor resetting without pressing reset button aleix 2 2,464 08-24-2023, 04:52 AM
Last Post: aleix
  Thoughts on repairs for a Quartz64-B beepy 1 1,874 08-02-2023, 05:02 PM
Last Post: beepy
Question Li-Pol QUARTZ64 Model-B vs Model-A polrus 1 2,021 07-13-2023, 10:36 PM
Last Post: tllim
  can't get quartz64-A working jyoung 14 10,182 04-29-2023, 04:41 PM
Last Post: diederik
  Trustzone support for QUARTZ64 capablegh 13 12,720 04-28-2023, 01:58 AM
Last Post: NCLI
  Booting Quartz64 Model B Jojo120120 14 12,796 01-23-2023, 03:31 AM
Last Post: balbes150
  quartz64 model b 2x20 max power proj964 1 2,458 10-23-2022, 05:32 AM
Last Post: CounterPillow
  quartz64 model b 2x20 pin header proj964 1 2,556 10-23-2022, 05:21 AM
Last Post: CounterPillow

Forum Jump:


Users browsing this thread: 1 Guest(s)