This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我使用的是F280025開發
流程是 bootloader 一開始會做 flash API 燒錄的動作 ,使用的Fapi_issueProgrammingCommand() 做寫入的動作,最後一個參數是使用 Fapi_DataOnly。
燒錄完之後,我會做CRC的檢查部分,但是我跑到for(i=0;i<CRC_Table_read->num_recs;i++) 的時候,就觸發到 NMIFLG 裡面的 FLUNCERR bit 為1。
之後就jump 到Interrupt_nmiHandler()。
會不會跟燒錄的過程中有問題,還是說CRC read flash data 是有問題的??
找到問題了,Flash_ECC_ENABLE Register 要disable 掉,因為她的預設是enable ,所以沒有要使用的話就要關掉就不會觸發 NMI