User Tools

Site Tools


avr:usage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
avr:usage [2013/09/18 14:52] sdoltavr:usage [2014/07/07 16:09] – [Liens utiles] sbolay
Line 138: Line 138:
 |Calculateur de fusible|[[http://www.engbedded.com/fusecalc/]]| |Calculateur de fusible|[[http://www.engbedded.com/fusecalc/]]|
 |Comprendre les registres d'entrée/sortie|[[http://iamsuhasm.wordpress.com/tutsproj/avr-gcc-tutorial/]]| |Comprendre les registres d'entrée/sortie|[[http://iamsuhasm.wordpress.com/tutsproj/avr-gcc-tutorial/]]|
 +
 +
 +===== FAQ =====
 +see error  "multiple definition of `_floatsisf'"
 +look especially to the position of the **-lm** flag
 +
 +<code bash>
 +$ avr-gcc -mmcu=attiny85 -o main.elf main.c
 +/usr/local/CrossPack-AVR-20130212/lib/gcc/avr/4.6.2/../../../../avr/lib/avr25/libc.a(floatsisf.o):../../../libm/fplib/floatsisf.S:46: multiple definition of `__floatsisf'
 +/usr/local/CrossPack-AVR-20130212/lib/gcc/avr/4.6.2/avr25/libgcc.a(_si_to_sf.o):/Users/cs/Developer/Repos/Microcontroller/CrossPack-AVR/compile/avr-gcc-4.6.2/build-objects/avr/avr25/libgcc/../../.././gcc/fp-bit.c:1336: first defined here
 +collect2: ld returned 1 exit status
 +
 +$ avr-gcc -mmcu=attiny85 -lm -o main.elf main.c
 +/usr/local/CrossPack-AVR-20130212/lib/gcc/avr/4.6.2/../../../../avr/lib/avr25/libc.a(floatsisf.o):../../../libm/fplib/floatsisf.S:46: multiple definition of `__floatsisf'
 +/usr/local/CrossPack-AVR-20130212/lib/gcc/avr/4.6.2/avr25/libgcc.a(_si_to_sf.o):/Users/cs/Developer/Repos/Microcontroller/CrossPack-AVR/compile/avr-gcc-4.6.2/build-objects/avr/avr25/libgcc/../../.././gcc/fp-bit.c:1336: first defined here
 +collect2: ld returned 1 exit status
 +
 +$ avr-gcc -mmcu=attiny85 -o main.elf main.c -lm
 +
 +</code>
avr/usage.txt · Last modified: 2016/11/09 16:49 by sbolay