Hi,<br><br>Yes i think i will have to add code to my BSP to erase all flash sectors if required.<br><br><br><div class="gmail_quote">On 15 March 2013 14:10, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 03/14/2013 05:03 PM, Matthew J Fletcher wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The blank check code in am29lv160, called from rtems_disk_inititialize tests if<br>
a read of flash is not 0xff, the only way to set flash to that state is to<br>
erase the sector, but I don't see how rtems can do that before<br>
rtems_disk_initialize has not finished yet.<br>
<br>
I am confused why flashdisk is marking the segment as failed in<br>
rtems_fdisk_recover_block_<u></u>mappings but its not attempting to call<br>
rtems_fdisk_seg_erase.<br>
<br>
</blockquote>
<br></div>
I think we need an operation that erases the complete device and re-initializes the driver data structures afterward.<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone   : <a href="tel:%2B49%2089%20189%2047%2041-16" value="+4989189474116" target="_blank">+49 89 189 47 41-16</a><br>
Fax     : <a href="tel:%2B49%2089%20189%2047%2041-09" value="+4989189474109" target="_blank">+49 89 189 47 41-09</a><br>
E-Mail  : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-<u></u>brains.de</a><br>
PGP     : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div><br>regards</div><div>---</div><div>Matthew J Fletcher</div><br>