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. Currently on holiday.
Posts: 2697
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 76 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. Currently on holiday.
Posts: 2697
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 1352 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 1349 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 102 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 62 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: 18
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. Currently on holiday.
Posts: 2697
Joined: Tue 2010-06-22 13:43

Re: VS1010 SPI Nand Flash support

Post by Panu » Wed 2018-09-19 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: 18
Joined: Fri 2018-08-03 17:27

Re: VS1010 SPI Nand Flash support

Post by MikeG » Wed 2018-09-19 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. Currently on holiday.
Posts: 2697
Joined: Tue 2010-06-22 13:43

Re: VS1010 SPI Nand Flash support

Post by Panu » Wed 2018-09-19 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

JohnsonSJ
User
Posts: 4
Joined: Thu 2018-04-26 11:30

Re: VS1010 SPI Nand Flash support

Post by JohnsonSJ » Thu 2019-06-13 5:56

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.

User avatar
Panu
VLSI Staff. Currently on holiday.
Posts: 2697
Joined: Tue 2010-06-22 13:43

Re: VS1010 SPI Nand Flash support

Post by Panu » Thu 2019-06-13 10:59

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..
please send us the schematics of the miniboard
http://www.vlsi.fi/en/support/evaluatio ... board.html
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, VLSI Solution Oy

Post Reply