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.

Referenced projects overwriting flash



Hello,

    I'm using CCS 4 and a TMS320F28912.  I have two projects in my workspace. one is the 'application', the other is the 'boot'. Both are built to occupy different areas of on-chip flash.

   I've been experimenting to see if I can run the boot that shoulds then vector to the application. Trouble is, having loaded the application into flash, when vectoring to it in the boot code, the flash area is all 'FFFF' - probably erased through the action of loading the boot image.

   I've tried referencing the application project in the boot project, which means that now, when building the boot, the application is also built, but I still get the same problem - if I load the boot image after the application image - it seems to get rid of the application image in flash.   HELP!!

  • Julian Woloszczuk said:
    I've been experimenting to see if I can run the boot that shoulds then vector to the application. Trouble is, having loaded the application into flash, when vectoring to it in the boot code, the flash area is all 'FFFF' - probably erased through the action of loading the boot image.

    You can control which sectors are erased by the flash programmer when it goes through the erase, program, verify. If your boot and application code are in different flash sectors, and your application code has already been previously programmed, you can tell the programmer to not erase that sector when you program the boot code. This can be set in the On-chip flash settings(CCS menu Tools->On-chip Flash). Does this help?

     


    Also, once you have programmed something to flash and want future debug sessions to just debug it without reprogramming, instead of clicking on "Debug Active Project", you can launch the debugger (right-click on .ccxml file and choose Debug As->Debug Session), connect to target and load symbols for the .out file and from there debug the program that is already in Flash.

  • Hello Aarti,

       Thanks for the info - I never knew this page existed!  Now I'm playing with different settings, so I'll no doubt come back with more questions :-)   Have a good weekend,     Julian.