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.

[参考译文] LAUNCHXL-CC2650:在 PIN_init 函数上卡住

Guru**** 2559610 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/572165/launchxl-cc2650-getting-stuck-upon-pin_init-function

器件型号:LAUNCHXL-CC2650

大家好、

编译了以下代码、它应该会初始化引脚、但会卡住。 PIN_INIT 代码进入一个无限循环(汇编:BL 此_addr)。

#define L1 IOID_23
#define L2 IOID_24
#define L3 IOID_25
#define L4 IOID_26

PIN_Config ledPinTable2[]=

{
L1 | PIN_GPIO_OUTP_EN | PIN_GPIO_HIGH | PIN_PushPull | PIN_DRVSTR_MAX、
L2 | PIN_GPIO_OUTP_EN | Pushull
| PIN_OUTP_LOW | PIN_PIN_OUTPL_MAX
L4 | PIN_GPIO_OUTP_EN | PIN_GPIO_LOW | PIN_PushPull | PIN_DRVSTR_MAX、
PIN_TERMINATE
};

int main (void)
{
/*呼叫板初始化函数*/
Board_initGeneral();

/*开始连接到 DIO */
PIN_INIT (ledPinTable2);//<--该行永远不会返回! :(
返回1;
} 

感谢您的任何帮助!

最棒的

巴拉克。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    此代码基于哪个 BLE 示例?