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.

Watch window has "Memory Map prevented...."?

I am using CCS v4.1.3.00038 to debug Stellaris LM3S5R31. I downloaded the dll fix for C3 silicon (http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/471/p/66454/240212.aspx#240212).

Whenever I try to use the watch window for locals or globals, the value is displayed as:

"Memory map prevented reading of target memory at 0x2000nnnn" where nnnn is any address in RAM. Additionally, I can not view anything in the Memory View. There is an error icon that says "Memory access request creation failed."

Does anyone have any recommendations?

Thank you.

  • Sounds like the debugger memory map is configured so that the debugger does not think those addresses are readable.

    For more information on memory maps, see: http://processors.wiki.ti.com/index.php/Memory_map

    The memory map is usually setup by the startup GEL file. The startup GEL file is specified in your target configuration file (see Fig. 11 of: http://processors.wiki.ti.com/index.php/Target_Configuration_-_Custom_Configurations)

    Thanks

    ki

  • There are errors in the lm3s5r31.gel file:

     

        GEL_MapAddStr(0x20000000, 0, 0x00000000, "R|W", 0); /* SRAM */    
        GEL_MapAddStr(0x20000000, 0, 0x20000000, "NONE", 0); /* Reserved */

    The first line describes the RAM, with a length of 0. The second has a starting address the same as SRAM. according to GEL_MapAddStr help file, because the starting address is the same, the previous line will be overwritten with the new permissions, which is NONE.

    Change the GEL file to these settings (I believe)

        GEL_MapAddStr(0x20000000, 0, 0x0000C000, "R|W", 0); /* SRAM */    
        GEL_MapAddStr(0x2000C000, 0, 0x20000000, "NONE", 0); /* Reserved */

     

    Thank you for pointing me to the GEL file.