FlashStorage icon indicating copy to clipboard operation
FlashStorage copied to clipboard

Can the base address in FLASH be changed?

Open 716DS opened this issue 4 months ago • 0 comments

Hi, I've been able to use this flash storage library for a SAMD21 µproc, but, it seems to use the area of flash right after the program storage.

Is there some way to make it so it use the upper part of FLASH, like pass a base address to write to?

I'm issuing f/w updates via a USB UF2 loader, and the loader only erases/write FLASH that the new f/w uses. If I've got only 100K of program code, it will only write the bottom 100K (after the bootloader) and leave the upper area alone.

This way, app settings can be retained through a f/w update using the .UF2 bootloader.

The FLASH emulator provided by Microchip does this, but DAMN!! ...it seems as though everything is very difficult to do using Microchip Studio, even the most mundane tasks!!

Thanks for you time!

716DS avatar Aug 12 '25 20:08 716DS