2022-01-13 02:18 AM
Hello,
Please, I am working on a Custom Project with STM32H7 platform and I am using a NAND Flash for Data Storage (W25N01GVZEIG). I can execute correctly all commands except :
I can write using (02h) Program Data Load with SPI mode with no issues, but once I switch to Quad mode (32h) the data written is not correct, seems there is some bits corruption.
{0x11,0x22,0x44,0x88} is written {0x91,0x22,0x04,0x48}. I suspected the pinout first but the Quad read is working fine.
I saw a similar question QSPI of STM32L496A but didn't fix my issue.
Could you support on this?
Thanks,
Ayoub
Solved! Go to Solution.
2023-12-01 10:26 AM
Dear Ayoub,
I'm working on functions to read from W25N01GVZEIG and write to it but I have some issues with the them. Now, I'm trying to write a function which gets page address and column address, and data, to write that data in the certain address. Next, I want to read data. I use the following functions:
By w25qxx_peripheral I mean W25N01GVZEIG peripheral.
Would you please send the functions? Thank you in advance.
2023-12-01 12:01 PM
How's it going to determine what's data, and what's the next command if the chip select doesn't transition?
https://datasheet.lcsc.com/lcsc/1809200036_Winbond-Elec-W25N01GVZEIG_C88868.pdf
2023-12-01 12:17 PM
thank you for your consideration. so you mean I have to uncomment following lines?
2023-12-01 01:19 PM
>>I did it but it does not work :(
Ok, but that's not very enlightening. But what DOES happen? You have a scope or logic analyzer on this? The signals at the pins functioning?
Do you have code to read the JEDEC ID off the part, going to be command 0x9F? Does that function? Does it return 0xFF patterns
There's like some minimal delay between rising and falling again on the CS, but you definitely can't go ploughing onward. The CS falling designates the start of a new command transaction.
BTW the thread is using the QSPI Peripheral
2023-12-30 03:49 AM
hello. could you solve your problem? If so would you please help me or send me a link to a working qspi driver for W25N01? I asked a Question W25N01xxxIG Driver for STM32H7 - STMicroelectronics Community
2024-01-02 12:23 AM
Hello Zakba.1
Actually I am working on standard SPI for W25N NAND memory. I don't know how the QSPU supposed to work. I have some problems with writing on this memory (Load program Data & Program Execute). Did you solve it?
Thank you.
2024-01-02 09:57 PM
hello hedinik
No, because I wanted to use it in memory-mapped mode But Tesla said that It couldn't be used in this mode so I gave it up. I decided to use W25q512 instead.