Erasing the internal flash

Discussion about writing software for VS1005 and the VSOS Operating System. Also posts about VS1005-related hardware design and device drivers should be posted here.
Post Reply
User avatar
Panu
VLSI Staff
Posts: 2405
Joined: Tue 2010-06-22 13:43

Erasing the internal flash

Post by Panu » Thu 2014-01-09 17:30

If a special rescue code is written to the beginning of internal flash, it is possible to erase it by using special jumper locations in JP15 of the developer board and resetting the board.


VSOS kernel templates have the following map file for programming the internal flash:

eeprom_i.map

Code: Select all

# Boot record
0 eeprom_iflashboot.img

# VSOS
4096 eeprom.img
This writes a "rescue code" to the beginning of the flash from file eeprom_iflashboot.img and then the kernel, starting from byte offset 4096. The same mechanism can be used for all solutions, just copy the files eeprom_i.map and eeprom_iflashboot.img to your solution from the vsos kernel template.

If the rescue code is programmed, it's possible to erase the internal flash by setting jumpers 1,2,3,5 and 6 of JP15 and then resetting the board. If the internal flash erase is successfull, LEDs 8 and 9 in the LED bar of the developer board will blink in opposite phases at 1 Hz.
JP15 (located to the left of LCD screen) rescue jumper locations:

[..] (jumper)
[..] (jumper)
[..] (jumper)
 ..  (no jumper)
[..] (jumper)
[..] (jumper)
 ..  (no jumper)
-Panu
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: 2405
Joined: Tue 2010-06-22 13:43

Re: Erasing the internal flash

Post by Panu » Thu 2014-04-03 12:34

For your information, VSIDE's internal flash prommer now automatically inserts the rescue image whenever used.

-Panu
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: 2405
Joined: Tue 2010-06-22 13:43

Re: Erasing the internal flash

Post by Panu » Fri 2015-03-20 17:20

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

Post Reply

Who is online

Users browsing this forum: No registered users