Hi, I am trying to use yagarto (arm-elf-gcc 4.3.3) for STM32. Everything works ok if I don't use printf. But I need to use printf, so #included <stdio.h>. It produced error:
In file included from main.c:31: C:\SCARM\GNUARM\arm-elf\include/stdio.h:190: error: expected declaration specifiers or '...' before '__gnuc_va_list' |
Did not know the right way to overcome this error. So I added these lines in main.c before #include <stdio.h>
#ifndef __GNUC_VA_LIST #define __GNUC_VA_LIST typedef void *__gnuc_va_list; #endif |
Then I could compile without errors, but linker produced many errors of this type:
../arm-elf/bin/ld.exe: ERROR: stm32f10x_gpio.o uses FPA instructions, whereas Hello.elf does not |
Does it mean that the newlib that came with yagarto is compiled using FPA? Does it mean it can not be used for Cortex-M3? Is there a solution? Thanks and Best Regards, Ajeet