Page erase for STM32L needs a real write to lowest address with 0. stink_write_mem...
[fw/stlink] / src / stlink-common.c
index bec79c32772746e29923b708f8a01ba30fc0f2bf..f89159a21c90bcea9eee6277c917702ae5f8ddc0 100644 (file)
@@ -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.