Re: MT25P vs MT25Q bulk erase difference - how to fix?

2022-01-18 Thread Tim Hardisty
Thanks - makes sense. I am still not 100% convinced the M25P code is actually correct for the M25Q. It's a work-in-progress. This is what I have added, and all other things being equal, I will use it in the driver where there are subtle differences needed. structm25p_dev_s { structmtd_dev_s

Re: MT25P vs MT25Q bulk erase difference - how to fix?

2022-01-18 Thread Sebastien Lorquet
Hello, If the Die Erase is similar in function to the bulk erase, then it can be used instead, but this has to be done at runtime to support all the chips in the same driver. So no @define or CONFIG_ option, because choosing one would excude the others, and if you have both on a board this wo

MT25P vs MT25Q bulk erase difference - how to fix?

2022-01-18 Thread Tim
As I still get deeper and deeper into why FAT doesn't work on my MT25Q NOR flash device, I have found a minor error in m25px.c The M25P devices have a bulk erase command (0xC7) but this is not supported by the MT25Q, which has a "die erase" command (0xC4) instead and 0xC7 is meaningless. There is