cant access memory mapped addresses, except for private peripheral addresses.

I am trying to debug the nrf9160 with the swd interface. 

I can read and write to the private peripheral addresses (0xe000_0000 and up) but i cant write or read to any other memory mapped peripheral or address.

i tried reading the ficr registers but al the registers return 0x0000_0000.

Parents Reply
  • I write/read to AP via the CoreSight DAP-lite protocol.

    here is a link to the protocol:https://developer.arm.com/documentation/ddi0316/d/?lang=en

    CTRLSTATUS=0x0;

    IDCODE=0xFC;

    TRANSFERADDRESS=0x04;

    READWRITEDATA=0x0C;

    to initialize the ahb-ap: AP-Write(CTRLSTATUS, 0x43800042) 

    to perform an ahb-ap read Idcode: AP-read(IDCODE,data) data returns 0x84770001

    to perform an ahb-ap read memory:

    - AP-write(TRANSFERADDRESS, address)

    - AP-read(READWRITEDATA,data)

    to perform an ahb-ap write meory:

    - AP-write(TRANSFERADDRESS, address)

    - AP-read(READWRITEDATA,data)

    issue: ahb-ap read/write only works on private peripherals, that are inside the cpu. but it doesnt work on normal peripheral such as NVMC.

Children
No Data
Related