Link against printf that allows floating point. Link against math library.
This commit is contained in:
parent
17eae752de
commit
76e89af042
2
Makefile
2
Makefile
@ -12,7 +12,7 @@ all: $(TARGET)
|
|||||||
|
|
||||||
$(TARGET): $(SRC)
|
$(TARGET): $(SRC)
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
avr-gcc -o $@.elf $^ $(CPPFLAGS) $(CFLAGS) $(INC)
|
avr-gcc -o $@.elf $^ $(CPPFLAGS) $(CFLAGS) $(INC) -Wl,-u,vfprintf -lprintf_flt -lm
|
||||||
avr-objcopy -j .text -j .data -O ihex $@.elf $@.hex
|
avr-objcopy -j .text -j .data -O ihex $@.elf $@.hex
|
||||||
rm $@.elf
|
rm $@.elf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user