Author Topic: Optiboot with EEPROM support?  (Read 1889 times)

overlord

  • NewMember
  • *
  • Posts: 27
  • Country: de
Optiboot with EEPROM support?
« on: November 27, 2016, 09:32:24 AM »
Hello,

I need to burn data on Moteino not known at compile time to the EEPROM.
I would like to burn those data to the EEPROM with avrdude as second step (Serial Number, Encryption, Calibrated Sensor Data...)
Unfortunately Moteino Dual Optiboot does not support reading and writing to EEPROM, its always reading from the flash, when using options like "-Ueeprom:r:eeprom0.hex:i"
Since I don't need wireless programming in the Bootloader, could a use a plain  Optiboot Version with EEPROM support?
Or is there a DualOptiboot Version with EEPROM support available?

Best Regards,
René

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Optiboot with EEPROM support?
« Reply #1 on: November 27, 2016, 09:29:32 PM »
The sole purpose of Dualoptiboot (over the original optiboot) is wireless programming.
You can reflash your Moteino with whatever bootloader you'd like but Dualoptiboot does not support any kind of EEPROM programming.

warp929

  • NewMember
  • *
  • Posts: 4
  • Country: us
Re: Optiboot with EEPROM support?
« Reply #2 on: November 12, 2019, 03:21:19 PM »
Felix, it's been a few years since the last post and wondering if there is an update.  Does the current Moteino R6's bootloader support EEPROM erasing via AVRDUDE?

My issue:
I have 40+ Moteinos to reprogram. The EEPROM already has data so my Setup loop will see there is data there and not write the initiation values.  On a new Moteino my method works great but on ones I reprogram, I have to use a serial command to force the initiation values to write again.  I would like to avoid the extra step, if possible, without having to burn a new bootloader.

Thank you.

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Optiboot with EEPROM support?
« Reply #3 on: November 13, 2019, 11:18:54 AM »
Optiboot has always been the same, with very minor changes (SPI related) that have no impact on features.
So every Moteino that has Dualoptiboot should work the same.