_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
FLASH_EraseInitTypeDef eraseInit;uint32_tsectorError;uint32_t*ptr=ADDRESS_SECTOR_18;uint32_tcheckCR;intguard=0;while(1){ status=HAL_FLASH_Unlock();//this guard function is to program the Flashif(guard){while(status==HAL_BUSY); status=HAL_FLASH_Program(FLASH_TYPEPROGRAM_WORD, ADDRESS_SECT...
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 __...
I'm emulating an EEPROM on STM32F746ZG (nucleo board) using sector 6 and 7 and HAL_FLASHEx_Erase(&pEraseInit, &SectorError) does not consistently erase the sector. checking whether the sector is erased and erasing again in a loop usually...
昨晚已经23点了,在群里噼里啪啦对我批判了一番,然后自己就退群了,完全不给解释的机会。 其实我...