请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
部件号:CC1311P3 您好,
我尝试将我的项目从SDK-5_40_00_40移植到SDK-6_10_00_29。 运行项目时,程序输入PowerCC26X2.c --> switchXOSCHF()--> IF(!PowerCC26X2_oschfTrySwitchToXosc())不能通过。 我的更改如下所示,如果我遗漏任何内容,请更正



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.
您好,
我尝试将我的项目从SDK-5_40_00_40移植到SDK-6_10_00_29。 运行项目时,程序输入PowerCC26X2.c --> switchXOSCHF()--> IF(!PowerCC26X2_oschfTrySwitchToXosc())不能通过。 我的更改如下所示,如果我遗漏任何内容,请更正



您使用哪种编译器?
最近几天我研究过这种不同的芯片,我发现使用TIClang似乎稍微改变了时间。
如果使用此编译器,可以尝试将PowerCC26x2.c复制到项目中,并在此处添加一个小延迟:
static void switchXOSCHF(void)
{
bool readyToCal;
unsigned int key;
key = HwiP_disable();
delayUs(5);
if (!PowerCC26X2_oschfTrySwitchToXosc()) {
/* Unable to switch to XOSC after we were informed it is ready to
* switch. It is fine if we spin, there is no sensible recovery
* mechanism from such an error.
*/
while(1) ;
}