Hi,
I try to halt the CPU before loading my application to the RAM of RM48L952, but I have a quastion about accessing the ICEPIck SYS_CNTL register. I study the spna230 document for inspiration how to access and halt the CPU. My procedure seems like:
1. After power-up the device I read the IcePICK deviceID.
2. Select the DAP TAP in accordance with spna230 doc, section "2.1.5.3 Selecting DAP TAP"
3. I confirm, that the DAP is connect by reading the ID 0x4BA00477
4. Unlock the LOCKACCES register (offset 0xFB0)
5. Sets the breakpoint to 0x0 by writing 0x0->DBGBVR, 0x1E7->DBGBCR
Now I need to "switch" to ICEPick TAP and issue a sytem reset by writing to SYS_CNTL to reset the core. After reset, the core should be halt on address 0x0. My question is - how can I access the ICEPick registers, if I am switched in the DAP TAP? Is there any sequence(like section 2.1.5.3) which is needed to perform? I am not very good in JTAG, so I will appreciated any suggestion how to write and read the ICEPick register.
Thank you!
Tomas