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.

Trouble debugging with CCS4 and LM3S5R31, using EKK or DK

I'm having trouble building and debugging our application for the LM3s5R31 on our target board,
using either the EKK-LM3S9B90 or the DK-LM3s9b96 .
-in TargetConfiguration.ccxml I've set it to LM3S5R31,
-in project properties, CCS Build, selected Stellaris LM3S5R31
-in lm3s5r31.cmd I edited
MEMORY
{
    FLASH (RX) : origin = 0x00000000, length = 0x00040000
    SRAM (RWX) : origin = 0x20000000, length = 0x0000C000 <<-- was 0x0000000
}

A REbuild is successful, but debugger produces these messages:
  CORTEX_M3_0: Error adding memory map range: Start address is greater than end address
    CORTEX_M3_0: GEL Output:  Memory Map Initialization Complete
  CORTEX_M3_0: GEL: Error while executing OnTargetConnect(): Could not read memory at 0x400FE100: Execution state prevented access.

I've confirmed that our board is powered, and it has successfully downloaded blinky, appropriately adjusted for the R31.
Testing of that was limited, so my confidence that it was actually running is not 100%.

The link map shows no overlapped sections.

Where is this error coming from?

  • Which specific version of CCS are you using?

    In addition to the incorrect length for SRAM in the linker command file lm3s5r31.cmd, the debugger memory mapping in the GEL file lm3s5r31.gel was also incorrect in versions earlier than CCS 4.2.2. This gel file can be found in <CCS_INSTALL_DIR>\ccsv4\emulation\gel. My guess is that those errors are a result of the incorrect length specification in the GEL file.

    You can either download and install CCS 4.2.2 from http://processors.wiki.ti.com/index.php/Download_CCS.
    Or you can drop the attached GEL file (taken from the CCS 4.2.2 installation) into the above folder in your CCS installation. You may want to first make a backup copy of the original file, just in case.

    Let us know if this resolves the issue.

    6567.lm3s5r31.gel