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.

rf patches under CC13XX ware folder

Other Parts Discussed in Thread: CC1310

Hi


I find there are two patch files in rf_patches under cc13xxware_2_01_00_16101 and I find some functions in these patch files are used in CC13XX RF sample.
rfEasyLinkRx/rfEasyLinkTx sample in tirtos_simplelink_2_14_03_28 use patch function rf_patch_cpe_genfsk when open RF module as follow.

rfHandle = RF_open(&rfObject, &RF_prop, (RF_RadioSetup*)&RF_cmdPropRadioDivSetup, &rfParams);//rf_patch_cpe_genfsk is one of field value of RF_prop.

And I am going to bring up the project using CC1310 without TI RTOS. Due to these two samples based on TI RTOS and the patch handle is hidned, I want to how to add these patches to my firmware?


Thanks,

HH

  • Hi

    Pathing is handled by the RF driver, so you should see how it implements this and then do the same thing in your code. The RF driver is found here:

    C:\ti\tirtos_simplelink_2_14_03_28\packages\ti\drivers\rf

    Siri

  • Hi Siri

    So, how to use these patches? When do I call these function? Before radio setup command, after radio setup command, or others?
    I should call these patches on every kinds of radio settings?

    Thanks,
    HH
  • Hi HH,

    I'll refer to Siri's answer, please see the implementation of the RF driver for now.

    This is an overview of the startup sequence in the RF driver, but please read the implementation to see exactly what happens:

    1. fsmPowerUpState - powers on the HF XTAL and the RF Core and does some configuration. The hwiFxnCpe0PowerFsm IRQ_BOOT_DONE will push it to the next state.
    2. fsmCpeState - Patches CPE if necessary, turn on clocks to MCE/RFE patch RAM
    3. fsmMceState - Patches MCE if necessary
    4. fsmRfeState - Patches RFE if necessary, turns off clocks to MCE/RFE patch RAM
    5. fsmSetupState - Sends the PROP_RADIO_SETUP command, syncs the RTC and RAT and potentially queues the CMD_FS command as well. Another important part is that it enabled "PowerCC26XX_NEED_FLASH_IN_IDLE", which is needed when running the PROP_RADIO_SETUP command (but should be disabled afterwards)
    6. fsmActiveState with the Fsm_EventPowerStep event runs when gets LAST_COMMAND_DONE from PROP_RADIO_SETUP. Releases "PowerCC26XX_NEED_FLASH_IN_IDLE"

    The patches you need are included in CC13xxWare, and when you export a PHY from SmartRF Studio, the pointers to the patches you need are listed at the top.

    Best regards,
    Niklas
  • Hi Niklas

    Thanks for your summary on RF driver logic.

    HH