Hi! I’ve read all of topics which I’ve found with “newlib printf” keywords
but, I steel can’t get newlib’s functions to work
I’ve found newlib as a part of WinARM
I’ve wrote syscalls.c with all needed syscalls(I adopted same file from example)
But printf is not working
I even tryed to blink with diode in _write_r function
but, when I call printf, the diode is not blinking
here is my link command line:
arm-elf-ld --entry 0x00 -Ttext 0x00 -Tdata 0x200000 -LC:\\WinARM\\lib\\gcc\\arm-elf\\4.1.1\\ -Lc:\\winarm\\arm-elf\\lib\\ -o test.out init.o syscalls.o test.o -lm -lc -lgcc
(I can also put here all Makefile, if needed)
maybe, I need some other command line options?
maybe, I need to use some linker script?(I saw that all examples uses linker script, but I didn’t understand what is it and why do I need it)
Help me, please, with this
I’ve stuck with newlib for a 3(!) days :(((((((
PS: my controller is AT91SAM7S