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/MSP430F167: CCS: Stack and heap collision / error #10099-D: program will not fit into available memory. run placement with alignment fails for section "NMI" size 0

Part Number: MSP430F167

Tool/software: Code Composer Studio

Hello,

I have rebuilt an old code in CCS. However when i use TI compiler i get the following error.

When i use the GNU compiler, the program compiles to give a .hex file with a warning stack and heap collision and obviously the program doesnot work as expected.

This is an old program which was compiled easily and running ine with older version of GCC (very old dated 2014). Currently I am using CCS

Code Composer Studio
 Version: 8.2.0.00007
OS: Windows 10, v.10.0, x86 / win32.
TI compiler ; 18.1.3.LTS   GNU: 7.3.1.24
Please guide me through any links if available to avoid and resolve such errors.
Thanking you in anticipation,
Priyanka,

  • I suspect the file lnk_msp430f167.cmd is a GCC linker script.  Such a file is not compatible with the TI linker.  The syntax is different.  The corresponding file for the TI linker has the same name, and is located in a directory similar to C:\ti\ccsv8\ccs_base\msp430\include.  Note this file ends by including another file named msp430f167.cmd, which is located in the same directory.

    Thanks and regards,

    -George

  •  hello,

    Thank you for your suggestion. I tried your way and the code compiled using ti compiler. However when i try to burn the hex file, it says, Program memory empty, no code is loaded.

    Next issue with gnu compiler  GNU: 7.3.1.24 is that it also compiles, but when i load the hex file  using olimex jTAG-tiny-v2, the program memory has following fault: found data at address unavailable on device.

    Please help me debug this issue.

  • Hello Priyanka,
    if you have setup the project in CCS correctly, and the Compiler is able to compile the code for the correctly selected device in the project settings, I would suspect the problem on the programming tool you're using, as the CCS Compiler would recognize, in case it is trying to locate code in non existing memory space.
    So my suggestions are:
    1. Please contact Olimex for support, as it seems to be related to their tool.
    2. Use an official TI programming tool.

    Best regards
    Peter
  • Hello Priyanka,
    it seems you do not need further support on this, thus I am closing the thread. In case there is need for further support on this on your side, you can reopen it, by simply posting to it.

    Best regards
    Peter