Page 1 of 1

2019 Distributor Workshop materials

Posted: Tue 2019-09-10 9:41
by Panu
This thread contains materials for the 2019 Distributor Workshop.

Re: 2019 Distributor Workshop materials

Posted: Tue 2019-09-10 10:23
by Panu
Copy these files to your VSIDE\LIBVS1010 folder:

Setting another boot mode from RAMDISK boot mode

Posted: Thu 2019-09-12 8:14
by Panu
When you boot your VS1010C or VS1010D into RAMDISK mode (runlevel 1), here are files that you can copy to the RAMDISK (over USB) to change the current runlevel.

For example, if your board is set up, using pull-up and pull-down resistors, to boot in runlevel 1, you can drag and drop "RUNLEVEL4.RUN" file to the ramdisk to change to runlevel 4. Runlevel 4 is the SPI flash writer mode, and this allows you to format the external SPI flash and copy your firmware to the external SPI flash.

Later on, you can make a SYS folder on the SPI flash so that the SPI flash becomes the System disk. Then, if you add a BOOT.DLX file to the root of the SPI flash, the VS1010 will run the BOOT.DLX file before it considers any other runlevels. Make your BOOT.DLX select SPI flash writer runlevel (4) based on some GPIO key combination and only if that key combination is not present at boot time, only then run your user application. This way you won't end up with a bricked VS1010 board when you make a bricking error in your user application: you will be always able to reach the SPI flash reprogramming mode using your special keypress at boot time.