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.
Hi,
I am using CCS5 on my evm5515 board.
I start a project and then create a main.c
with
#include <stdio.h>
#include <time.h>
int main()
{
printf("use");
return 0;
}
and make the target configuration with my board.
Why there is following error when I debug the project? And there is no binary?
Looks like CCS is not finding file stdio.h.
- Right click the project name in the Project Explorer pane anc click "Properties"
- Open "Build", "MSP430 Compiler", then click "Include Options".
- Add "${CG_TOOL_ROOT}/include" as shown below
If still you do not see the output you expect, then do the following:
This article, http://processors.wiki.ti.com/index.php/Tips_for_using_printf, mention needing to increase the heap and stack sizes. However, it is not clear on how to do it. I had the same problem, and here is what I did to resolve it:
- Right click the project name in the Project Explorer pane anc click "Properties"
- Open Build, then MSP430 Linker and click "Basic Options"
- Stack and heap sizes were set to 80, I set them to 512
- Rebuild the project
Hope this will work for you.
Err, isn't the problem reported with a EVM5515 which uses a TI TMS320C5515 Digital Signal Processor (DSP) rather than a MSP430?Louis said:Open "Build", "MSP430 Compiler", then click "Include Options".
The linker reported "error #10099-D: program will not fit into available". In CCS 5.2.1.00018 I created an empty executable project based upon EVM5515 and the link failed with the same error:jingrui zhang said:Why there is following error when I debug the project? And there is no binary?
The default C5515.cmd linker command file added to the project contains the following header comment:<Linking>
"../C5515.cmd", line 74: error #10099-D: program will not fit into available
memory. placement with alignment/blocking fails for section ".text" size
0x4071 page 0. Available memory ranges:
DARAM1 size: 0x2000 unused: 0x2000 max hole: 0x2000
error #10010: errors encountered during linking; "EVM5515_hello_world.out" not
built
gmake: *** [EVM5515_hello_world.out] Error 1
gmake: Target `all' not remade because of errors.
To prevent the linker error you will need to modify the C5515.cmd file./*Description: This file is a sample linker command file that can be */
/* used for linking programs built with the C compiler and */
/* running the resulting .out file on a C5515. */
/* Use it as a guideline. You will want to */
/* change the memory layout to match your specific */
/* target system. You may want to change the allocation */
/* scheme according to the size of your program. */
Hi,
Chester is right; the linker CMD file defines each memory segment of the C5515 device as a separate one, but since the printf() function is very large by default, you will need to combine the sections so you have more memory to allocate its size.
For example, you can modify your C5515.cmd file as shown attached. It basically tells the .text (code) section to be split across multiple memory segments through the line:
.text: { *(.text)} >> SARAM1 | SARAM2 | SARAM3 | SARAM4 | SARAM5
Hope this helps,
Rafael