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.

Failure to write flash when launching debugger



Hi,

I am using Code Composer Studio Version: 5.2.1.00018 with an LM3S9B92 development board.

I recently started having problems trying to write flash through the debugger.  When I right click on my project and click "Debug As Code Composer Debug Session" the debugger starts to launch, but then I get the following error messages.

CORTEX_M3_0: GEL Output:
Memory Map Initialization Complete
CORTEX_M3_0: GEL Output: Watchdog Timer Enabled
CORTEX_M3_0: GEL Output: UARTs Enabled
CORTEX_M3_0: Flash Programmer: Timed out while writing to Flash memory
CORTEX_M3_0: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x17c8
CORTEX_M3_0: GEL: File: C:\projects\uhe2\uhe2\Debug\uhe2.out: Load failed.

I am still able to program, erase, verify and execute my firmware using the LMFlash Programmer utility.  Also, if I change the debug configuration to Load Symbols Only instead of Load program, I am able to attach and debug my firmware.  I read other posts on this topic, but they seemed to be a little dated now and the symptoms were not exactly the same as what I am seeing.  For example, in this thread http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/93276.aspx the user was able to program through the debugger, if he first erased the flash using the LM flash utility.  That is not the case for me.

Thanks for your help,

Lance

  • Hi Lance,

    Could you try updating to CCSv5.4.0 and try again?

    Thanks

    ki

  • Hi Ki,

    Thanks for the suggestion.  I tried updating to CCSv5.4.0, but I am now getting errors during the build that I'm not sure how to fix.  Maybe you can be of assistance with this:

    js: "C:/ti/mcusdk_1_00_01_74/products/xdctools_3_23_05_61/packages/xdc/bld/BuildEnvironment.xs", line 146: ReferenceError: "config" is not defined.

    gmake.exe: *** No rule to make target `.configuro'. Stop.
    js: "C:/ti/mcusdk_1_00_01_74/products/xdctools_3_23_05_61/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
    "C:/ti/mcusdk_1_00_01_74/products/xdctools_3_23_05_61/packages/xdc/tools/configuro/Main.xs", line 66
    "C:/ti/mcusdk_1_00_01_74/products/xdctools_3_23_05_61/packages/xdc/tools/ICmd.xs", line 50
    gmake: *** [configPkg/compiler.opt] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****