Support Path: /Product/Development and troubleshooting/
Dear all,
We are developing an application that needs to read/write into flash and we are make use of Flash API provided by TI.
We have followed the steps provided in flash_programming_cpu01 example, which basically are:
- Copy critical functions (from ramfuncs section) to RAM
- Execute InitFlash which sets the wait state
- Execute SeizeFlashPump
- Execute Fapi_initializeAPI
- Execute Fapi_setActiveFlashBank on Fapi_FlashBank0
At the beginning of the development this sequence was working properly, however after adding more code, the function Fapi_setActiveFlashBank start to hang and never returns.
Initially, we thought that could be a problem related to the loading of flash functions into RAM and we have increased the size of the RAM sectors used in LOAD ramfuncs without success.
We started to debug into disassembly of Fapi_setActiveFlashBank function and we found that call to Fapi_setupFlashStateMachine seems to generate the issue
Does anyone had similar problem? Any suggestion on how to solve the problem will be welcome!
Best regards,
Roger.