TI中文支持网
TI专业的中文技术问题搜集分享网站

C6678固化启动以及仿真调试的问题

1.C6678外挂了S29GL01GP ,使用裸机工程可以将bin文件烧写进去,将程序固化

2.用户工程使用了sys/bios=6.33.4.39,CCS版本为5.5,MCSDK=2.0.9.21,PDK=1.0.0.21,NDK=2.21.0.32

所有核运行在一个用户工程里,调试用户工程时遇到以下问题:

    1)局部变量时高维的,系统堆栈不够用,希望整个工程放在DDR3中运行,怎么把FLASH中的程序搬移到DDR3中运行?

    2)使用仿真器调试时,需要使用gel文件初始化DDR3?如果程序需要固化,时钟、DDR3、UART、SRIO、EMIF等初始化程序怎么放在二级引导程序里?

    3)需要多DDR3进行分区管理吗?每个核运行在DDR3中不同区域里。

Shine:

1.可以参考下面文档里的C6657 EVM SPI boot example with DDR initialization例程。
www.ti.com/…/spracn2.pdf

2.如果程序要通过仿真器加载到片外DDR3的话,需要使用GEL文件来初始化DDR3。程序固化时,ROM bootloader可以通过DDR3 Configuration Table来初始化DDR3。GEL文件可以参考EVM板的gel文件,在CCS目录下:C:\ti\ccs1020\ccs\ccs_base\emulation\boards\evmc6678l\gel

3. 可以让每个核运行在DDR3中不同区域里。

,

user4192203:

1.怎么修改DDR Configuration Table?
2.在.cfg文件里Startup.lastFxns.$add('&EVM_init');这个EVM_init函数是什么时候调用?调用前c语言的系统环境是否已经初始化完成?

,

user4192203:

在git.ti.com/…/apps这里没有找到下面三个例子C6678 EVM SPI boot example
• C6657 EVM SPI boot example with DDR initialization
• C6657 EVM NAND boot example

,

Shine:

我之前有下载,请参考附件。1106.C6657_directROM_Boot_example.zip

,

user4192203:

使用CCS调试时,怎么设置能使得程序跳转至boot而不是main

,

Shine:

请问您是要用CCS跟踪boot过程?

,

user4192203:

是的,跟踪调试二级引导程序。

,

Shine:

连上仿真器,板子上电,打开CCS, load symbols,然后可以设置硬件断点跟踪boot过程。

"Load Symbols" instead of "Load Program"

When debugging an application from flash, you want to let the application boot in its normal manner. If you select "load program" in CCS then you are overwriting the application that loaded from flash and not debugging the code as it runs normally. You should instead do "load symbols" in CCS and then select your .out file. This will allow you to debug your code using variable/function names without overwriting the code that boots from the flash.
CCS 3.3: Go to File -> Load Symbols -> Load Symbols Only
CCS 4.x: Right-click on the project and select Debug Options. On the "Debugger" tab choose "Load Symbols" instead of "Load Program"
CCS 5.x: In the "Debug View" tab choose "Run"–> "Load" –> "Load Symbols"

赞(0)
未经允许不得转载:TI中文支持网 » C6678固化启动以及仿真调试的问题
分享到: 更多 (0)