stm32:l4: flash: Program in double words
According to RM0351 and RM0394 flash needs to be programmed by double words. Also fix flash_program() which was wrong anyways. Reviewed-by: Karl Palsson <karlp@tweak.net.au>
This commit is contained in:
committed by
Karl Palsson
parent
49a3cddba0
commit
a1ffdc59f0
@@ -228,7 +228,7 @@ void flash_clear_size_flag(void);
|
||||
void flash_clear_pgaerr_flag(void);
|
||||
void flash_clear_wrperr_flag(void);
|
||||
void flash_lock_option_bytes(void);
|
||||
void flash_program_word(uint32_t address, uint32_t data);
|
||||
void flash_program_double_word(uint32_t address, uint64_t data);
|
||||
void flash_program(uint32_t address, uint8_t *data, uint32_t len);
|
||||
void flash_erase_page(uint32_t page);
|
||||
void flash_erase_all_pages(void);
|
||||
|
||||
Reference in New Issue
Block a user