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/MSP430FR6989: Program will not fit into available memory. Run Placement with alignment fails for section '.stack' error

Part Number: MSP430FR6989

Tool/software: Code Composer Studio

I am trying to create a game on the MSP430fr6989 using my professors library which has a game management module. But every time i use certain functions of the game management module I keep getting this error below. I have tried to change the stack size under basic options which is currently 160 stack and 160 heap. I have tried changing linker file to make the stack in FRAM but then it doesn't run the program. Nothing works, Please someone help me. 

If you need more info let me know.

Description Resource Path Location Type
<a href="processors.wiki.ti.com/.../10099"> program will not fit into available memory. run placement with alignment fails for section ".stack" size 0x100 . Available memory ranges: lnk_msp430fr6989.cmd /Neil'sGameV2 line 195 C/C++ Problem

  • You are using up all of the RAM memory range in your system.  But I don't know why.  To understand that, I need to see the map file.  

    First, you need a clean build just to generate a valid map file.  As a temporary step, make the stack very small, then build.  The resulting code won't work, but since you don't plan to run it, that doesn't matter.   If you don't get a clean build, make the stack even smaller.  The map file is called name_of_project.map.  It is in the Debug directory, or whatever name is used for the current build configuration.  It is a text file.

    Attach the map file to your next post.  So the forum will accept it, add the file extension .txt to it.

    Thanks and regards,

    -George

  • Please submit the requested map file.

    Thanks and regards,

    -George

  • Since it has been a while, I presume you have resolved your problem.  I'd appreciate hearing how you resolved it.

    Thanks and regards,

    -George