kopia lustrzana https://github.com/stlink-org/stlink
Page erase for STM32L needs a real write to lowest address with 0. stink_write_mem(.., ..,0) is undedined
rodzic
49238681e4
commit
fba79be3b4
|
@ -970,7 +970,7 @@ int stlink_erase_flash_page(stlink_t *sl, stm32_addr_t flashaddr)
|
|||
#endif /* fix_to_be_confirmed */
|
||||
|
||||
/* write 0 to the first word of the page to be erased */
|
||||
stlink_write_mem32(sl, flashaddr, 0);
|
||||
stlink_write_debug32(sl, flashaddr, 0);
|
||||
|
||||
/* MP: It is better to wait for clearing the busy bit after issuing
|
||||
page erase command, even though PM0062 recommends to wait before it.
|
||||
|
|
Ładowanie…
Reference in New Issue