I am attempting to implement the OpenFlashLoader for a 128MBit SPI serial NOR flash.
This is a common architecture that I use in my design, so being able to read a full image and then program a full image via JFlash would be *great*. I presently have to "ferry" data into the flash chip ~512Kbyte at a time via the main micro flash and the serial flash image converted into C arrays.
And since many of the 8-pin serial NOR flash chips have a common set of basic read/write commands, this should cover a large range of parts.
However, in FlashOS.h in the OpenFlashLoader template package, I see that the maximum number of sectors is set to 512.
These flashes use a 4K sector size, so for anything above a 2Mbit flash, we would exceed the maximum number of sectors, or only the first 2Mbit would be addressable.
Is this a hard limit? Is there any workaround?
This is a common architecture that I use in my design, so being able to read a full image and then program a full image via JFlash would be *great*. I presently have to "ferry" data into the flash chip ~512Kbyte at a time via the main micro flash and the serial flash image converted into C arrays.

And since many of the 8-pin serial NOR flash chips have a common set of basic read/write commands, this should cover a large range of parts.
However, in FlashOS.h in the OpenFlashLoader template package, I see that the maximum number of sectors is set to 512.
These flashes use a 4K sector size, so for anything above a 2Mbit flash, we would exceed the maximum number of sectors, or only the first 2Mbit would be addressable.
Is this a hard limit? Is there any workaround?