Hi,
I am using the TMS570LS1227ZWT HDK demo board for using the FEE to reading and writing the parameter datas.
It seems that there are two ways to do the flash operations:
1. Use the functions generated by the HALCoGen,(TI_Fee_WriteAsync, TI_Fee_Read, etc.)
2. use the offcial Flash API(lastest version F021 2.01.01) released by TI.
And my questions are :
1. Is the Flash API independent of the functions generated by the HALCoGen, which means the Flash API for the flash operations will not call the functions generated by the HALCoGen?
2. Prior to any Flash operations of the Flash API, a proper initialization of the flash device should be done.
I can find "TI_Fee_Init( )" in the sample code example_TI_Fee_Write_Read.c of HANCoGen(v04.04.00). Is there a function of Flash API to do this?
Or we must also call the same "TI_Fee_Init()", and then all of the Flash API can operate the Flash without exceptions? Is there a Program Flow for the initialization? :)
3. There are some Erase/Program usage samples in the document "Advanced F021 Flash API Erase/Program Usage" for the "FlashBank0". If I wanna test it with FEE, is the only change needed "Fapi_setActiveFlashBank(Fapi_FlashBank0)" to "Fapi_setActiveFlashBank(Fapi_FlashBank7)" ?
4. Could you help to supply the samples and the Program Flow for the reading of the Flash/FEE using the Flash API?
And the last question is, why the Flash API is recommended. Does that means it's more simpler, stable and safer than the functions directly call of the functions generated by the HALCoGen for the user?
I am looking forward to your answers!
Thanks very much in advance!