Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisione Revisione precedente Prossima revisione | Revisione precedente | ||
notes:avr.programming [14/11/2015 19:50] alez [Notes] |
notes:avr.programming [04/06/2016 12:31] (versione attuale) alez [AVR Programming quick guide] |
||
---|---|---|---|
Linea 5: | Linea 5: | ||
**The matter: upload a compiled code file (.hex) into the avr's flash memory.** | **The matter: upload a compiled code file (.hex) into the avr's flash memory.** | ||
+ | Use a Makefile to do all the work. Download it [[talks:avr-microcontrollers#makefile|here]]. | ||
+ | In the makefile: | ||
+ | * change/add source files; | ||
+ | * change your project name; | ||
+ | * change part name (for example atmega16); | ||
+ | * change programmer type and port. | ||
+ | |||
+ | Use ''make'' to compile, ''make hex'' to generate firmware in the format read by the programmer, ''make writeflash'' to program the AVR. | ||
+ | |||
+ | I have also added ''make fuse'' that should be adjusted in the Makefile, to write the fuse byte(s). | ||
===== Notes ===== | ===== Notes ===== | ||