Dear all,
I'm developing a project which writes settings into flash using Flash API on TMS320F28377D.
I have followed the instructions provided by TI documents and TI E2E Community.
- Power up
- Copy interrupts and functions in F021_API_F2837xD_FPU32.lib from flash to .TI.ramfunc using memcpy
- Execute InitFlash
- Gain pump access
- Execute Fapi_InitializeAPI
- Execute Fapi_setActiveFlashBank
- Fapi_issueProgrammingCommand
Everyting goes fine when debugging but hangs on Step 6 when release.
I add
EALLOW; Flash0EccRegs.ECC_ENABLE.bit.ENABLE = 0x00; EDIS;
to close ECC of flash after Step 3 which fixed the problem.
Could anybody tell me how to fix the problem while ECC is enabled?
Best regards,
Bill