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.

LPSTK-CC1352R: Unkown RF_event

Part Number: LPSTK-CC1352R

Hi Support,

Setup:

  • Board: LPSTK-CC1352R
  • SDK: simplelink_cc13x2_26x2_sdk_4_20_00_35
  • Xdctool: xdctools_3_61_00_16_core
  • DMM enabled with BLE

Once a while the RF_pendCmd command returns the event mask: 0x71000000.

If I look at RFCC26x2.h

#define   RF_EventRxEntryDone         (1 << 23)  ///< Rx queue data entry changing state to Finished
#define   RF_EventDataWritten         (1 << 24)  ///< Data written to partial read Rx buffer
#define   RF_EventNDataWritten        (1 << 25)  ///< Specified number of bytes written to partial read Rx buffer
#define   RF_EventRxAborted           (1 << 26)  ///< Packet reception stopped before packet was done
#define   RF_EventRxCollisionDetected (1 << 27)  ///< A collision was indicated during packet reception
#define   RF_EventModulesUnlocked     (1 << 29)  ///< As part of the boot process, the CM0 has opened access to RF core modules and memories
#define   RF_EventInternalError       (uint32_t)(1 << 31) ///< Internal error observed
#define   RF_EventMdmSoft             0x0000002000000000  ///< Synchronization word detected (MDMSOFT interrupt flag)

The event mask 0x71000000 is decoded as follow:

  • 1<< 24: RF_EventDataWritten  ///< Data written to partial read Rx buffer
  • 1<<28: ????
  • 1 << 29: RF_EventModulesUnlocked  ///< As part of the boot process, the CM0 has opened access to RF core modules and memories
  • 1<< 30: ????

What's the meaning of both bit 28 and 30?

Sincerely,

  • Hi Jo,

    Possible events for this event mask can be found both in RF Core Events and RF Driver events. Please see the API documentation:

     

  • Hi Marie,

    Thank you for your reply but neither of RF Core Events nor RF Driver events set bit 28 and 30:

    Events (1<<28 and 1<<30) are not described.

    Could you please provide me their description for entirely decoding my event mask?

    Sincerely,

  • Hi Jo,

    Can you show me how you get this event mask? The code snippet where you receive it and how you read it out?

  • Hi Marie H,

    Setup:

    • Board: LPSTK-CC1352R
    • SDK: simplelink_cc13x2_26x2_sdk_4_40_4_04
    • Xdctool: xdctools_3_63_00_08_core

    A) Could you please help me to decode the event: 0x2100000000000000?

    • 1<< 56 (0x0100000000000000): ???? 
    • 1<< 61 (0x2000000000000000): RF_EventCmdAborted  

    B) Could you kindly tell me why the description of both RF_core events (1<<28) and (1<<30) are not exposed in the documentation/header files? 

    #define   RF_EventRxEntryDone         (1 << 23)  ///< Rx queue data entry changing state to Finished
    #define   RF_EventDataWritten         (1 << 24)  ///< Data written to partial read Rx buffer
    #define   RF_EventNDataWritten        (1 << 25)  ///< Specified number of bytes written to partial read Rx buffer
    #define   RF_EventRxAborted           (1 << 26)  ///< Packet reception stopped before packet was done
    #define   RF_EventRxCollisionDetected (1 << 27)  ///< A collision was indicated during packet reception
    #define   RF_EventModulesUnlocked     (1 << 29)  ///< As part of the boot process, the CM0 has opened access to RF core modules and memories
    #define   RF_EventInternalError       (uint32_t)(1 << 31) ///< Internal error observed
    #define   RF_EventMdmSoft             0x0000002000000000  ///< Synchronization word detected (MDMSOFT interrupt flag)
    

    In fact, with the SDK simplelink_cc13x2_26x2_sdk_4_20_00_35, the same Rf_pendCmd  command randomly returns the event mask 0x71000000 where unkown bits 28 and 30 are set...

    C) Most importantly what's the best practice to recover from any radio error, with DMM enabled

     

    Sincerely