mihaigalos / miniboot

🏗️ An I2C bootloader for Arduino.
GNU General Public License v3.0
65 stars 18 forks source link

added memory offset option #8

Closed furrysalamander closed 5 years ago

furrysalamander commented 5 years ago

Allows you to store two different programs at two different locations in memory for two different microcontrollers! Simply upload the program to the EEPROM at an offset, and for one of the two microcontrollers burn the bootloader with the eeprom_address_offset variable changed.

mihaigalos commented 5 years ago

If I understand this correctly, you pullrequest reads with an offset. In your comment you said store which is a write. You did mean read, didn't you? - since the firmware needs to be in the external i2c memory to begin with?

furrysalamander commented 5 years ago

Yes, sorry about that. By default the code I've uploaded functions the same, but there is a new variable in the config file that allows you to enter an offset. I've been testing it and it works great, as long as you make sure to make the offset big enough that the programs don't overlap.