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: MEMORY MAP PREVENTED READING 0x20010004

Part Number: MSP432P401R


Tool/software: Code Composer Studio

  

my project includes UART, DMA and SPI parts. First, I initialized UART, DMA then SPI. After SPI I checked UART and I saw that something goes wrong. I recognized this error. I closed DMA and SPI and the error continues. I tried one of my code's backups but still the same error. I reinstall CCS but no change. My code can be debugged and run. However it does not work properly. I change my MSP432 board but the same error occured. I couldn't find proper answer for that error in e2e forums. I couldn't understand what causes this problem. Is there anyone can tell me what is the reason of this problem?  

  • EDIT : I solved the memory map problem by changing "includes " but now I encountered another problem "(In Reset)".. Is there a hardwire problem with my card?

  • Hello,

    ali orun said:
    but now I encountered another problem "(In Reset)"

    Can you explain in more detail what the issue is? A screenshot would again help.

    Thanks

    ki

  • Hi Ki,

    Thanks for your attention. when I debug the code, In Reset is written as seen in the first screenshot. After I click pause button on the Code Composer Studio, this happens( 2. Screenshot). PC stacks at 0xFFFF...  I started to think that my debugger is broken. 

    SS1:

    SS2:

  • Looks like your program hit an exception. Is this an SDK example or your own custom program?
  • Hi Ki,

    It is my own program. When I wrote this, I used SDK 2.40.00.. However I tried I2C example  and I got ‘Memory MAP Prevented’ error again.

    Thanks..

  • 0x21000004 is not valid memory on the MSP432P401R. I'm not sure why it is being accessed. Are you using the I2C example from the SDK without any modifications? If so, which exact I2C example?
  • Hi Ki,

    I don't remember which example I used exactly but I tried the example without any modification. May the debugger cause this error while arranging the adresses of the variables in the program? How can I refresh the debugger's drivers settings ?
  • The error is caused by the debugger trying to access that memory location. Why it is trying to access it is confusing. The blinkled example in your earlier screenshots do not show a linker command file. The examples typically come with one, hence the confusion about the example you are using. Is an linker command file being used?
  • Hi Ki

    Ki-Soo Lee said:
    Is an linker command file being used?

    I checked the linker but it is not the solution. Now I bought a brand new MSP-432p401r launcher. I tried simplest example with it. But I saw the same "MEMORY MAP PREVENTED READING 0x... " error. However the program is running and working. Is it a normal and default situation for this board?  I couldn't understand anything. 

    Thanks...

    NOTE: I updated my SDK from 2.20.00 to 3.10.08.. 

  • ali orun said:
    I tried simplest example with it

    Which exact example did you recently try? 

  • Hi Ki,

    I opened a new workspace and a new project and I did not write anything in it, I just compiled "main" by using a new board. Memeory map error was still written on the debug session. After that I wrote a simple loop and compiled it, error was still there but program got into the loop. Then I wrote an UART echo code, it worked but MEMORY MAP PREVENTED READING 0x20010004 did NOT dissappeared anytime. 

    Thank you...

  • Please attach the example you are using. Provide all the project files (project folder + source + any other dependent files)
  • Hi Ki.. 

    I am sending the project I tried but you will see it is nothing but a new project. here above there is a screenshot of the error. It appears on the debug session but program is working. 

    thank you.. https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/81/deneme.7z

  • Thank you.

    The error occurs in the default boot routine for the cortex-m, when the stack pointer is initialized (line 78 of boot_cortex_m.c). The stack is placed in the upper portion of SRAM with __STACK_END set to 0x20010000. Memory starting at address 0x20010000 is reserved memory not accessible to the debugger. The error you see is indicating that the debugger could not access that reserved space but it should not impact execution.

    Hope this helps explain things.
    ki
  • Thank you very much Ki.. I am on way my without considering this problem then.. 

    Good Luck on your life.. :)