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.

CC1310: 无法使用SDK里面的pinShutdown例程

Part Number: CC1310

单步执行,然后卡到Semaphore_pend(Semaphore_handle(&shutdownSem), BIOS_WAIT_FOREVER);

之前修改过的地方也就两个引脚

请问,要怎样才能执行到后面的while(1)里面去。

  • 您好,我们已收到您的问题并升级到英文论坛寻求帮助,如有答复将尽快回复您,谢谢!

  • 还有就是 后续我把Semaphore_pend(Semaphore_handle(&shutdownSem), BIOS_WAIT_FOREVER);这一条注释掉后直接用power_shutdown(0,0);也不行

  • 您好,

    请在在 CC1310_LAUNCHXL.h 文件中进行更改,而不是更改 Board.h 文件中的引脚。

    请将 Board.h 中的更改恢复为以下内容:

    #define Board_PIN_BUTTON0       CC1310_LAUNCHXL_PIN_BTN1
    #define Board_PIN_BUTTON1       CC1310_LAUNCHXL_PIN_BTN2

    应在 CC1310_LAUNCHXL.h 中选择 IOID,如下所示: 

    /* Discrete Inputs */
    #define CC1310_LAUNCHXL_PIN_BTN1              IOID_5
    #define CC1310_LAUNCHXL_PIN_BTN2              IOID_6

    假设除了您提到的引脚相关示例外,使用pinShutdown示例时没有进行任何修改。 在这种情况下,请记住 DIO6也用于 CC1310_LAUNCHXL_PIN_RLED,因此您需要解决此冲突,否则`hButtons = PIN_open (&buttonState、ButtonTableShutdown);主函数中的行可能失败(hButtons 的值为0) 。