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.

CCS/MSP432P401R: Resolving problem: Memory map prevents reading 0x20010000

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Having issues loading program in MSP432P401R target. Initial problem is:

i               unknown                  Memory map prevented reading 0x20010000
n              unknown                  Memory map prevented reading 0x20010014
result       unsigned char[16]    [???                                             0x20010004
[0]            unknown                 Memory map prevented reading 0x20010004
[1]            unknown                 Memory map prevented reading 0x20010005
.

.

I made an attempt to modify the msp432401r.gel file thinking the length was too short. 

(old)   GEL_MapAddStr(0x20000000, 0, 0x00010000, "R|W", 0);     /* MEM_SRAM64K */

(new) GEL_MapAddStr(0x20000000, 0, 0x00020000, "R|W", 0);     /* MEM_SRAM64K */

which resulted in:

i            unknown                  Target failed to read 0x20010000
n           unknown                  Target failed to read 0x20010014
result    unsigned char[16]    [??? 0x20010004

Next went to msp432p401r.cmd file and altered SRAM_DATA length

ALIAS
{

(old) SRAM_CODE (RWX): origin = 0x01000000

(old) SRAM_DATA (RW) : origin = 0x20000000

        } length = 0x00010000

(new)  SRAM_CODE (RWX): origin = 0x01000000

(new) SRAM_DATA (RW) : origin = 0x2000000
      } length = 0x00020000 //changed from 0x00010000

Once I try to debug, this causes the software to loop with:

Texas Instruments XDS110 USB Debug Probe/CORTEX_M4_0 (In Reset)

Texas Instruments XDS110 USB Debug Probe/CORTEX_M4_0 (Running - A Reset Occurred On The Target)

When I suspend, the following message is displayed:

Texas Instruments XDS110 USB Debug Probe/CORTEX_M4_0 (Suspended - A Reset Occurred On The Target) 
Default_Handler() at startup_msp432p401r_ccs.c:201 0x00001956 
0xFFFFFFF8 (no symbols are defined for 0xFFFFFFF8)

Maybe its due to an overlap in the SRAM_CODE address w/ SRAM_DATA address but I'm not sure. Need a bit of help.

Thanks in advance.

  • Hello,

        Changing the length to 20000 will cause the access of reserved memory space, since the stack will be placed in the upper (High) portion of SRAM.  It appears that in your original code that the IDE is attempting to put variables in this restricted space, suggesting that the .cmd file is not being read correctly.  Can you provide any more context around your setup?

    Chris

  • Chris,

    Thanks for the reply. I believe this error occurred when I changed the compiler while in the middle of the project. I started a new project and imported the I2C example for testing and everything works fine.

    Thanks