Open lounisdz opened 1 month ago
hi friend, there is no any command to erase the page area. instead of this I write the area 0xFF which means delete process.
only block area is able to delete by the command. ı would like to see your work with LİTTLEFS because ı would implement my codes with that file system. İ had no time to understand and do it so tried to write my own fssystem basicly with file desc. :)
Alright, I understand. No worries, I can share the code with you. I'm particularly interested in your file system because, in my case, LFS takes a long time to write and read. I'm currently working on creating a logging device.
First, I want to thank you for your work.
I am currently trying to implement your driver with LittleFS, and I encountered some issues with the erase functions.
In W25nxx_ChipBlockErase, which calls W25nxx_BlockErase, the next line where you check the page address (which should be the block number) might not be correct for me:
I believe it should be:
Additionally, the page erase function may not work properly because it writes an 0xFF buffer, and if the erase command hasn't been issued beforehand, it won’t write correctly:
I will keep you updated