This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMDXRM46HDK:FEE 未初始化

Guru**** 2051860 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1465663/tmdxrm46hdk-fee-not-initializing

工具与软件:

我正在尝试使用 FEE API、而我没有完成初始化  

这个代码是第一个从我的 main()调用的代码。

uint16_t 状态;
TI_TI_ Fee_Init ();
应执行的操作

TI_4.54 Fee_Main ction();
delay();
STATUS=TI_CCS4520 Fee_Get (0);
if (状态!=空闲){
TI_4.2010 Fee_Error 类型 EC = TI_FEEErrorCode (0);
TI_4.12.10(EC,0) Fee_Error;

}
}
while (Status!= IDLE);

如果从不退出 DO/while 循环、并且始终有 Error_Setup Machine"作为错误代码。

Setupflash 看起来像这样

void setupFlash (void)

/*用户代码 begin (6)*/
/*用户代码结束*/

/**-设置闪存读取模式、地址等待状态和数据等待状态*/
flashWREG->FRDCNTL = 0x00000000U
|(uint32)((uint32) 2U << 8U)
|(uint32)((uint32) 0U << 4U)
| 1u;

/**-为组7设置闪存访问等待状态*/
FSM_WR_ENA_HL = 0x5U;
EEPROM_CONFIG_HL = 0x00000002U
|(UINT32)((UINT32)3U <<16U );

/*用户代码 begin (7)*/
/*用户代码结束*/

/**-禁用对闪存状态机寄存器的写访问*/
FSM_WR_ENA_HL = 0xAU;

/**-设置闪存组电源模式*/
flashWREG->FBFALLBACK = 0x00000000U
|(UINT32)((UINT32) SYS_ACTIVE << 14U)/*组7 *
|(UINT32)((UINT32) SYS_ACTIVE << 2U)/*组1 *
|(UINT32)((UINT32) SYS_ACTIVE << 0U);/*组0 *

/*用户代码 begin (8)*/
/*用户代码结束*/

}

我在呼叫之前尝试了更改为 Svc 模式、但仍然得到相同的结果。