I'm using the MSFLASH NOR block driver that comes stock with PB 4.2.
We have built a hybrid image (half of the files are in XIP, half in
RAM). Now, the driver unmodified does not work at all with an image
that utilizes any of the NOR flash for XIP... however, with a little
bit of protection, this driver CAN be used (by making each
read/write/erase function atomic.... i.e. shut off interrupts
system-wide). I've tested this and it seems to work fine, but was
wondering if there might be any other issues I need to keep my eye on
doing it this way...
Also, ran into an annoying occurance with this driver. When
attempting to copy a large file ontop of itself in the NOR flash
folder (or if you delete the file, then copy the same file back into
the folder) something (I've been told its the compaction
algorithm/thread in FAL.LIB) goes through a cycle where it reorganizes
the flash... this grinds execution to a halt for about 30 seconds...
is there any way to prevent/stop this?
Steve Cox