This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

u-boot在CCS环境下的调试



各位高手:

最近在调试SPL+UBOOT,主要参考下面的方法,目前SPL已经没有问题了,UBOOT还是有些问题

processors.wiki.ti.com/.../Sitara_Linux_Training:_uboot_linux_debug_with_ccsv5_sdk7

我是自己改了一个GEL文件,DDR的配置肯定是没有问题的。

1)如果我按照下面的方法运行

  -  直接在CCS里面:Tools-> Load memory, 加载u-boot.bin到内存中,开始地址设置为0x80800000,

  -  然后再Run -> Load -> load symbols 加载u-boot文件;

  -  最后把PC寄存器设置为0x80800000

在CCS中是可以单步执行来调试的,不过执行到initcall_run_list(init_sequence_f)) board_f.c基本上就一直在这里执行。


2) 如果我按照链接中的方法

  -  先load-> Program -> u-boot

  -  我的relocaddr是0x8ff46000

  -  再Run->Load->symbols 把 u-boot加载到偏移地址0x8ff46000的地方;

  -   最后无论把PC设置为0x8ff46000,还是0x80800000, CCS都只能在汇编的界面执行,根本进入不到代码中去。

请问我的方法有什么问题吗?

谢谢

Chris