File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
35
35
- Fix i2c interactions after errors
36
36
- Fix SPI3 alternate function remapping
37
37
- Do not enable UART DMA flags unconditionally
38
+ - Fix flash erase verification always failing
38
39
39
40
### Changed
40
41
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ impl<'a> FlashWriter<'a> {
170
170
// 'start_offset' was.
171
171
let size = self . sector_sz . kbytes ( ) as u32 ;
172
172
let start = start_offset & !( size - 1 ) ;
173
- for idx in start..start + size {
173
+ for idx in ( start..start + size) . step_by ( 2 ) {
174
174
let write_address = ( FLASH_START + idx as u32 ) as * const u16 ;
175
175
let verify: u16 = unsafe { core:: ptr:: read_volatile ( write_address) } ;
176
176
if verify != 0xFFFF {
You can’t perform that action at this time.
0 commit comments