Fix wrong register bit in flash writer. This actually didn't result in an error but it's better to fix it either way.
This commit is contained in:
parent
0dace23021
commit
7bfa0732db
@ -26,7 +26,7 @@ void flash_writer_perform_mass_erase(void)
|
|||||||
flash_writer_enable_access();
|
flash_writer_enable_access();
|
||||||
while (flash_op_busy());
|
while (flash_op_busy());
|
||||||
|
|
||||||
FLASH->CR = DMA_SxCR_PSIZE_1;
|
FLASH->CR = FLASH_CR_PSIZE_1;
|
||||||
FLASH->CR |= FLASH_CR_MER;
|
FLASH->CR |= FLASH_CR_MER;
|
||||||
FLASH->CR |= FLASH_CR_STRT;
|
FLASH->CR |= FLASH_CR_STRT;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user