Skip to content

Commit

Permalink
enable mass erase for g0, worksforme
Browse files Browse the repository at this point in the history
  • Loading branch information
grevaillot committed Apr 6, 2020
1 parent 98cd484 commit 4437314
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1997,7 +1997,6 @@ int stlink_erase_flash_page(stlink_t *sl, stm32_addr_t flashaddr)
int stlink_erase_flash_mass(stlink_t *sl) {
/* TODO: User MER bit to mass-erase G0, G4, WB series. */
if (sl->flash_type == STLINK_FLASH_TYPE_L0 ||
sl->flash_type == STLINK_FLASH_TYPE_G0 ||
sl->flash_type == STLINK_FLASH_TYPE_WB) {
/* erase each page */
int i = 0, num_pages = (int) sl->flash_size/sl->flash_pgsz;
Expand Down

0 comments on commit 4437314

Please sign in to comment.