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.

F28069 Flash Programming

Hi,

We have been developing on an F28069 controlCard platform and using the TI flash programmer integrated into CCSv5 without any issues. Our code configures the processor to use the external 20MHz crystal. We are now migrating cross onto 'real' hardware with the same processor but with a 10MHz external crystal. The first we programmed this new setup was with an incorrect configuration which still assumed a 20MHz crystal; after this, we are no longer able to erase or program the flash.

My understanding is that when the JTAG is connected, the processor should revert to a known 'good' state regarding clocks etc. (the flash programmer settings assume OSCLK = 10MHz, CLKINDIV = 2 and PLLCR = 18). We can single-step through the code from CCSv5 and can view flash memory so we believe the JTAG chain link is good nut whenever we attempt an erase it returns a fail 'Unknown Error'. Obviously unless we can erase the flash, we cannot correct the existing program that configures for the wrong clock.

Finally, we have check our 3.3V flash voltage and the TRST JTAG signal and both are good.

Any help much appreciated.

Regards

  • Hi,

    1) Flash Plugin does not print a "Unknown error" message in the console window.  It may be an emulation error.

    2) Try configuring the Boot mode GPIOs to wait mode or SCI boot mode instead of Get mode.  Get mode causes the device to fetch from Flash (default Get Mode) before the debugger gets connected and this might cause weird system state in your case since the clock configuration is wrong in the already programmed code in Flash.  This might cause issues even after connecting the debugger.

    3) Hope you did not get any errors related to device unlocking.  If yes, enter the password in the Flash Plugin GUI and unlock the device before erasing the Flash.  Don't clear the password fields until the erase operation is over.  

    4) Try these steps and see if it works: (i) Configure the boot mode GPIOs to wait boot (ii) Power cycle the device (iii) Connect debugger (iv) Give a debug reset (iv) Enter the passwords in the GUI if passwords are programmed (v) Click on Erase Flash

    5) Generating debug server logs might help for further debug.  You can generate the logs via "CCS Help menu ->  CCS Support -> Select Debug Server Log -> Click on Properties ->  Select Enable Debug Server Logging + Choose a log file location -> Click Ok".

    6) Can you also select the "Enable Verbose Output" option provided at the bottom of the On-Chip Flash GUI in CCS (Tools menu -> On-Chip Flash)?  Send us the console window output when the erase fails.

    Thanks and regards,

    Vamsi

  • Hi,

    Thanks for the support. I forced the boot WAIT mode as suggested and this enabled me to erase the flash and successfully reprogram.

    Best Regards

    Richard