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 revision Previous revision
Next revision
Previous revision
avr:usage [2013/09/18 14:56]
sdolt
avr:usage [2016/11/09 17:49] (current)
sbolay [Liens utiles]
Line 32: Line 32:
 |Atmel JTAGICE mkII mode ISP|jtag2isp| |Atmel JTAGICE mkII mode ISP|jtag2isp|
 |Atmel JTAGE ICE mkII mode DebugWire|jtage2dw| |Atmel JTAGE ICE mkII mode DebugWire|jtage2dw|
 +|Atmel AVR ISP mkII|avrisp2|
 |Autre|Voir [[http://​www.nongnu.org/​avrdude/​user-manual/​avrdude_4.html|le manuel]]| |Autre|Voir [[http://​www.nongnu.org/​avrdude/​user-manual/​avrdude_4.html|le manuel]]|
  
Line 37: Line 38:
 <​code.bash>​ <​code.bash>​
 avr-gcc -mmcu=attiny85 -o main.elf main.c avr-gcc -mmcu=attiny85 -o main.elf main.c
-objcopy -O ihex -R .eeprom main.elf main.hex+avr-objcopy -O ihex -R .eeprom main.elf main.hex
 avrdude -p t85 -c stk500 -P /​dev/​ttyUSB0 -U flash:​w:​main.hex avrdude -p t85 -c stk500 -P /​dev/​ttyUSB0 -U flash:​w:​main.hex
  
Line 137: Line 138:
 ^Description^Liens^ ^Description^Liens^
 |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/​]]|
 +|AVR-GCC for OSX|[[https://​obdev.at/​products/​crosspack/​download.html]]|
 +===== 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.1379508969.txt.gz · Last modified: 2013/09/18 14:56 by sdolt