Page 1 of 1

Erasing the internal flash

Posted: Thu 2014-01-09 17:30
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

Re: Erasing the internal flash

Posted: Thu 2014-04-03 12:34
by Panu
For your information, VSIDE's internal flash prommer now automatically inserts the rescue image whenever used.

-Panu

Re: Erasing the internal flash

Posted: Fri 2015-03-20 17:20
by Panu