|
- CMU_PERCLK_SetableEx(FLASHCLK, ENABLE);
- CMU_OPCCR2_NVMCKE_Setable(ENABLE);
- FLS_EPCR_ERTYPE_Set(FLS_EPCR_ERTYPE_PAGE);
- FLS_EPCR_EREQ_Set(FLS_EPCR_EREQ_Msk);
- FLS_KEY_Write(FLS_PAGE_ERASE_KEY0);
- FLS_KEY_Write(FLS_PAGE_ERASE_KEY1);
- *(uint32_t *)address = FLS_PAGE_ERASE_DATA;
-
复制代码- // 此处无法退出
- while (SET != FLS_ISR_ERD_Chk()) {
- __NOP();
- }
- FLS_ISR_ERD_Clr();
- FLS_KEY_Write(0x00000000);
- CMU_OPCCR2_NVMCKE_Setable(DISABLE);
- CMU_PERCLK_SetableEx(FLASHCLK, DISABLE);
复制代码
程序运行一段时间页擦除无法退出 while循环, 各位有没有针对性的分析或解决办法?
|
|