X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstlink-common.c;h=f89159a21c90bcea9eee6277c917702ae5f8ddc0;hb=fba79be3b47738bdc8866a86c027765f1ab99a87;hp=bec79c32772746e29923b708f8a01ba30fc0f2bf;hpb=49238681e4d98a7254747a139d537ba07efcba13;p=fw%2Fstlink diff --git a/src/stlink-common.c b/src/stlink-common.c index bec79c3..f89159a 100644 --- a/src/stlink-common.c +++ b/src/stlink-common.c @@ -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.