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.

Programming flash

Other Parts Discussed in Thread: TMS320F2812

Hi,

Using CCSv4 and Spectrum Digital XDS510 USB/JTAG connected to target board equipped with TMS320F2812.

I have two applications, app#1 and app#2, generated in their own projects. I have built each application with a unique linker command file which specifies entrypoint and flash sector location. The idea is to boot app#1 after reset, do some tests and then continue execution in app#2.

So, when trying to program both of the applications to flash I do the following:

1. Start a debug session from app#1 project - this erases the whole flash and writes everything as expected to the sector I specified in linker command file.

2. While in that debug session, I tried Tools->On-Chip flash, and changed load procedure from "erase-program-verify" to only "program-verify"

3. Still in the same debug session, I then used Target->Load program and selected app#2. This seems ok; it doesen't say "erasing" or anything like that and, and I end up in main() of app#2 which is at the correct sector according to the linker command file for app#2.

My problem here is that after loading app#2, app#1 has disappeard! When examining app#1 flash sector it contains nothing but 0xFFFF. Does anyone know the correct procedure of loading two different applications to different internal flash sectors?

Thanks!

/Ola

  • Although I have not done this the way you are, you might check into the CCSv4 Project Properties -> CCS Debug -> Target tab -> F28xxx Flash Settings.

    This, I believe, gives you the ability to indicate which flash sectors are erased for the 2 different projects.  I'm assuming you have 2 different projects, one for each application.

    Another approach is to build app#2 and then covert this into a binary file through the hex2000 utility and then a hex2bin utility.  Then include this binary file into an array defined in app#1.