Tool/software: Code Composer Studio
Hi,
I have a bare metal code ( hello world ) and i try to use JTAG to debug it. I currently stuck at Jtag connection by below error:
"CortexA9: Error connecting to the target: (Error -1322 @ 0x30080) Device failed to enter debug/halt mode because debug registers are locked. Power-cycle the board. If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 6.0.576.0) "
Here is what i do:
1. I changed the Target configuraiton ( ccxml file) XDS200->DAP->CS_DAP_DEBUG->MPUSS->CortexA9 -> Address to 0x40300000
2. I have modified lds file : move all the section to L3OCMC0 ( i also tried SRAM and L2 cache ). And i also checked the map file, all the section is in right region :
for eg:
.bss 0x403008dc 0x0 c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-ar/thumb/crti.o
.bss 0x403008dc 0x1c c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/armv7-ar/thumb/crtbegin.o
.bss 0x403008f8 0x0 c:/ti/ccsv7/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-ar/thumb/crt0.o
.bss 0x403008f8 0x0 ./main.o
.bss 0x403008f8 0x0 ./startup_ARMCA9.o
.rsthand 0x40300000 0x70
0x40300000 . = ALIGN (0x10000)
*(.isr_vector)
.isr_vector 0x40300000 0x50 ./startup_ARMCA9.o
0x40300000 __isr_vector
0x4030004e DEF_IRQHandler
*startup_ARMCA9.o(.text)
3. Start Debug
It does not reach initialization stage ( load gel) . I think it failed when try to load to internal RAM.
Does it support load program to internal RAM without any Nor/Nand/DDR/SD option
Thanks
Wayne