Rev 568 | Details | Compare with Previous | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 361 | andfri | 1 | # System specific configuration file |
| 416 | arune | 2 | # Rename this file to system.inc and then modify the params below, |
| 583 | nattgris | 3 | # make sure the second ULFLAGS is uncommented first time you program a node with bios |
| 361 | andfri | 4 | |
| 416 | arune | 5 | |
| 361 | andfri | 6 | # Define the command used to upload BIOS to the node |
| 7 | # It will be executed as $(UPLOAD) $(ULFLAGS). |
||
| 558 | arune | 8 | # $(MCU) is the AVR to use and the file to upload is $(BIOSDIR)/$(BIOSTARGET).hex |
| 361 | andfri | 9 | |
| 10 | UPLOAD = avrdude |
||
| 558 | arune | 11 | ULFLAGS = -p $(MCU) -P usb -c avrisp2 -U flash:w:$(BIOSDIR)/$(BIOSTARGET).hex |
| 361 | andfri | 12 | |
| 13 | AVRDUDE_WRITE_FUSEBITS = -u |
||
| 14 | ifdef EXTFUSE |
||
| 15 | AVRDUDE_WRITE_FUSEBITS += -U efuse:w:$(EXTFUSE):m |
||
| 16 | endif |
||
| 17 | ifdef HIGHFUSE |
||
| 18 | AVRDUDE_WRITE_FUSEBITS += -U hfuse:w:$(HIGHFUSE):m |
||
| 19 | endif |
||
| 20 | ifdef LOWFUSE |
||
| 21 | AVRDUDE_WRITE_FUSEBITS += -U lfuse:w:$(LOWFUSE):m |
||
| 22 | endif |
||
| 23 | |||
| 583 | nattgris | 24 | #this line should not be commented when you program a node with bios |
| 25 | #when this line is uncommented the avr will be programmed with fuses automatically (fuses is defined in bios.inc) |
||
| 416 | arune | 26 | ULFLAGS += $(AVRDUDE_WRITE_FUSEBITS) |
| 437 | eqlazer | 27 | |
| 475 | arune | 28 | #Commands used to upload a new version of bios over can, see makefile for more details |
| 559 | andfri | 29 | CANUPLOAD = mono ../../../../PcSoftware/canDude/canDude.exe |
| 475 | arune | 30 | CANULFLAGS = -h localhost -p 1200 |