MCUdude / MegaCore

Arduino hardware package for ATmega64, ATmega128, ATmega165, ATmega169, ATmega325, ATmega329, ATmega640, ATmega645, ATmega649, ATmega1280, ATmega1281, ATmega2560, ATmega2561, ATmega3250, ATmega3290, ATmega6450, ATmega6490, AT90CAN32, AT90CAN64 and AT90CAN128
Other
374 stars 115 forks source link

Using copy_flash_pages #175

Closed rkertesz closed 2 years ago

rkertesz commented 2 years ago

Are there any basic examples or instructions on how to use copy_flash_pages to receive a hex over uart from another device ( like another Arduino) or from an ftp server and then write the new firmware to the boot section?

Is this already available in bigboot?

JAndrassy commented 2 years ago

https://github.com/jandrassy/ArduinoOTA/blob/master/examples/Advanced/OTASketchDownload/OTASketchDownload.ino only you will read the binary from Serial, not from WiFiClient

yes copy_flash_pages is in bigboot

rkertesz commented 2 years ago

I see this statement in the comments at the top of the example but didn't find any instructions in the readme. is there something I need to do to the hex file?

To create a bin file for AVR boards see the instructions in README.MD.

JAndrassy commented 2 years ago

To use remote upload from IDE with SDStorage or InternalStorage, copy platform.local.txt from extras/avr folder, next to platform.txt in the boards package used (Arduino-avr or MCUdude packages).

the configuration files setup creation of a bin file