Rev 361 | Rev 416 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 361 | Rev 368 | ||
|---|---|---|---|
| Line 3... | Line 3... | ||
| 3 | # Define the command used to upload BIOS to the node |
3 | # Define the command used to upload BIOS to the node |
| 4 | # It will be executed as $(UPLOAD) $(ULFLAGS). |
4 | # It will be executed as $(UPLOAD) $(ULFLAGS). |
| 5 | # $(MCU) is the AVR to use and the file to upload is $(PRG).hex |
5 | # $(MCU) is the AVR to use and the file to upload is $(PRG).hex |
| 6 | 6 | ||
| 7 | UPLOAD = avrdude |
7 | UPLOAD = avrdude |
| 8 | #avrispv2 avr910 |
- | |
| 9 | ULFLAGS = -p $(MCU) -P |
8 | ULFLAGS = -p $(MCU) -P usb -c avrisp2 -U flash:w:$(PRG).hex |
| 10 | 9 | ||
| 11 | AVRDUDE_WRITE_FUSEBITS = -u |
10 | AVRDUDE_WRITE_FUSEBITS = -u |
| 12 | ifdef EXTFUSE |
11 | ifdef EXTFUSE |
| 13 | AVRDUDE_WRITE_FUSEBITS += -U efuse:w:$(EXTFUSE):m |
12 | AVRDUDE_WRITE_FUSEBITS += -U efuse:w:$(EXTFUSE):m |
| 14 | endif |
13 | endif |
| Line 18... | Line 17... | ||
| 18 | ifdef LOWFUSE |
17 | ifdef LOWFUSE |
| 19 | AVRDUDE_WRITE_FUSEBITS += -U lfuse:w:$(LOWFUSE):m |
18 | AVRDUDE_WRITE_FUSEBITS += -U lfuse:w:$(LOWFUSE):m |
| 20 | endif |
19 | endif |
| 21 | 20 | ||
| 22 | #comment this line for not programming fusebits |
21 | #comment this line for not programming fusebits |
| 23 |
|
22 | #ULFLAGS += $(AVRDUDE_WRITE_FUSEBITS) |