stm32f1xx_hal_driver
stm32f1xx_hal_driver copied to clipboard
Bug in HAL_FLASHEx_Erase_IT - if process already ongoing then pFlash remains locked
HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit) { HAL_StatusTypeDef status = HAL_OK; /* Process Locked */ __HAL_LOCK(&pFlash); /* If procedure already ongoing, reject the next one */ if (pFlash.ProcedureOnGoing != FLASH_PROC_NONE) { >>> here must be __HAL_UNLOCK(&pFlash);