Tool/software:
i am trying to use the FEE api and i am not getting through initialization
this code is the first called from my main()
uint16_t Status;
TI_Fee_Init();
do
{
TI_Fee_MainFunction();
delay();
Status=TI_Fee_GetStatus(0);
if (Status != IDLE){
TI_Fee_ErrorCodeType ec = TI_FeeErrorCode(0);
TI_Fee_ErrorRecovery(ec,0 );
}
}
while(Status!= IDLE);
if never gets out of the do/while loop and always has "Error_SetupStateMachine" as the error code.
Setupflash look like this
void setupFlash(void)
{
/* USER CODE BEGIN (6) */
/* USER CODE END */
/** - Setup flash read mode, address wait states and data wait states */
flashWREG->FRDCNTL = 0x00000000U
| (uint32)((uint32)2U << 8U)
| (uint32)((uint32)0U << 4U)
| 1U;
/** - Setup flash access wait states for bank 7 */
FSM_WR_ENA_HL = 0x5U;
EEPROM_CONFIG_HL = 0x00000002U
| (uint32)((uint32)3U << 16U) ;
/* USER CODE BEGIN (7) */
/* USER CODE END */
/** - Disable write access to flash state machine registers */
FSM_WR_ENA_HL = 0xAU;
/** - Setup flash bank power modes */
flashWREG->FBFALLBACK = 0x00000000U
| (uint32)((uint32)SYS_ACTIVE << 14U) /* BANK 7 */
| (uint32)((uint32)SYS_ACTIVE << 2U) /* BANK 1 */
| (uint32)((uint32)SYS_ACTIVE << 0U); /* BANK 0 */
/* USER CODE BEGIN (8) */
/* USER CODE END */
}
i have tried changing to svc mode before the calls and still getting the same.