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.

CCSv5 Debug Server Scripting On-Chip Flash Necessary Sectors Only for Program Load

Other Parts Discussed in Thread: CODECOMPOSER

Using CCSv5 version 5.0.1.201012231000 Debug Server Scripting (DDS)  the embedded target programming takes a long time approximately 11 minutes.

How do I set the On-Chip Flash, Necessary Sectors Only (for Program Load) option because the configuration files used by the external programming calling the DDS are different to the configuration files used by CCSv5 Graphical User Interface (GUI)?

  • Hi,

    You can modify the Flash Erase settings in DSS using the following line:

    debugSession.options.setString("FlashEraseSelection", "Necessary Sectors Only (for Program Load)");

    Please let me know if you have any additional questions.

    Thanks.

    Ricky

  • Does CodeComposer Studio version 4 DSS also support the Flash Erase setting?

    debugSession.options.setString("FlashEraseSelection", "Necessary Sectors Only (for Program Load)");

    Thank you,

    Huw

     

  • Huw,

    Yes, you can set the same options in CCSv4 as well. Also, you should be able to output the available Flash options as well as the supported values using the following command in your DSS script:

    debugSession.options.printOptions("Flash");

    Regards,

    Ricky

  • Ricky,

    Is it possible to output only the supported "FlashEraseSelection" values using a DSS script command instead of all the available Flash options?

    Thank you,

    Huw

  • Huw,

    Yes, the parameter for the printOptions() API takes a regular expression. So, in your case, you can print only the FlashEraseSelection information using the command, debugSession.options.printOptions("FlashEraseSelection");.

    Regards,

    Ricky