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/CC1310: Calculating the number of failed packets by looking at the CRC

Part Number: CC1310

Tool/software: TI-RTOS

I have an application where I want to find out how many packets have been received incorrectly. I am changing the bIncludeCrc from 0x0 to 0x1 but the CRC is not appended to the payload in the rxPacket (I'm trying to use the watch window to see the contents of the rxPacket payload). Page 1623 in the technical reference manual states that the CRC field should be included if it's 1- is there another setting that I must enable?

  • You can use RXStatus as described in 23.6.3.1 www.ti.com/.../swcu117g.pdf

    The example under shows how to do if for RSSI, CRC OK is similar:

    static rfc_propRxOutput_t rxStatistics;
    int8_t RSSIout;

    // Under Modify CMD_PROP_RX command for application needs
    RF_cmdPropRx.pOutput = (uint8_t*)&rxStatistics;

    // Where you want to read out the RSSI in the code
    RSSIout = rxStatistics.lastRssi;

    This is also used in the rfPaccketErrorRate example in the SDK.
  • Hi TER,

    I've actually tried that as well but the structure keeps reading all zeroes when I use the watch window. What I did is as follows:
    1). I included the smartrf_settings/smartrf_settings.h and smartrf_settings/smartrf_settings_predefined.h header files
    2). Declared the variables: static rfc_propRxOutput_t rxStatistics; and int8_t RSSIout;
    3). Passed the address of the rxStatistics data structure:
    RF_cmdPropRx.pOutput = (uint8_t*)&rxStatistics; //I tried having this at different points in the program (in the RF Rx callback function, before the while (1) in my task etc. but I still kept getting zeroes.
    4). Tried reading out the rssi value and other values in the datastructure but I kept getting zeroes.

    Any comments would be greatly appreciated
  • The rfPacketErrorRate example in the SDK uses the rxStatistics I believe. Take a look at this example first.