Hi all!
VS1010 can use SPI NAND flash as read only data storage if you make a disk image that fits inside the Nand, and then have the VS1010 copy the image into the Nand. The first step is to get your hands on an SD card that has suitable size. And in case you don't happen to have a small SD card lying around, it's possible to reformat a larger SD card to a smaller size so you can copy the contents to the nand flash without errors.
Here's information on how to format an SD card to a smaller size in Windows.
-Panu
VS1010 SPI Nand Flash support
VS1010 SPI Nand Flash support
- Attachments
-
- Format SD card to smaller size in Windows.pdf
- PDF document.
- (2.41 MiB) Downloaded 730 times
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo
Panu-Kristian Poiksalo
VS1010 SPI Nand Flash driver and tools
Dear VS1010 users,
Here is a driver and tools for using SPI Nand Flash with VS1010. It's tested on the VS1010 MiniDemo board, which has a 128 megabytes SPI Nand flash (W25N01GVZEIT) installed instead of the normal SPI NOR FLASH. With this driver and tools, it's possible to use a large SPI NAND flash as storage device for VS1010. In 2017, when the MiniDemo board was made, 1 gigabit (128 megabytes) was already available from multiple sources. This allows a small form factor device, such as a pocket audio book, instruction manual or an audio tour guide to be manufactured using cheap components and without an SD card.
(An SD card can be used to copy or update contents to the NAND flash, or for generating an original master flash for factory production, but the SD card can then be removed from the system).
This driver even makes the SPI nand flash bootable. With careful research of the operation of the SPI nand flash, a new kind of bootload mechanism was constructed for the VS1010 that allows to load the nand storage driver from the nand flash itself, eliminating the need for another (traditional NOR) SPI flash for loading the NAND driver.
Please read the documentation (pdf file) and download the zip package, which contains the driver, source code, and SD card files needed to install the driver to the SPI Nand flash.
For information of the VS1010 MiniDemo board and shematics, please see viewtopic.php?t=2171 and download/file.php?id=1527 (PDF documentation). We have a few of those boards assembled, please inquire sales@vlsi.fi about obtaining one for yourself if you're planning a product with SPI Nand flash support. Our distributors can also have them.
Good luck!
-Panu
Here is a driver and tools for using SPI Nand Flash with VS1010. It's tested on the VS1010 MiniDemo board, which has a 128 megabytes SPI Nand flash (W25N01GVZEIT) installed instead of the normal SPI NOR FLASH. With this driver and tools, it's possible to use a large SPI NAND flash as storage device for VS1010. In 2017, when the MiniDemo board was made, 1 gigabit (128 megabytes) was already available from multiple sources. This allows a small form factor device, such as a pocket audio book, instruction manual or an audio tour guide to be manufactured using cheap components and without an SD card.
(An SD card can be used to copy or update contents to the NAND flash, or for generating an original master flash for factory production, but the SD card can then be removed from the system).
This driver even makes the SPI nand flash bootable. With careful research of the operation of the SPI nand flash, a new kind of bootload mechanism was constructed for the VS1010 that allows to load the nand storage driver from the nand flash itself, eliminating the need for another (traditional NOR) SPI flash for loading the NAND driver.
Please read the documentation (pdf file) and download the zip package, which contains the driver, source code, and SD card files needed to install the driver to the SPI Nand flash.
For information of the VS1010 MiniDemo board and shematics, please see viewtopic.php?t=2171 and download/file.php?id=1527 (PDF documentation). We have a few of those boards assembled, please inquire sales@vlsi.fi about obtaining one for yourself if you're planning a product with SPI Nand flash support. Our distributors can also have them.
Good luck!
-Panu
- Attachments
-
- Using SPI Nand Flash with VS1010.pdf
- PDF documentation on how to use the driver and the tools.
- (718.66 KiB) Downloaded 897 times
-
- vs1010cSpiNandFlashSupport.zip
- Files, tools, source code and documentation for using SPI Nand flash (W25N01GVZEIT) for music players etc with VS1010.
- (3.67 MiB) Downloaded 658 times
Last edited by pasi on Fri 2021-05-28 16:02, edited 1 time in total.
Reason: lisäsimme "instead of the normal SPI NOR FLASH" -Pasi
Reason: lisäsimme "instead of the normal SPI NOR FLASH" -Pasi
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo
Panu-Kristian Poiksalo
Re: VS1010 SPI Nand Flash support
HI,
Is this the same flash that is on the developer board?
Thanks,
Mike
Is this the same flash that is on the developer board?
Thanks,
Mike
Re: VS1010 SPI Nand Flash support
No, the developer board has a normal SPI Nor Flash. That flash is already fully supported by the ROM and needs no extra drivers.Is this the same flash that is on the developer board?
-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo
Panu-Kristian Poiksalo
Re: VS1010 SPI Nand Flash support
OK, so if I want to use a larger NAND Flash I need these drivers. If I use a smaller NOR Flash, the ROM already has the drivers. Correct?
Thanks,
Mike
Thanks,
Mike
Re: VS1010 SPI Nand Flash support
Yes, that's right.OK, so if I want to use a larger NAND Flash I need these drivers. If I use a smaller NOR Flash, the ROM already has the drivers. Correct?
-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo
Panu-Kristian Poiksalo
Re: VS1010 SPI Nand Flash support
this was tried as per the document, and it was diagonised using Tera Term, the loading does not happen every time we tried to load the SD contents to the Nand-flash. Very unpredictable, sometimes the loading happens, and many times not. After successfully loading the SD contents, the nand driver, and a boot command, the execution also behaves in a similar way, the music is played sometimes, and many times it doesn't.
Whenever the circuit is powered ON, on the terminal we can see that it doesn't detect the Nand flash, and when ever the music is played at that time the Nand flash is detected.
Can you'll check the miniboard for consistency? and let us know if it plays all the time. If yes, please send us the schematics of the miniboard.
If not investigate and give us the solution.
Whenever the circuit is powered ON, on the terminal we can see that it doesn't detect the Nand flash, and when ever the music is played at that time the Nand flash is detected.
Can you'll check the miniboard for consistency? and let us know if it plays all the time. If yes, please send us the schematics of the miniboard.
If not investigate and give us the solution.
Re: VS1010 SPI Nand Flash support
Hi!
Can you measure your supply voltages during operation? What you describe is what I would expect to happen if there are glitches in the power supply, leading to misprogrammed blocks or read errors sometimes. Can you try adding large capacitors and see if that would have any effect; that could hint towards understanding if it is a power problem or a software problem.
There are no errors of any kind with the mini board or a developer board to which a SPI NAND flash has been switched, everything goes very, very smoothly. But I have only tried a couple of boards and it was a long time ago..
Contains schematics, layout, and the entire Eagle project, look top-right corner of page.
-Panu
Can you measure your supply voltages during operation? What you describe is what I would expect to happen if there are glitches in the power supply, leading to misprogrammed blocks or read errors sometimes. Can you try adding large capacitors and see if that would have any effect; that could hint towards understanding if it is a power problem or a software problem.
There are no errors of any kind with the mini board or a developer board to which a SPI NAND flash has been switched, everything goes very, very smoothly. But I have only tried a couple of boards and it was a long time ago..
http://www.vlsi.fi/en/support/evaluatio ... board.htmlplease send us the schematics of the miniboard
Contains schematics, layout, and the entire Eagle project, look top-right corner of page.
-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo
Panu-Kristian Poiksalo
Re: VS1010 SPI Nand Flash support
Hi,
Need help!
I'm getting this error after writing "spinandprog"
"Winbond flash (W25N01GVZEIT) NOT detected in SPI0!"
I may add that I'm using miniboard vs1010D.
Thanx
Need help!
I'm getting this error after writing "spinandprog"
"Winbond flash (W25N01GVZEIT) NOT detected in SPI0!"
I may add that I'm using miniboard vs1010D.
Thanx
Re: VS1010 SPI Nand Flash support
What SPI NAND flash do you have installed to the board?
Normally the boards have SPI NOR flash, if not specifically ordered with some customization.
Normally the boards have SPI NOR flash, if not specifically ordered with some customization.