Search found 3 matches

by natilzr
Thu Aug 15, 2019 5:30 am
Forum: TrueSTUDIO for STM32 discussions
Topic: float printing
Replies: 3
Views: 336

Re: float printing

hi all by adding this line :-u _printf_float to the linker the float works -mthumb -mcpu=cortex-m0 -T"../STM32F072C8_FLASH.ld" -specs=nosys.specs -static -u _printf_float "-Wl,-Map=${BuildArtifactFileBaseName}.map" -Wl,--gc-sections -Wl,--defsym=malloc_getpagesize_P=0x80 -Wl,--st...
by natilzr
Thu Aug 15, 2019 5:25 am
Forum: TrueSTUDIO for STM32 discussions
Topic: float printing
Replies: 3
Views: 336

Re: float printing

hi thank you for your answer i an new with attolic and and didnt understal completly how to use the information you gave . the miscellaneus in the linker is empty these are the flags i found in the linker -mthumb -mcpu=cortex-m0 -T"../STM32F072C8_FLASH.ld" -specs=nosys.specs -static "...
by natilzr
Wed Aug 14, 2019 8:20 am
Forum: TrueSTUDIO for STM32 discussions
Topic: float printing
Replies: 3
Views: 336

float printing

hello

i cant print float numbers the float number stays empty
float temp;
temp = 24.123;
sprintf((char*)tx_buffer,"n=%f\n",temp);
i have included "string.h" and "stdio.h"

what could be the problem?

Go to advanced search