Page erase for STM32L needs a real write to lowest address with 0. stink_write_mem(.., ..,0) is undedined

pull/40/head
Uwe Bonnes 2011-12-18 15:03:51 +01:00
rodzic 49238681e4
commit fba79be3b4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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.