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.

TMS320F28388D: getting error in using options.setBoolean in flash using DSS

Part Number: TMS320F28388D

HI 

Ti 

i am performing from script in DSS to not to erase some flash sector.

using :

debugSessionCPU1.flash.options.setString("Erase Settings", "Selected Sectors Only");
debugSessionCPU1.flash.options.setBoolean("Sector 3", false);
debugSessionCPU1.flash.options.setBoolean("Sector 4", true);

giving error:

Option not found

where i can get the list of valid id and value for F28388D.

public void setString(java.lang.String id,
                      java.lang.String value)
public void setBoolean(java.lang.String id,
                       boolean value)

i want to erase some part of flash only bebore loading program.

here is screenshot from ccs.

thanks
Harshit
  • Hello,

    debugSessionCPU1.flash.options.setBoolean("Sector 3", false);
    debugSessionCPU1.flash.options.setBoolean("Sector 4", true);

    The issue is the ID strings are not correct. The ID string does not always match the GUI text. To get the list of IDs, see:

    <CCS INSTALL DIR>/ccs/ccs_base/scripting/docs/DS_API/com/ti/debug/engine/scripting/Flash.html

    For example, I ran a script for my F28388D controlCard, calling:

    mySession.flash.options.printOptions(".*")

    In the output, I see:

    ...

    Boolean Option:
    id: FlashC28Bank0Sector0
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 0 (0x80000 - 0x81FFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector1
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 1 (0x82000 - 0x83FFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector2
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 2 (0x84000 - 0x85FFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector3
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 3 (0x86000 - 0x87FFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector4
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 4 (0x88000 - 0x8FFFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector5
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 5 (0x90000 - 0x97FFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector6
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 6 (0x98000 - 0x9FFFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector7
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 7 (0xA0000 - 0xA7FFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector8
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 8 (0xA8000 - 0xAFFFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector9
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 9 (0xB0000 - 0xB7FFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector10
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 10 (0xB8000 - 0xB9FFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector11
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 11 (0xBA000 - 0xBBFFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector12
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 12 (0xBC000 - 0xBDFFF)
    value: true
    Boolean Option:
    id: FlashC28Bank0Sector13
    name: TMS320C28XX.Flash Settings.Erase Settings.Sector 13 (0xBE000 - 0xBFFFF)
    value: true

    ...

    Hence the ID for sector 3 is: FlashC28Bank0Sector3

    The ID for sector 4 is: FlashC28Bank0Sector4

    Try Using those IDs.

    Thanks

    ki

  • Thanks, Ki,

    for the elaborative information.