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 CCS version 10.1.0, C2000- compiler,
How to enable Sprintf() to print the float value.
if sprintf(), System_print() is using in the code then it throw link error.
Thanks
Naresh.
Hello Venkata,
Are you working from a project based on an example or from a brand new project? I included the "#include <stdio.h>" preprocessor option in my code and was able to use sprintf without any compiler or linker warnings. If you have configured your Include Options and File Search Paths in the Project Properties accordingly (you can refer to an example in C2000Ware for this), then please send me the output error from your build console.
Hi Omer,
i am working on project based on an example code only and after include header ( #include <stdio.h>) also same errors are throw as show in image by CCS IDE.
my requirement is to print some value like ADC, Voltage and float value.
Thanks,
Venkata Naresh
i am working on project based on an example code only and after include header ( #include <stdio.h>) also same errors are throw as show in image by CCS IDE.
It looks like your error is not with sprintf, please take another look at the error message. The error is saying you need more memory to be able to run the program, you will need to modify your linker command file to do this. You can refer to the TI Linker Command File Primer guide for more information on this.