Hello,
i am new here and this is my first question. I will use in a project the sprintf function.
Example:
-------------------------------------------------------------------------------------------------------
int n;
char buffer[50];
n = sprintf(buffer, "Temp %i", (int) 4);
-------------------------------------------------------------------------------------------------------
Project is a STM32_Primer2_CircleOS project
Ride Version is 7.30.10.0159
Installed Ride7 patch is 7.30.10.0169
RKit-Arm for ride is version 7.30.10.0169
The result is when i will run the project the following:
-------------------------------------------------------------------------------------------------------
----------------Make Started: 'Application0' in configuration 'Circle_Release'--------------------------
Building C:\Users\fonso\Desktop\pri2_2\Application.c
Running: ARM Compiler
"C:\Program Files (x86)\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -MD -D_STM32F103VET6_ -D_STM3x_ -D_STM32x_ -mthumb -mcpu=cortex-m3 "C:\Users\fonso\Desktop\pri2_2\Application.c" -o "C:\Users\fonso\Desktop\pri2_2\objrelease\Application.o" -I "." -I "C:\Program Files (x86)\Raisonance\Ride\Lib\ARM\include" -c -fsigned-char -g -Os -ffunction-sections -mlittle-endian
"C:\Program Files (x86)\Raisonance\Ride\Bin\rexrdr.exe" "C:\Users\fonso\Desktop\pri2_2\objrelease\Application.lst" 0 "C:\Program Files (x86)\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-objdump.exe" --disassemble -all --source "C:\Users\fonso\Desktop\pri2_2\objrelease\Application.o"
"C:\Program Files (x86)\Raisonance\Ride\Bin\rexrdr.exe" "C:\Users\fonso\Desktop\pri2_2\objrelease\Application.o.sizetmp" 0 "C:\Program Files (x86)\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-size.exe" "C:\Users\fonso\Desktop\pri2_2\objrelease\Application.o"
Building C:\Users\fonso\Desktop\pri2_2\Application0.rapp
Running: LD Linker
"C:\Program Files (x86)\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -mcpu=cortex-m3 -mthumb -Wl,-T -Xlinker "C:\Users\fonso\Desktop\pri2_2\objrelease\Application0.elf.ld" -u _start -nostartfiles -Wl,-Map -Xlinker "C:\Users\fonso\Desktop\pri2_2\objrelease\Application0.map"
C:\Program Files (x86)\Raisonance\Ride\Lib\ARM\smallprintf_thumb.a(_SP_puts.o): In function `_SMALL_PRINTF_puts':
_SP_puts.c.text+0x4a): undefined reference to `__io_putchar'
C:\Program Files (x86)\Raisonance\Ride\Lib\ARM\smallprintf_thumb.a(_SP_puts.o): In function `puts':
_SP_puts.c.text+0x74): undefined reference to `__io_putchar'
collect2: ld returned 1 exit status
Build failed
-------------------------------------------------------------------------------------------------------
Is this a libary bug? What is wrong? How is the solution?
Thanks for the answers, and a big sorry for my very bad english.
Best regards
Fonso