2222 views|0 replies

2015

Posts

0

Resources
The OP
 

How to burn FLASH and move the program (bootloader) of F2812 [Copy link]

The "materials" required for F2812 flashing and its program migration (bootloader): 1. A set of F2812 evaluation boards 2. DSP-CCS platform 3. A set of simulation products 4. Programs to be flashed and migrated 5. TI flashing plug-in 6. Hezhongda flashing algorithm program 7. Your own migration program Bootloader operation steps (The premise is that the program is compiled and can be run in RAM through the emulator) (Assume that the program to be burned is app.pjt, the burning algorithm program is lash_p.pjt, and the moving program is schlep.c) 1. Rewrite the CMD file of the app.pjt program to be burned, and ensure that its program part is placed in a continuous data space (the generated program block should be defined in the data space, and the next step flash_p algorithm program will burn it sequentially into the specified FLASH block). 2. After successful compilation, load program it and load it into the specified RAM. 3. Open the project file flash_p, modify the source program address and target address of the algorithm part. The source program address is based on the address configured in the CMD file in app.pjt; the target address is the FLASHF address where the program is to be placed; the defined burning length must not be less than the length of the program to be burned. (After compiling app.pjt, you can check the starting address and length of its program segment in the generated app.map file.)4. Compile the flash_p.pjt file. After successful compilation, load program to it. You can set breakpoints in the program after verification (otherwise the program will enter a loop. In addition, the burning part has three parts: erasing, burning, and verification). When the breakpoint is reached, the program stops running. If there is no error, this step has completed the burning of FLASH. If you want to check the burning situation, you can open the assembly window (menu—>windows—>assembly) to compare the source address (in the data space) and the target address (in the FLASH space) to see if they are consistent.5. Use TI's burning plug-in to burn your own migration program. In your own migration program, you must correctly write the program entry address, that is, the entry address to be moved to RAM. This address can also be found in the app.map file. There is a prerequisite: the RAM address moved here must be exactly the same as the starting address of the first load app.out, so that the consistency of the entry address can be guaranteed. After this step is completed, you can open the assembly window to observe whether the transfer is successful. Check whether 0x3f7ff6 is a jump instruction LB _c_int00, and then check whether the program address in FLASH is consistent with the program address to be moved to RAM.

This post is from DSP and ARM Processors
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list