Statistics: Posted by scargill — Wed Jul 19, 2017 7:15 am
Statistics: Posted by ESP_Faye — Thu Apr 07, 2016 3:16 pm
Statistics: Posted by rab — Wed Apr 06, 2016 9:28 pm
Code:
if (len > SECTOR_SIZE) {
// to support larger writes we would need to erase current
// (if not already done), next and possibly later sectors too
} else {
// check if the sector the write finishes in has been erased yet,
// this is fine as long as data len < sector size
if (status->last_sector_erased != (status->start_addr + len) / SECTOR_SIZE) {
status->last_sector_erased = (status->start_addr + len) / SECTOR_SIZE;
spi_flash_erase_sector(status->last_sector_erased);
}
}
Statistics: Posted by ESP_Faye — Wed Apr 06, 2016 6:30 pm
Statistics: Posted by spants — Wed Apr 06, 2016 6:12 pm
Statistics: Posted by rab — Sat Apr 02, 2016 5:11 pm
Statistics: Posted by ESP_Faye — Wed Mar 23, 2016 5:31 pm
Statistics: Posted by piersfinlayson — Tue Mar 08, 2016 5:29 am
Statistics: Posted by henkep — Sun Feb 14, 2016 4:53 am
Statistics: Posted by rab — Sun Feb 14, 2016 4:07 am
Statistics: Posted by ESP_Faye — Mon Jan 25, 2016 5:59 pm
Statistics: Posted by rab — Fri Jan 22, 2016 12:39 am