This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How does AHB-AP access cpu core registers

Im learning the debug progress to access memory system in a mcu 

now i know how to read/write a register with a specific address

:write TAR and DRW in the AHB-AP

but how does AHB-AP read/write a core register like pc or sp which have no address

Parents
  • Take a look at the debug system registers in the ARMv7-M or ARMv8-M Architecture Reference Manual.

    DCRSR (Debug Core Register Selector Register)

    DCRDR (Debug Core Register Data Register)

     

    Basically you select the register and operation (read/write) and start the transfer by writing to DCRSR. DCRDR holds the data to write or data read.

Reply
  • Take a look at the debug system registers in the ARMv7-M or ARMv8-M Architecture Reference Manual.

    DCRSR (Debug Core Register Selector Register)

    DCRDR (Debug Core Register Data Register)

     

    Basically you select the register and operation (read/write) and start the transfer by writing to DCRSR. DCRDR holds the data to write or data read.

Children
No data