/* Function : HAL_EFlash_Erase_Page Description : Erase a Page, TERASE has been configured in System_Clock_Init() Input : Outpu : false: FAIL true: SUCCESS Author : Chris_Kyle Data : 2020年  */
bool HAL_EFlash_ErasePage(uint32_t fu32_Addr)
/* Function : HAL_EFlash_Erase_Page Description : Erase a Page, TERASE has been configured in System_Clock_Init() Input : Outpu : false: FAIL true: SUCCESS Author : Chris_Kyle Data : 2020年  */
bool HAL_EFlash_ErasePage(uint32_t fu32_Addr)
{
    EFC->CTRL |= EFC_CTRL_PAGE_ERASE_MODE;
    EFC->SEC = 0x55AAAA55;
    *((volatile uint32_t *)fu32_Addr) = 0;
    while (!(EFC->STATUS & EFC_STATUS_EFLASH_RDY));
    EFC->CTRL &= ~EFC_CTRL_PAGE_ERASE_MODE;
    return true;
}