LED Cube/Building From Source: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Marvin (Diskussion | Beiträge) |
Marvin (Diskussion | Beiträge) |
||
Zeile 11: | Zeile 11: | ||
* an ISP- or JTAG-Programmer like AVR ISP mkII, usbasp, or any (avrdude-compatible, if you want to use the Makefile) other. | * an ISP- or JTAG-Programmer like AVR ISP mkII, usbasp, or any (avrdude-compatible, if you want to use the Makefile) other. | ||
===Building=== | |||
The bootloader is in the directory <code>bootloader/firmware/</code>. It can be built with | The bootloader is in the directory <code>bootloader/firmware/</code>. It can be built with | ||
cd cube-3/bootloader/firmware/ | cd cube-3/bootloader/firmware/ | ||
make | make | ||
===Flashing=== | |||
To flash it, modify the <code>bootloader/firmware/Makefile</code>: | To flash it, modify the <code>bootloader/firmware/Makefile</code>: | ||
AVRDUDE = avrdude -P usb -c avrispmkii -p m8 -p $(DEVICE) | AVRDUDE = avrdude -P usb -c avrispmkii -p m8 -p $(DEVICE) | ||
to match your programmer. This is the line for AVR ISP mkII. If you have a programmer, you probably know how to do this, so I won't get into it. | to match your programmer. This is the line for AVR ISP mkII. If you have a programmer, you probably know how to do this, so I won't get into it. | ||
Then apply fuse settings and flash: | |||
make fuse | |||
make flash |
Version vom 14. April 2012, 13:37 Uhr
Getting the Sources
git clone http://www.0x53a.de/git/cube-3
Building the Bootloader
Requirements
You will need
- gmake
- avr-libc, avr-binutils, avr-gcc
- avrdude
- an ISP- or JTAG-Programmer like AVR ISP mkII, usbasp, or any (avrdude-compatible, if you want to use the Makefile) other.
Building
The bootloader is in the directory bootloader/firmware/
. It can be built with
cd cube-3/bootloader/firmware/ make
Flashing
To flash it, modify the bootloader/firmware/Makefile
:
AVRDUDE = avrdude -P usb -c avrispmkii -p m8 -p $(DEVICE)
to match your programmer. This is the line for AVR ISP mkII. If you have a programmer, you probably know how to do this, so I won't get into it.
Then apply fuse settings and flash:
make fuse make flash