VS1010 SPI Nand Flash support

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
Post Reply
User avatar
Panu
VLSI Staff
Posts: 2561
Joined: Tue 2010-06-22 13:43

VS1010 SPI Nand Flash support

Post by Panu » Fri 2018-08-17 12:28

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
Attachments
Format SD card to smaller size in Windows.pdf
PDF document.
(2.41 MiB) Downloaded 17 times
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

User avatar
Panu
VLSI Staff
Posts: 2561
Joined: Tue 2010-06-22 13:43

VS1010 SPI Nand Flash driver and tools

Post by Panu » Thu 2018-08-23 19:33

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.
minidemo.jpg
minidemo.jpg (247.96 KiB) Viewed 95 times
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.
spi-nand-flash.png
spi-nand-flash.png (60.08 KiB) Viewed 92 times
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 9 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 9 times
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

MikeG
User
Posts: 8
Joined: Fri 2018-08-03 17:27

Re: VS1010 SPI Nand Flash support

Post by MikeG » Tue 2018-09-18 17:36

HI,
Is this the same flash that is on the developer board?
Thanks,
Mike

User avatar
Panu
VLSI Staff
Posts: 2561
Joined: Tue 2010-06-22 13:43

Re: VS1010 SPI Nand Flash support

Post by Panu » Yesterday 10:54

Is this the same flash that is on the developer board?
No, the developer board has a normal SPI Nor Flash. That flash is already fully supported by the ROM and needs no extra drivers.

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

MikeG
User
Posts: 8
Joined: Fri 2018-08-03 17:27

Re: VS1010 SPI Nand Flash support

Post by MikeG » Yesterday 18:37

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

User avatar
Panu
VLSI Staff
Posts: 2561
Joined: Tue 2010-06-22 13:43

Re: VS1010 SPI Nand Flash support

Post by Panu » Yesterday 19:05

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?
Yes, that's right.

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Post Reply