Reserve last page of Flash for virtual EEPROM
Posted: Fri May 19, 2023 7:30 am
Hi All
I'm currently trying to reserve the last page of Flash memory for use with the Virtual EEPROM, however I'm struggling to get the program space to not overlap, as this does not seem to change when the virtual EEPROM is enabled.
Is there a way to set the maximum 'program storage space' from within the Arduino sketch, without having to modify the build flags in 'boards.txt'?
Ideally i would like some way to automatically change
`3dprinter.menu.pnum.EBB42_V1_1.upload.maximum_size=131072`
into
`3dprinter.menu.pnum.EBB42_V1_1.upload.maximum_size=130048`
when the Virtual EEPROM is enabled, but restore it if the Vrtual EEPROM is not being used.
I'm currently trying to reserve the last page of Flash memory for use with the Virtual EEPROM, however I'm struggling to get the program space to not overlap, as this does not seem to change when the virtual EEPROM is enabled.
Is there a way to set the maximum 'program storage space' from within the Arduino sketch, without having to modify the build flags in 'boards.txt'?
Ideally i would like some way to automatically change
`3dprinter.menu.pnum.EBB42_V1_1.upload.maximum_size=131072`
into
`3dprinter.menu.pnum.EBB42_V1_1.upload.maximum_size=130048`
when the Virtual EEPROM is enabled, but restore it if the Vrtual EEPROM is not being used.