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.
Hi all:
I follow the recommanded flash erasing flow to erase the eeprom(bank 7). However something wrong happened, when I finished erasing whole bank 7, then writing data to it, the MCU will reboot forever.
Here below is my erasing code, btw, I have init the flash bank upper:
nRetVal = (U32) Fapi_setActiveFlashBank((Fapi_FlashBankType) (U32)Fapi_FlashBank7);
nRetVal = (U32) Fapi_enableEepromBankSectors((U32) 0xFFFFFFFFu, (U32) Q_F021_EE_SECTORS_63_32_DISABLED);
F021_flashWaitForReady(0);
nRetVal = (U32) Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector,0xF0200000u);
F021_flashWaitForReady(0); /* wait if FSM is busy */
Fapi_flushPipeline(); /* defensively to flush buffers after every content modification */
I am not sure about the function "Fapi_issueAsyncCommandWithAddress(Fapi_EraseSector,0xF0200000u)", the variable 0xf0200000.
I want to erase the whole bank 7, so I think the start_addr is the start address of bank7.
Also, is there any write-protection for this bank 7 ?
我手边没有这个板子,所以请其他同事测试了一下。您可以看一下其回复
https://e2e.ti.com/support/microcontrollers/other-microcontrollers-group/other/f/other-microcontrollers-forum/1003077/tms570lc4357-eeprom-erase-error/3706455#3706455