-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WINBOND W25M02GV serial NAND support #58
Comments
Looks like SPI communication is unreliable. Maybe related to #57. |
But on SPI speed 26Mhz or less communication is normal on mode 0 |
Any chance you could be more specific about the "wrong logic"? This code has worked across many different boards. That doesn't mean it's bug-free, but such a claim really needed to be back by specific details. |
For this specific chip, he's right. The datasheet says the chip needs 8 dummyclocks after cmd 9Fh. |
It needs a "Software Die Select (C2h)" cmd - interesting. Is has one chipselect and switches the dies via software. |
8 dummyclocks = 1 byte of SPI and now we are reading 00 in first SPI byte and real ID start transferring in second byte, but 3d byte you use for somemore and we are have not space for reading full 3 byte chip ID. In result im getting 0 EF AB A5 but must be reading 00 EF AB A5 (or EF AB A5, its more correctly)
in one case we have two crystal on one SPI bus and C2h used for software chip select. |
Well, other chips don't want these dummyclocks. That's solvable (->If ChipID==0 read one more byte). But more important is the C2h command. |
|
But more important is the C2h command. As i know its full analogue of two independent chips on one SPI bus. |
....and one more, i dont find chip-erase command in documentation. only erase block |
Where did you buy that chip? |
W25N04KV is more interesting, but i dont find him in stock (: |
Hi all! |
Raw SerialFlash Hardware Test Read Chip Identification: Reading Chip... |
The ID for the IPS6404 SPIRAM is even more weird: Repsonse is 3xrandom bytes (I saw 0xff , 0xfe and 0x00 randomly), then in the folllowing bytes the real ID: 0x0d, 0x5d |
how can I change the library for "W25Q02JV (four x 512M-bit stack die) " ? |
You're asking about a NOR flash chip on an issue originally about NAND flash chips. The part numbers look similar, but those letters which differ are very important. The way these NAND vs NOR chips work is very different. Just to state as clearly as possible, NAND chips are not supported by this library and probably never will be. Multiple die NOR chips also aren't supported. Perhaps with substantial programming they could be supported. But I don't have time to write and test that code, nor to write a detailed message or otherwise guide you to writing that code. |
can you guide me on how to modify this library for a 256MB (4 dies) NAND flash. |
You need control variable act_die in my code, and switch it according column address, see to strings num about 145 on my code. |
My english is so poor, sorry. |
I am using NOR flash W25Q02JV-DTR with 4 dies |
Hi, im using WINBOND W25M02GV serial NAND for my project on esp32
if you want, i make some tests for support this chip in you library.
in this time i take JEDEC ID on SPI slow speed 20-26mHz
Raw SerialFlash Hardware Test
Read Chip Identification:
JEDEC ID: 0 EF AB A5
Part Nummber: (unknown chip)
Memory Size: 1048576 bytes
Block Size: 65536 bytes
Reading Chip...
Previous data found at address 0
You must fully erase the chip before this test
found this: 00 00 00 00 00 00 15 F5
correct: 00 00 00 00 15 F5 95 4B
Tests Failed :{
The flash chip may be left in an improper state.
You might need to power cycle to return to normal.
As you can see 1st byte in JEDEC ID is dummy.
2nd and 3d bytes is okay, but 4th byte is wrong.
On datsheet doc i can see correct JEDEC ID as EF AB 21.
I'm fork you repo and may be make some changes from you code.
Regards....
The text was updated successfully, but these errors were encountered: