GlasgowEmbedded / glasgow

Scots Army Knife for electronics
BSD Zero Clause License
1.93k stars 189 forks source link

applet.memory.25x: support 4-byte addressing #666

Open duskwuff opened 3 months ago

duskwuff commented 3 months ago

Flash devices larger than 32 MB have a couple of different ways of supporting 32-bit addressing. Add support for two of the most common ones, and raise an error if attempting to access an address unsupported by the current addressing mode.

Since 4-byte mode and EAR both set volatile registers which will have an effect on subsequent commands, perform a reset on the flash chip at startup.

whitequark commented 3 months ago

This now has a merge conflict with memory-25x, could you rebase please?