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.

CCS/CC2652R: CCS/CC2652R: CCS/CC2652R: How to fix Master LNA gain (SDK4.1)

Part Number: CC2652R

Tool/software: Code Composer Studio

Hi,

Can i add reg configure and replace pOverrides_ble1Mbps to fix LNA gain in Master mode. I got the results of the vibration drift anomaly.

// Overrides for CMD_BLE5_RADIO_SETUP
uint32_t pOverrides_test_ble1Mbps[] =
{
    // override_ble5_setup_override_1mbps.json
    // Bluetooth 5: Set pilot tone length to 20 us
    HW_REG_OVERRIDE(0x5320,0x03C0),
    HW_REG_OVERRIDE(0x6098,0x35FF), // FIH Force high gain setting
    // Bluetooth 5: Compensate syncTimeadjust
    (uint32_t)0x015302A3,
    (uint32_t)0xFFFFFFFF
};

const boardConfig_t boardConfig =
{
  .rfFeModeBias  = RF_FE_MODE_AND_BIAS,
  .rfRegTbl      = (regOverride_t*)pOverrides_bleCommon,
  .rfRegTbl1M    = (regOverride_t*)pOverrides_test_ble1Mbps,
#if defined(BLE_V50_FEATURES) && (BLE_V50_FEATURES & (PHY_2MBPS_CFG | PHY_LR_CFG))
  // Currently, no overrides for 2M and Coded, so exclude from build.
  .rfRegTbl2M    = (regOverride_t*)pOverrides_ble2Mbps,
  .rfRegTblCoded = (regOverride_t*)pOverrides_bleCoded,
#endif // PHY_2MBPS_CFG | PHY_LR_CFG

1.My gain change for Master mode (ble_user_config.c)

   -->copy setting from pOverrides_ble1Mbps and add low gain config

uint32_t pOverrides_xxx_ble1Mbps[] =
{
    // override_ble5_setup_override_1mbps.json
    // Bluetooth 5: Set pilot tone length to 20 us
    HW_REG_OVERRIDE(0x5320,0x03C0),
    HW_REG_OVERRIDE(0x6098,0x35ff),
    // Bluetooth 5: Compensate syncTimeadjust
    (uint32_t)0x015302A3,
    (uint32_t)0xFFFFFFFF
};

const boardConfig_t boardConfig =
{
  .rfFeModeBias  = RF_FE_MODE_AND_BIAS,
  .rfRegTbl      = (regOverride_t*)pOverrides_bleCommon,
  .rfRegTbl1M    = (regOverride_t*)pOverrides_xxx_ble1Mbps,
#if defined(BLE_V50_FEATURES) && (BLE_V50_FEATURES & (PHY_2MBPS_CFG | PHY_LR_CFG))
  // Currently, no overrides for 2M and Coded, so exclude from build.

2.My gain change for Passive mode (urfc.c)

  regOverride_t pOverridesCommon[] = {
    0x00158000, // S2RCFG: Capture S2R from FrontEnd, on event (CM0 will arm)
    0x000E51D0, // After FRAC
    ((CTECONFIG << 16) | 0x8BB3), // Enable CTE capture
    ((CTEOFFSET << 24) | ((CTE_SAMPLING_CONFIG | (CTE_SAMPLING_CONFIG << 4)) << 16) | 0x0BC3), // Sampling rate, offset
    0xC0040341, // Pointer to antenna switching table in next entry
    (uint32_t) antSwitching, // Pointer to antenna switching table
     END_OVERRIDE };

   regOverride_t pOverrides1Mbps[] = {
     HW_REG_OVERRIDE(0x6098,0x35ff),
     END_OVERRIDE };

I have upload low gain picture for Master/Passive. Looks like Passive gain stage have some problem on SDK4.1. but it is normal on SDK3.4

  • Hi Valery,

    May I ask you to run again your tests using the latest SDK (4.20)?

    It would be very helpful if you provide us all the graph you will get (i.e. Master low and high gain, Passive low and high gain).

    Kind regards,