avr:usage
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
avr:usage [2013/09/14 14:17] – sdolt | avr:usage [2016/11/09 16:49] (current) – [Liens utiles] sbolay | ||
---|---|---|---|
Line 3: | Line 3: | ||
Squelette de base pour les programmes AVR à créer dans un fichier main.c | Squelette de base pour les programmes AVR à créer dans un fichier main.c | ||
- | < | + | < |
# | # | ||
# | # | ||
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:// | |Autre|Voir [[http:// | ||
Line 37: | Line 38: | ||
< | < | ||
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 / | avrdude -p t85 -c stk500 -P / | ||
Line 50: | Line 51: | ||
Pour l' | Pour l' | ||
- | des fusibles de configurations à l' | + | des fusibles de configurations à l' |
<note important> | <note important> | ||
Line 137: | Line 138: | ||
^Description^Liens^ | ^Description^Liens^ | ||
|Calculateur de fusible|[[http:// | |Calculateur de fusible|[[http:// | ||
+ | |Comprendre les registres d' | ||
+ | |AVR-GCC for OSX|[[https:// | ||
+ | ===== FAQ ===== | ||
+ | see error " | ||
+ | look especially to the position of the **-lm** flag | ||
+ | |||
+ | <code bash> | ||
+ | $ avr-gcc -mmcu=attiny85 -o main.elf main.c | ||
+ | / | ||
+ | / | ||
+ | collect2: ld returned 1 exit status | ||
+ | |||
+ | $ avr-gcc -mmcu=attiny85 -lm -o main.elf main.c | ||
+ | / | ||
+ | / | ||
+ | collect2: ld returned 1 exit status | ||
+ | |||
+ | $ avr-gcc -mmcu=attiny85 -o main.elf main.c -lm | ||
+ | $ | ||
+ | </ |
avr/usage.txt · Last modified: 2016/11/09 16:49 by sbolay