Commit c00158c
committed
Check if a cosmo flash sector is erased before erasing
The Winbond flash chip on Cosmo has a unique flash erase algorithm
that significantly penalizes erasing already erased sectors.
Check for this case before running a sector erase command.
Before
real 3m31.962s
user 0m4.325s
sys 0m3.188s
After
real 2m0.817s
user 0m4.380s
sys 0m3.305s1 parent e08ac24 commit c00158c
1 file changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
273 | 276 | | |
274 | 277 | | |
275 | 278 | | |
| |||
281 | 284 | | |
282 | 285 | | |
283 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
284 | 315 | | |
285 | 316 | | |
286 | 317 | | |
| |||
0 commit comments