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.

cc1350 运行中被RF_runCmd()函数挂住

Other Parts Discussed in Thread: CC1350

我利用SDK提供的rfPacketErrorRate_CC1350_LAUNCHXL_433_tirtos_ccs 程序来检验cc1350 433M的TX和RX,

对这个demo程序源码,我把pin初始化时候的Board_initHook()函数删除了(没有外部flash),并且pin table仅仅定义了一个IO4且处于拉高态(ble 和 sub1G 天线链路切换控制),其他管教屏蔽掉,因此我也屏蔽了所有的LED和显示功能;

我仅仅是 运行tx_runTxTest这个函数,但是被挂起来了,跟踪代码为:RF_runCmd()-->RF_pendCmd()->SemaphoreP_pend(&h->state.semSync, SemaphoreP_WAIT_FOREVER)   (CCS DEBUG 模式跟踪的发现挂在这个接口)

使用的环境为: CCS V7 

1、cc1350 rev B

2、simplelink_cc13x0_sdk_3_10_00_11

3、tirtos_cc13xx_cc26xx_2_20_01_0

请问大家这个问题该怎么解 ?

  • 不修改源码测试,是否正常?RF_runCmd中会调用RF_pendCmd,需要等待特定事件发生才会返回

    RF_runCmd()RF_EventMask RF_runCmd(RF_Handle h, RF_Op* pOp, RF_Priority ePri, RF_Callback pCb, RF_EventMask bmEvent)
    {
    if (pCb == NULL)
    {
    pCb = syncCb;
    }

    RF_CmdHandle ch = RF_postCmd(h, pOp, ePri, pCb, bmEvent);

    if (ch<0)
    {
    return RF_EventCmdError;
    }
    return RF_pendCmd(h, ch, (RF_EventLastCmdDone | RF_EventCmdAborted | RF_EventCmdStopped | RF_EventCmdCancelled));
    }
  • viki, 好

    我把代码复原,还是在RF_pendCmd()->SemaphoreP_pend(&h->state.semSync, SemaphoreP_WAIT_FOREVER) 这里挂起了;
    这个是debug模式有关系吗 ??
  • 大神们,请不要沉下去啊,blocker了
  • 回看了一下,你的编译器版本不符合要求:
    SimpleLink™ CC13x0 SDK 3.10.00.11 was built & tested on a Windows 7 host platform using the following Integrated Development Environment (IDE) and components. Using an IDE version or TI-RTOS version not listed below may result in compatibility issues with this SDK release.

    TI Code Composer Studio™:: 9.0.0.00013
    IAR Embedded Workbench for ARM:: 8.32.2
    C Compiler for ARM: 18.12.1.LTS
    XDCTools: 3.51.02.21
    TI-RTOS for CC13XX: 4.10.01.00