Hi, when I debug kernel on beagleboard XM with flywatters 2, I got the following error if I set a break point at 0xc0021a00 in the kernel.
adapter speed: 10 kHz
Info : JTAG tap: dm37x.jrc tap/device found: 0x2b89102f (mfg: 0x017, part: 0xb891, ver: 0x2)
Info : JTAG tap: dm37x.dap enabled
Locking debug access failed on first, but succeeded on second try.
adapter speed: 1000 kHz
Warn : dm37x.cpu: ran after reset and before halt …
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x800001d3 pc: 0x40200fa0
MMU: disabled, D-Cache: disabled, I-Cache: enabled
Error: JTAG-DP STICKY ERROR
Error: MEM_AP_CSW 0x2800052, MEM_AP_TAR 0xc0021a00
Error: JTAG-DP STICKY ERROR is n
Error: MEM_AP_CSW 0x2800052, MEM_AP_TAR 0xc0021a00
Warn : Block read error address 0xc0021a00
But when I tried example LEDblink, it works. I just wonder maybe address 0xc0021a00 (kernel virtual address) is not accessible.
In LEDblink, the start address is 0x82000000 set in ldscript file. If I change it into 0xc0008000, it has the same error. If this is cause, how can I configure openOCD to fix it? Any idea?