SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By rmelo
#171480
Hello,
My name is Rodrigo and I new here.

I am having problems to read/write to CCM (Clock Controller Module) registers and also others registers.

* I have a Sabreboard SD (iMX6 Quad).
* I am using OpeOCD 0.8.0 with the JTAG dongle Opendous (which I used previously with OMAP 4430 and Exynos 4210 without this problem).
* I am starting OpenOCD with the follows script:
Code: Select all
source [find interface/ftdi/opendous_ftdi.cfg]
source [find board/sabreboard.cfg]
reset_config trst_and_srst
init
* When I halt the CPU and try to read:
Code: Select all
> halt
number of cache level 1
imx6.cpu.0 cluster 0 core 0 multi core
target state: halted
target halted in Thumb state due to debug-request, current mode: Supervisor
cpsr: 0x800001f3 pc: 0x0000270e
MMU: disabled, D-Cache: disabled, I-Cache: enabled
> mdw phys 0x020C4000
JTAG-DP STICKY ERROR
MEM_AP_CSW 0x2800062, MEM_AP_TAR 0x20c4000
Failed to read memory at 0x020c4000
in procedure 'mdw'
* I also tried without phys.
* With debug level 3:
Code: Select all
Debug: 424 26252 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_mdw phys 0x020c4000
Debug: 425 26252 command.c:145 script_debug(): command - mdw ocd_mdw phys 0x020c4000
Debug: 427 26253 cortex_a.c:2110 cortex_a8_read_phys_memory(): Reading memory at real address 0x20c4000; size 4; count 1
Debug: 428 26253 adi_v5_jtag.c:271 jtagdp_transaction_endcheck(): jtag-dp: CTRL/STAT error, 0xf0000021
Debug: 429 26254 adi_v5_jtag.c:291 jtagdp_transaction_endcheck(): MEM-AP Cached values: ap_bank 0x0, ap_csw 0xa2000022, ap_tar 0x20c4000
Error: 430 26254 adi_v5_jtag.c:298 jtagdp_transaction_endcheck(): JTAG-DP STICKY ERROR
Debug: 431 26254 adi_v5_jtag.c:315 jtagdp_transaction_endcheck(): jtag-dp: CTRL/STAT 0xf0000001
Error: 432 26254 adi_v5_jtag.c:331 jtagdp_transaction_endcheck(): MEM_AP_CSW 0x2800062, MEM_AP_TAR 0x20c4000
Error: 433 26255 arm_adi_v5.c:512 mem_ap_read(): Failed to read memory at 0x020c4000
Debug: 434 26255 command.c:628 run_command(): Command failed with error code -107
User : 435 26255 command.c:666 command_run_line(): in procedure 'mdw'
Any idea of how I could solve the problem?

Thanks in advance
Last edited by rmelo on Thu May 29, 2014 2:10 pm, edited 2 times in total.