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/18 14:52] – sdolt | avr:usage [2016/11/09 16:49] (current) – [Liens utiles] sbolay | ||
---|---|---|---|
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 138: | Line 139: | ||
|Calculateur de fusible|[[http:// | |Calculateur de fusible|[[http:// | ||
|Comprendre les registres d' | |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.1379515968.txt.gz · Last modified: 2013/09/18 14:52 by sdolt