We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4738fa commit 58994d8Copy full SHA for 58994d8
targets/TARGET_STM/TARGET_STM32H7/flash_api.c
@@ -79,12 +79,6 @@ int32_t flash_erase_sector(flash_t *obj, uint32_t address)
79
if (HAL_FLASHEx_Erase(&EraseInitStruct, &SectorError) != HAL_OK) {
80
status = -1;
81
}
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
- }
88
} else {
89
EraseInitStruct.TypeErase = FLASH_TYPEERASE_SECTORS;
90
EraseInitStruct.Banks = FLASH_BANK_2;
0 commit comments