I am adding to an already running program.
This is a TM4c123 micro controller code.
All I want to do is use: sprintf()
I have included:
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/gpio.h"
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.h"
#include "driverlib/uart.h"
#include <stdio.h>
#include <format.h>
#include <stdarg.h>
#include <string.h>
#include "inc/tm4c123gh6pm.h"
#include "driverlib/adc.h"
When I load the code to TM4c and run it, it runs until I reach the sprintf line of code:
sprintf(buf3, "Input Voltage = %d", ui32ADC0Value[0]);
The program hangs on this statement.
If I "step into" the above statement, CCS gives me the error message:
Can't find a source file at "/tmp/scratch/mjoyner/tools/build/arm/product/linux/lib-internal/src/sprintf.c"
(I am guessing that mjoyner is a User ... somewhere ...)
There are various libraries in the installed in the CCs heirarchy.
If I search through them, I do find the above path but I don't understand how to fix this.
I have added a path in CCS IDE in:
Projects | Properties | CCS Buld | ARM Compiler | Include Options
with the data:
C:\ti\ccsv6\ccsv6\tools\compiler\ti-cgt-arm_5.2.2\lib\src
where sprintf)_ and format() are located.
BUT, it does not work.
It's really funny ... i have used sprintf() for 40 years .... after 1 1/2 days I have to LOL and ask for help!
Any help you can give is very much appreciated.
TIA,
Robert