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:
1 | In file included from main.c:31:
|
2 | 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>
1 | #ifndef __GNUC_VA_LIST
|
2 | #define __GNUC_VA_LIST
|
3 | typedef void *__gnuc_va_list;
|
4 | #endif
|
Then I could compile without errors, but linker produced many errors of
this type:
1 | ../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