40 lines
1.6 KiB
Markdown
40 lines
1.6 KiB
Markdown
# DualOptiboot
|
|
|
|
Zavaděč pro Arduino IDE a desky xPablo.cz
|
|
|
|
Based on:
|
|
|
|
Custom Optiboot to add wireless programming capability to Moteino
|
|
Copyright Felix Rusu (2013-2014), felix@lowpowerlab.com
|
|
More at: http://lowpowerlab.com/Moteino
|
|
|
|
This Optiboot version is modified to add the capability of reflashing
|
|
from an external SPI flash memory chip. As configured this will work
|
|
with Moteino (www.lowpowerlab.com/Moteino) provided a SPI flash chip
|
|
is present on the dedicated onboard footprint.
|
|
Summary of how this Optiboot version works:
|
|
- it looks for an external flash chip
|
|
- if one is found (SPI returns valid data) it will further look
|
|
for a new sketch flash image signature and size
|
|
starting at address 0: FLXIMG:9999:XXXXXXXXXXX
|
|
where: - 'FLXIMG' is fixed signature indicating FLASH chip
|
|
contains a valid new flash image to be burned
|
|
- '9999' are 4 size bytes indicating how long the
|
|
new flash image is (how many bytes to read)
|
|
- 'XXXXXX' are the de-hexified bytes of the flash
|
|
pages to be burned
|
|
- ':' colons have fixed positions (delimiters)
|
|
- if no valid signature/size are found, it will skip and
|
|
function as it normally would (listen to STK500 protocol on serial port)
|
|
|
|
The added code will result in a compiled size of just under 1kb
|
|
(Originally Optiboot takes just under 0.5kb)
|
|
|
|
-------------------------------------------------------------------------------------------------------------
|
|
|
|
Postup kompilace (Windows only :-( ):
|
|
|
|
1. z adresáře tools nainstalovat WinAVR
|
|
2. spustit dávku makeRFS.cmd - výsledkem by měl být soubor optiboot_atmega328_pro_8MHz.hex , který je možné vypálit do CPU
|
|
|