Documents required:
1) Software: ccs, hex6x.exe, FlashBure.exe
2) Procedure: FBTC project under CCS
3) The .out file generated by the program to be burned. The secondary boot program should have been added to the compilation linker. We name this .out file BurnOut.out
4) The .cmd file to be used during the burning process is used for converting to .hex and also for burning. We name this .cmd file BurnCmd.cmd
step:
1) Prepare .hex file (only .hex can be burned, .out cannot be burned directly)
a) Put BurnCmd.cmd, BurnOut.out and hex6x.exe in the same directory, such as D:\Burn
b) Open CMD.exe under Windows (Start--Run: cmd), and change the directory to D:\Burn. For the conversion method, please refer to "How to locate the command prompt in a directory" (http://blog.csdn.net/jbb0523/article/details/7681755)
c) Execute the hex6x.exe BurnCmd.cmd command to generate a .hex file
Note: The content of BurnCmd.cmd is generally as follows:
BurnOut.out
-a
-memwidth 8
-image
ROMS
{
FLASH: org = 000h, len = 0x2c744, romwidth = 8, files = {BurnHex.hex}
}
There are two things to note about this file. First, the first line must be the same as the name of the .out file to be burned, such as BurnOut.out now. Second, the name in files = {BurnHex.hex} is the name of the generated .hex file.
2) Open the FBTC project in CCS, connect to DSP, compile and link to generate FBTC.out;
3) Open FlashBurn.exe and create a .cdd file. An interface will appear as shown below:
Three files need to be added:
a)Conversion Cmd adds the BurnCmd.cmd used previously
b) File To Burn, add the previously generated BurnHex.hex
c) FBTC Program File: add the FBTC.out file generated by the FBTC project compilation and linking (the storage directory of FBTC can be arbitrary, just find its FBTC.out file and add it when adding files in this step)
d) Don’t worry about the rest, just save the file in .cdd and use any name you want.
Then execute three commands:
a) Program——Download FBTC
If this step is executed successfully, the Not Connected in the FashBurn.exe interface will change to Connected, and the Flash Physical line will be automatically filled with data.
b) Program——Erase Flash
There will be a progress bar when executing this step. You may need to repeat it several times. Anyway, I executed it many times before it succeeded.
c) Program——Program Flash
This is the burning program, just wait.
It should be noted that some low-version FBTC programs may only support low-version CCS. For example, the one I use only supports CCS2.2, and higher versions will cause errors.
As long as the names above are consistent with each other...
|