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.

RTOS/LAUNCHXL-CC1310: Cc1310 tasks automatically 14 minutes of sleep

Part Number: LAUNCHXL-CC1310

Tool/software: TI-RTOS

Hi

 In the task of collecting sensor data and sent via the RF, 2 s and then sleep. So after several cycles, task automatically 14 minutes of sleep. So cycle.

Why is this ? Task content is as follows:

    while(1)
    {

//        current_time += PACKET_INTERVAL_PERIOD;
//        RF_cmdPropTx.startTime = current_time;

//        sensor_info.extern_temp = SensorTmp112_GetTmp();
        Sysinfo_Proc(packet);//collect sensor info

        RF_EventMask result = RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropTx, RF_PriorityNormal, NULL, 0); //Radio Send data
        if (!(result & RF_EventLastCmdDone))
        {
            /* Error */
            while(1);
        }
        GPIO_toggle(Board_GPIO_LED0);           //toggle led
        Task_sleep(2000*1000/Clock_tickPeriod);//Sleep

    }

  • Hi,

    do not use absolute timing. Rather do it this way:

        // Start the RF operation immediately when being dispatched to the RF core.
        RF_cmdPropTx.startTrigger.triggerType = TRIG_NOW;
    
        while(1)
        {
            Sysinfo_Proc(packet);//collect sensor info 
    
            RF_EventMask result = RF_runCmd(rfHandle, (RF_Op*)&RF_cmdPropTx, RF_PriorityNormal, NULL, 0); //Radio Send data
            if (!(result & RF_EventLastCmdDone))
            {
                /* Error */
                while(1);
            }
            // Tell the RF core that we are not executing further commands and it can be switched off.
            // It will be switched on when the next RF operation is executed.
            RF_yield(rfHandle);
    
            GPIO_toggle(Board_GPIO_LED0);           //toggle led
            Task_sleep(2000*1000/Clock_tickPeriod);//Sleep
        }

    If you are interested how absolute timing works, read the Proprietary RF user's guide.

  • Thank you for your answer
    I've solved it.