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
VSDSP Expert
Posts: 2828
Joined: Tue 2010-06-22 13:43

Erasing the internal flash

Post by Panu »

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
User avatar
Panu
VSDSP Expert
Posts: 2828
Joined: Tue 2010-06-22 13:43

Re: Erasing the internal flash

Post by Panu »

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

-Panu
User avatar
Panu
VSDSP Expert
Posts: 2828
Joined: Tue 2010-06-22 13:43

Re: Erasing the internal flash

Post by Panu »

Post Reply