Open MSeesko opened 3 days ago
Hi @MSeesko! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
@MSeesko Can you try erasing the Flash chip first before running the LittleFS sample? FYI https://docs.zephyrproject.org/latest/samples/drivers/jesd216/README.html
Used to work back in the day. You have to use writeoc = "PP_1_1_4";
(Instruction 0x32) and you do.
Could you validate that QE (SR2 1st bit) is set?
@MSeesko Can you try erasing the Flash chip first before running the LittleFS sample? FYI https://docs.zephyrproject.org/latest/samples/drivers/jesd216/README.html
Yes i tried it manually via the flash shell command
uart:~$ flash erase W25Q128 0 1000000
Erase success.
and also via the KConfig Option from the LittleFS sample CONFIG_APP_WIPE_STORAGE.
Still the same error.
Used to work back in the day. You have to use
writeoc = "PP_1_1_4";
(Instruction 0x32) and you do.Could you validate that QE (SR2 1st bit) is set?
How exactly would i do that? Is there a zephyr API to call a register read for the QSPI?
Also specifically i have the W25Q128JVSSIQ which should have the QE Bit set by default by the factory.
Describe the bug I am trying to get the LittleFS sample to run with an external qspi flash W25Q128FV on my nucleo_h753zi board. But i keep running into the same error (Superblock 0x0 has become unwritable).
I already tried setting writeoc to PP_1_1_4 (Since it seems that Winbond devices don't always support PP_1_4_4)
Also i tried to use the zephyr flash shell commands, with mixed results/success.
Do you have any ideas what could cause this?
To Reproduce target: nucleo_h753zi board qspi-flash: W25Q128FV using the Zephyr LittleFS sample project i adjusted the following:
My devicetree looks like this:
To my proj.conf i added this:
The Error:
Flash Shell I also tried the shell flash commands to manually write the qspi flash (following the Zephyr Flash Shell sample).
Writing here also seems not to work as expected, although on a second try with less data it worked.
Attempt 1
Attempt 2
Expected behavior I expected zephyrs qspi-nor-flash implementation to work with any qspi-nor-flash, given the configuration was done correctly.
Impact I would have to change to another hardware if i cannot get the Winbond flash up and running with the littleFS.
Environment: