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/TMS320F28388D: Adding printf to project

Part Number: TMS320F28388D

Tool/software: Code Composer Studio

I am using the standard GPIO library and came across a problem. I want to be able to print the status of an input. I am including the stdio.h but when I try to compile there is an error showing up. #10099-D program will not fit into available memory.  placement with alignment/blocking fails for section ".text" size 0x24ad page 0.  Available memory ranges: It point to this line "

.text : >> RAMD0 | RAMD1 | RAMLS0 | RAMLS1 | RAMLS2 | RAMLS3" in the 2838x_RAM_lnk_cpu1.cmd file.

Also the default hello world does not show this 2838x_RAM_lnk_cpu1.cmd in the project tree.

 If I do a blank hello world project then there seems to be no issue.

Thanks for any assistance.

  • Jeffrey Nielsen said:
    I am including the stdio.h but when I try to compile there is an error showing up. #10099-D program will not fit into available memory.  placement with alignment/blocking fails for section ".text" size 0x24ad page 0.

    This message is saying that there is not enough memory available in the specified RAM blocks to accommodate the  .text (code) section for your program. Adding the printf routines (which tend to increase code size a good bit) to your project likely put your code section over the available limit.

    You should be able to fix this by adjusting the linker command file. Please have a look at this page to understand the linking process. The FAQ section explains the different options for addressing this issue.

    Let us know if you still need further assistance resolving the error.