我在使用J-LINK调试710的时候,连接正常,但设置完断点,一运行continue指令的时候,便出现一个Starting target CPU....就死在这了,找了很久,找解决得了,按照万工的提示,改了初始化地址,可还是不行。
请高手帮我解答下,指导下主要是什么原因,初始化的地址我也按bootloader的init.s里面的值进行改了,sp和pc 我用AXD连接的时候,看到的寄存器值 SP和PC都是0x0,不知道还有什么地方 有问题?
下面是我的调试信息:
Connected to 192.168.1.51
Reading register (PC = 0x00000000)
Read 4 bytes @ address 0x00000000 (Data = 0xE59FF018)
JTAG speed set to 30 kHz
Target endianess set to "little endian"
Resetting target
/*下面初始化值都是按照bootloader里面的值的*/
Writing register (CPSR = 0x000000D3) /*禁止全局中断*/
Writing 0x000530C0 @ address 0xFFF01000 /*EBICON寄存器*/
Writing 0xFC040080 @ address 0xFFF01004 /*ROM(FLASH)*/
Writing 0x000090E4 @ address 0xFFF01008 /*SDCONF0:SDRAM(16 M)*/
Writing 0x020090E4 @ address 0xFFF0100C /*SDCONF1*/
Writing 0x0000015B @ address 0xFFF01010 /*SDTIME0*/
Writing 0x0000015B @ address 0xFFF01014 /*SDTIME1*/
Writing register (R13_USR = 0xE59FF018)
Writing register (R15 (PC) = 0xE59FF018)
Setting breakpoint @ address 0x000000A4, Size = 4, BPHandle = 0x0002
Starting target CPU.../*死在这里了....*/
下面是我的 .gdbinit文件
#
#J-LINK GDB SERVER initialization
#
#This connects to a GDB Server listening
#for commands on remote host at tcp port 2331
target remote 192.168.1.103:2331
#Set JTAG speed to 30kHz
monitor speed 30
#Set GDBServer to little endian
monitor endian little
#Reset the chip to get to a known state
monitor reset
#
#CPU core initialization (to be done by user)
#
#Set the processor mode
monitor reg cpsr = 0xd3
#Initialize the CPU register including EBI,SDRAM,ROM and so on.
monitor memU32 0xFFF01000 = 0x000530C0
monitor memU32 0xFFF01004 = 0xFE040080
monitor memU32 0xFFF01008 = 0x000090E4
monitor memU32 0xFFF0100C = 0x020090E4
monitor memU32 0xFFF01010 = 0x0000015B
monitor memU32 0xFFF01014 = 0x0000015B
#Set auto JTAG speed
#monitor speed auto
#Setup GDB FOR FASTER DOWNLOADS
set remote memory-write-packet-size 1024
set remote memory-write-packet-size fixed
#Load the program executable called "*.gdb"
#load sample.gdb
#monitor flash download = 1
#
#Initializing PC and stack pointer
#RAM_START_ADDR is at 0x0
#
monitor reg r13 = (0x0)
monitor reg pc = (0x0)
#monitor go |