-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
urboot copy_flash_pages #284
Comments
AFAIK, Urboot doesn't provide a direct drop-in replacement for the Currently, Urboot is only available through Arduino IDE. I'll start working on the PlatformIO integration soon. |
I had to look up what |
Not exactly. I'm implementing FOTA from internal flash for MySensors. If Optiboot soon will be dropped from MightyCore, it's not worth the pain. @stefanrueger I got some sensors that run on LoRaWAN or on MySensors. The MySensors firmware is much smaller so I could save the external flash for FOTA, as FOTA is not possible on TTN, at least not on the free plan. |
Understood. BTW,
For simplicity maxsize should be a multiple of a page size. For example, for an ATmega328P the page size is 128, a large urboot bootloader takes up three pages, and |
It would require modified linker script(s). Now AVR Arduino platforms uses stock linker scripts from the toolchain. |
@JAndrassy Yes, I realise it's swings and roundabouts.
Not necessarily: one could
Think of
I don't understand this probably b/c I don't know how the envisaged OTA works). In my view the OTA upload could send a data stream of no more than maxsize bytes to the application that stores it in the flash space at [maxsize, 2maxsize-1], then calls
Does not need parameters when maxsize is agreed beforehand as compile-time constant. The only disadvantage of this is that the code in copy_flash_pages_below_bootloader.hex is not protected by avrdude nor by the bootloader. But then, optiboot does not protect itself from being overwritten either. In both cases you can use FUSE settings to protect the bootloader + extra module from being overwritten. |
OK, thank you, that are some good hints. I'll report back with my progress. |
Hello there
is it true that copy_flash_pages is not included in urboot? If so, how can I achieve that platformio burns the Optiboot loader instead of the urboot loader?
Thanks, Edi
The text was updated successfully, but these errors were encountered: