
    ERASE VS1005G INTERNAL / EXTERNAL FLASH METASOLUTION
    ----------------------------------------------------
                 VLSI Solution 2024-01-11


This is a modification of VLSI Solution's ProgramFlash VSIDE solution.

This README.TXT file will instruct how to use a PC to erase VS1005g's
Internal 1 MiB FLASH or External 2 MiB SPI FLASH through UART.


To erase an Internal (1 MiB) SPI FLASH:

1) Connect a the USB/UART converter cable between the PC and the VS1005g
   board.
2) Close any terminal emulation program that may use the UART.
3) Boot the VS1005g board in some mode that is NOT the VSOS Shell, e.g.
   USB drive mode (push S1 when booting).
4) Open this project (EraseFlash) in VSIDE.
5) In VSIDE, Select menu Project -> Prommer/Flasher Utility.
6) Select "VS1005g Internal Flash Prommer".
7) Let "Select image file to write" be "eeprom.img". (The actual file doesn't
   matter because no file is being written to FLASH.)
8) Push Start. If you don't get a connection, try Settings + Autodetect.
9) The FLASH is now cleared. You may close the project and reboot the board.


To erase an External (e.g. 2 MiB) SPI FLASH:

1) Connect a the USB/UART converter cable between the PC and the VS1005g
   board.
2) Close any terminal emulation program that may use the UART.
3) Boot the VS1005g board in some mode that is NOT the VSOS Shell, e.g.
   USB drive mode (push S1 when booting).
4) Open this project (EraseFlash) in VSIDE.
5) In VSIDE, Select menu Project -> Prommer/Flasher Utility.
6) Select "VS1005g External SPI Flash Prommer".
7) Let "Select image file to write" be "eeprom.img". (The actual file doesn't
   matter because no file is being written to FLASH.)
8) Push Start. If you don't get a connection, try Settings + Autodetect.
9) The FLASH is now cleared. You may close the project and reboot the board.
