2021-07-14 09:37 PM
Software obtained at this address, cannot be used directly with the STM32CubeIDE.
Strangely, current functions no longer have error control.
For example (Code available in the year: 2012:(
FLASH_Status FLASH_EraseSector(uint32_t FLASH_Sector, uint8_t VoltageRange)
Code available in the year: 2017 (From STM32CubeIDE, file: stm32f4xx_hal_flash_ex.c):
void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange)
When trying to adapt the code, I realized that there was a very significant reduction in the code, is this really necessary? Is it currently necessary to disregard the error tracking code that already existed?
2021-07-15 06:11 AM
They are different functions from different libraries.
FLASH_EraseSector is from the SPL.
In HAL, FLASH_Erase_Sector is not meant to be called by the user. You should be calling HAL_FLASHEx_Erase.