Skip to content
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

Add chip W25NO1KV #28

Closed
Kiwimannen opened this issue Feb 16, 2025 · 5 comments
Closed

Add chip W25NO1KV #28

Kiwimannen opened this issue Feb 16, 2025 · 5 comments

Comments

@Kiwimannen
Copy link

Hello, Im trying to connect Winbond chip W25NO1KV and tried doing it manually by editing spi_nand_flash.c

SPINAND raw ID: EF AE 21 
spi-nand: spi_nand spi_nand@0: Winbond W25N01KV SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 94, ECC strength 4/512, custom ECC status.
#define _SPI_NAND_DEVICE_ID_1_W25N01KV          0xAE
#define _SPI_NAND_DEVICE_ID_2_W25N01KV          0x21
        {
                mfr_id:                                 _SPI_NAND_MANUFACTURER_ID_WINBOND,
                dev_id:                                 _SPI_NAND_DEVICE_ID_1_W25N01KV,
                dev_id_2:                               _SPI_NAND_DEVICE_ID_2_W25N01KV,
                ptr_name:                               "WINBOND W25N01KV",
                device_size:                            _SPI_NAND_CHIP_SIZE_1GBIT,
                page_size:                              _SPI_NAND_PAGE_SIZE_2KBYTE,
                oob_size:                               _SPI_NAND_OOB_SIZE_64BYTE,
                erase_size:                             _SPI_NAND_BLOCK_SIZE_128KBYTE,
                dummy_mode:                             SPI_NAND_FLASH_READ_DUMMY_BYTE_APPEND,
                read_mode:                              SPI_NAND_FLASH_READ_SPEED_MODE_DUAL,
                write_mode:                             SPI_NAND_FLASH_WRITE_SPEED_MODE_SINGLE,
                feature:                                SPI_NAND_FLASH_FEATURE_NONE,
        },

Cant set OOB_SIZE_94BYTE and I dont know why it says 128MiB since its a 1GBIT chip

recompiled, but can never connect:

./snander -i

SNANDer - Serial Nor/nAND/Eeprom programmeR v.1.7.8 by McMCC <[email protected]>

Found programmer device: WinChipHead (WCH) - CH341A
Device revision is 3.0.4
spi device id: ff ff ff ff ff (ffffffff)
SPI NOR Flash Not Detected!
spi_nand_probe: mfr_id = 0xff, dev_id = 0xff, dev_id_2 = 0xff
SPI NAND Flash Not Detected!

https://www.winbond.com/hq/product/code-storage-flash-memory/qspinand-flash/?__locale=en&partNo=W25N01KV

@Droid-MAX
Copy link
Owner

well done

@Kiwimannen
Copy link
Author

Thanks, I removed the old files and downloaded again, compiled (and checked the code to see it was there) - but it is still not able to detect the chip unfortunately.

Im looking at my equipment to see if anything is connected the wrong way, but it does not seem so ?

./snander -i

SNANDer - Serial Nor/nAND/Eeprom programmeR v.1.7.8 by McMCC <[email protected]>

Found programmer device: WinChipHead (WCH) - CH341A
Device revision is 3.0.4
spi device id: ff ff ff ff ff (ffffffff)
SPI NOR Flash Not Detected!
spi_nand_probe: mfr_id = 0xff, dev_id = 0xff, dev_id_2 = 0xff
SPI NAND Flash Not Detected!

I will keep trying :)

@Droid-MAX
Copy link
Owner

Check the voltage is correct?

@Kiwimannen
Copy link
Author

Yes, its checked. Im thinking it might have to do with that I am using a usb-c to usb-a adapter (in a laptop) to connect ?

But the same setup has worked for other chips.

Will have to install on another computer to check that.

@Kiwimannen
Copy link
Author

Just an update - its probably the poor quality of my clip that causes problems and I cant remove the chip from the board.
Ordering a professional clip instead that probably/hopefully will work.
Again - very thankful for the add of this chip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants