InitTypeDef *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); <<< return HAL_ERROR; }...
_FLASH_Unlock();HAL_FLASHEx_Erase(&p_erase_init, &page_error);HAL_FLASH_Lock();return;}当我使用 STM32_Programmer 手动删除页面时,我没有看到任何错误。STM32_Programmer.sh -c port=swd -e [7 25] 牛牛爱吃草2023-01-12 06:44:39
昨晚已经23点了,在群里噼里啪啦对我批判了一番,然后自己就退群了,完全不给解释的机会。 其实我...
TRACEF("error starting erase operation, sector error %u\n", sector_error); total_erased = ERR_IO;break; } err = FLASH_WaitForLastOperation(HAL_MAX_DELAY);if(err != HAL_OK) { TRACEF("error waiting for erase operation to end, hal error %u\n", HAL_FLASH_GetError()); total_erased ...