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.

关于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 有什么不同?