Skip to content

Commit 58994d8

Browse files
committed
STM32H7: flash issue while erasing sector in Bank 1
1 parent a4738fa commit 58994d8

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

targets/TARGET_STM/TARGET_STM32H7/flash_api.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ int32_t flash_erase_sector(flash_t *obj, uint32_t address)
7979
if (HAL_FLASHEx_Erase(&EraseInitStruct, &SectorError) != HAL_OK) {
8080
status = -1;
8181
}
82-
/* Mass erase of second bank */
83-
EraseInitStruct.TypeErase = FLASH_TYPEERASE_MASSERASE;
84-
EraseInitStruct.Banks = FLASH_BANK_2;
85-
if (HAL_FLASHEx_Erase(&EraseInitStruct, &SectorError) != HAL_OK) {
86-
status = -1;
87-
}
8882
} else {
8983
EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS;
9084
EraseInitStruct.Banks = FLASH_BANK_2;

0 commit comments

Comments
 (0)