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.

DSS Script for Erasing Flash (TMS320F28335)

Other Parts Discussed in Thread: TMS320F28335, UNIFLASH

Hi,

I'm facing issues in running the following lines of code to erase the FLASH memory in TMS320F28335.

  printTrace("Erase FlashSectorA : True");
  debugSession.flash.options.setBoolean("FlashSectorA", true);
  printTrace("Erase FlashSectorB : True");
  debugSession.flash.options.setBoolean("FlashSectorB", true);
  printTrace("Erase FlashSectorC : True");
  debugSession.flash.options.setBoolean("FlashSectorC", true);
  printTrace("Erase FlashSectorD : True");
  debugSession.flash.options.setBoolean("FlashSectorD", true);
  printTrace("Erase FlashSectorE : True");
  debugSession.flash.options.setBoolean("FlashSectorE", true);
  printTrace("Erase FlashSectorF : True");
  debugSession.flash.options.setBoolean("FlashSectorF", true);
  printTrace("Erase FlashSectorG : True");
  debugSession.flash.options.setBoolean("FlashSectorG", true);
  printTrace("Erase FlashSectorH : True\n");
  debugSession.flash.options.setBoolean("FlashSectorH", true);

 printTrace("Erasing the selected sections...\n");
 debugSession.flash.options.erase();
 printTrace("Erasing Complete!\n");

When I execute the above piece of code, I'm getting exception with error code# 0 at line debugSession.flash.options.erase()

Could any one please help?

- Anand

  • Hi!

    What do you mean under: "When I execute the above piece of code". Do you try select only some Flash partitions (not all) for erasing at flashing utility? I understand you right?

    Regards,

    Igor

  • I enabled only sectorA in FLASH in my java script below and executed and still getting same exceptions. Please note I'm executing my java script in command prompt.

      printTrace("Erase FlashSectorA : True");
      debugSession.flash.options.setBoolean("FlashSectorA", true);
      debugSession.flash.options.setBoolean("FlashSectorB", false);
      debugSession.flash.options.setBoolean("FlashSectorC", false);
      debugSession.flash.options.setBoolean("FlashSectorD", false);
      debugSession.flash.options.setBoolean("FlashSectorE", false);
      debugSession.flash.options.setBoolean("FlashSectorF", false);
      debugSession.flash.options.setBoolean("FlashSectorG", false);
      debugSession.flash.options.setBoolean("FlashSectorH", false);
      
      printTrace("Erasing the selected sections...\n");
      debugSession.flash.options.erase();
      printTrace("Erasing Complete!\n");

  • Is it possible to check what is the script CCS is generating to erase the FLASH memory in target hardware? My requirement is to erase the flash memory and load the out file without opening CCS. Could any one please help me on this?

  • Hi!

    In general the embedded flashing utility of CCS allows to select Flash-partitions for erasing. Do you have some other utility already (Uniflash, C2Prog, Flasher-C2000 etc.)? All utilities allow to select Flash-partitions for erasing.

    Regards,

    Igor