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: rf_patches - what is this?

Part Number: CC1310


Hello Team,

Could you help us please with our customer's question?

There are several includes in SDK examples:

#include <rf_patches/rf_patch_cpe_sl_longrange.h>

#include <rf_patches/rf_patch_rfe_sl_longrange.h>

#include <rf_patches/rf_patch_mce_sl_longrange.h>   Зачем это? Вопрос.

#include <rf_patches/rf_patch_cpe_lrm.h>

#include <rf_patches/rf_patch_rfe_lrm.h>

#include "smartrf_settings.h"

The questions:
1) What is in this files?
2) Is there any important configuration in them?
3) Do they depend on the operating frequency?(The customer needs 433MHz)

BR,
Ilya.

  • The radio core consists of CM0 in addition to various state machines. The initial code running on this are placed in ROM but for bug fixes and adding features this code is patched.

    If you do a code export from SmartRF Studio with the nominal 50 kbps setting the code contain:

    // TI-RTOS RF Mode Object
    RF_Mode RF_prop =
    {
    .rfMode = RF_MODE_PROPRIETARY_SUB_1,
    .cpePatchFxn = &rf_patch_cpe_genfsk,
    .mcePatchFxn = 0,
    .rfePatchFxn = &rf_patch_rfe_genfsk,
    };

    For long range mode this looks like:

    RF_Mode RF_prop =
    {
    .rfMode = RF_MODE_PROPRIETARY_SUB_1,
    .cpePatchFxn = &rf_patch_cpe_sl_longrange,
    .mcePatchFxn = &rf_patch_mce_sl_longrange,
    .rfePatchFxn = &rf_patch_rfe_sl_longrange,
    };

    So basically the files in question are different patches required for some different settings.

    The smartrf_settings.h contains definitions/ includes used by smartrf_settings.c. The smartrf_settings.c file contains the required overrides and RF command settings.

    Always use SmartRF Studio to generate settings. The smartrf_settings.c will contain some frequency dependent information, type in the wanted frequency in SmartRF Studio and the code export will generate the rest.