Use Jlink to debug multicore system

  Kiến thức lập trình

I have an SoC which has dual Cortex-M7 CPUs, and CPU0/CPU1 is attached to the AHB Access Port0/1. When I connect to CPU0 using Jlink (JTAG interface), how can I read the registers of CPU1? Can I simply switch AP using APSEL and then access the CPU1’s resgisters using DCRSR and DCRDR?

What I have tried using Jlink is:

  1. WriteDP 2, 0x01000000 // select AP1
  2. Write to the address of DCRSR register
  3. read the data from the address of DCRDR register
    What I got is always the register of CPU0 instead of the CPU1

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT