Hello All,
I'm trying to use the Flash EEPROM Emulation (TI FEE) with a Hercules development board (TMS570LS1227ZWT).
We're using HALCoGen version 03.08.01 and the F021 Flash API version 02.00.01 and the FreeRTOS version 7.4.0 (included in this version of HALCoGen).
One change we had to make to the generated code is to use hal_stdtypes.h in ti_fee.h to prevent conflicting type definitions.
We're also using the prvRaisePrivilege() and portRESET_PRIVILEGE() definitions from FreeRTOS to enter and leave the Cortex-R4F Supervisor mode in order to access the protected flash settings registers.
After running the TI_Fee_Init(), the error code as returned by TI_FeeErrorCode(0) is ErrorNoActiveVS. I've looked at bank 7 (address 0xF0200000) and it is all erased (0xff).
I am under the impression that the TI_Fee_Init() should initialize the flash sectors appropriately. It isn't clear to me when exactly the TI_Fee_Format() should be called though.
I've also tried disabling and enabling the interrupts around each call to the FEE API.
Here's some screenshots from HALCoGen. I've also attached the contents of the .hcg and .dil files if that is helpful.
Best Regards,
James Graves