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

关于C66X norwriter的问题

CCS v5

c6657

最近在做Bootloader,用NOR启动

已经用工具链把.out文件转为.dat文件

我用TI提供的norwriter工程加载,直接将.dat文件load到0x80000000地址上,然后RUN,完成后把BOOT模式拨到NOR启动,启动是正常的,可以跑起来。

可是我再认真看了回norwriter的README文件,却有些不理解了,原文如下:

1. Be sure to set the boot mode dip switch to no boot/EMIF16 boot mode on the EVM.

2. Copy the binary file to writer\nor\evmc66xxl\bin directory, and rename it to app.bin.

3. Change the file_name and start_addr in writer\nor\evmc66xxl\bin\norwriter_input.txt if necessary. By default the NOR writer will load app.bin to DSP memory and write the data to NOR device start byte address 0, the start_addr should always be set to the start byte addess of a sector.

4. Open CCSv5 and launch the evmc66xx emulator target configuration and connect to core 0.

5. Load the program writer\nor\evmc66xxl\bin\norwriter_evm66xxl.out to CCS, be sure evmc66xxl.gel is used in CCS and DDR is intialized.

6. Open the Memory view (in CCSv5, view->Memory Browser), and view the memory address 0x80000000.

7. Load app.bin to 0x80000000:
* In CCSv5, right click mouse in memory window, select "load memory".
* Browse and select writer\nor\evmc66xxl\bin\app.bin (raw data format), click "next"
* Set the Start Address to "0x80000000", Type-size to 32-bits, leave swap unchecked, click "finish"

8. After the binary file is loaded into the memory, run the program (in CCSv5, press F8), it will start to program the NOR.

9. When programming is completed, the console will print "NOR programming completed successfully", if there
is any error, the console will show the error message.

其中标红色的地方有点不太理解

>>Copy the binary file to writer\nor\evmc66xxl\bin directory, and rename it to app.bin

问:这里的 binary file是从哪里来的?为什么复制进去还要重命名呢?

>>Change the file_name and start_addr in writer\nor\evmc66xxl\bin\norwriter_input.txt if necessary.

问:norwriter_input.txt是如何修改的?

>>Load app.bin to 0x80000000

问:LOAD APP.BIN TO 0X80000000 跟 LOAD .DAT文件 TO 0X80000000 有什么不同?

jimmy cui:

追加:

究竟norwriter_input.txt文件起什么作用?在工程里哪里用到了?

搜索

复制

xu shen1:

回复 jimmy cui:

这个程序会先打开这个文件,里面有要读取的。bin文件的文件名和要写入的初始地址,原本是app.bin,所以只会打开这个文件。你要用自己的,要么改成这个名字,要么修改。txt里面的内容

赞(0)
未经允许不得转载:TI中文支持网 » 关于C66X norwriter的问题
分享到: 更多 (0)