Added a simple blinky test program to test the optiboot loader
This commit is contained in:
parent
3b2061e132
commit
4155ffc0e9
|
@ -47,6 +47,9 @@ Also I'd like to thank Walter for his footprints and 3d models here, they've bee
|
|||
The scale.pl script (libs/scale.pl) which was used to create the Kicadfiles for the KaBoard logo, can be found in this zip-archive:http://oshwlogo.com/logos/OSHW_logo_KiCad_scalable.zip
|
||||
All credits for this nice little script go to Robert Spitzenpfeil http://blog.spitzenpfeil.org/wordpress/
|
||||
|
||||
The original optiboot code can be found under http://optiboot.googlecode.com.
|
||||
It is distributed under GNU General Public License Version 2.
|
||||
|
||||
The anything else in the project folder, like the board layout, the schmeatics and the KaBoard logo, are published under Attribution-ShareAlike 3.0 (see https://creativecommons.org/licenses/by-sa/3.0/)
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
How to compile
|
||||
==============
|
||||
|
||||
Since I'm to lazy to write a proper makefile:
|
||||
```
|
||||
avr-gcc -Wall -Os -mmcu=atmega8 -DF_CPU=16000000 blinky.c -o blinky.elf
|
||||
avr-objcopy -O ihex blinky.elf blinky.hex
|
||||
avrdude -v -c arduino -p atmega8 -P /dev/ttyUSB0 -b 115200 -U flash:w:blinky.hex
|
||||
```
|
|
@ -0,0 +1,19 @@
|
|||
#include <avr/io.h>
|
||||
#include <util/delay.h>
|
||||
|
||||
int main(void) {
|
||||
|
||||
DDRB |= (1 << PB0);
|
||||
|
||||
int i;
|
||||
|
||||
while(1) {
|
||||
|
||||
PORTB ^= (1 << PB0);
|
||||
for(i = 0; i < 250; i++) {
|
||||
_delay_ms(1);
|
||||
}
|
||||
|
||||
}
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
:1000000012C019C018C017C016C015C014C013C044
|
||||
:1000100012C011C010C00FC00EC00DC00CC00BC06C
|
||||
:100020000AC009C008C011241FBECFE5D4E0DEBF5E
|
||||
:10003000CDBF02D011C0E4CFB89A21E088B38227A7
|
||||
:1000400088BB8AEF90E0EFE9FFE03197F1F700C05D
|
||||
:0C00500000000197C1F7F2CFF894FFCF39
|
||||
:00000001FF
|
Loading…
Reference in New Issue