Other Parts Discussed in Thread: SYSCONFIG
Tool/software: Code Composer Studio
Hi Ti,
As question of https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/t/895444?keyMatch=VALERY&tisearch=Search-EN-everything
The amplitude of IQ will have a fluctuating range may also caused by LNA gain or TX power switch.
I have modify configuration to fix gain and power, but useless. Can you help to check if my change is correct to meet above requirement
1. fix Passive RX LNA gain(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), // Force high gain setting
END_OVERRIDE };
#if defined(BLE_V50_FEATURES) && (BLE_V50_FEATURES & (PHY_2MBPS_CFG | PHY_LR_CFG))
regOverride_t pOverrides2Mbps[] = {
END_OVERRIDE };
regOverride_t pOverridesCoded[] = {
END_OVERRIDE };
#endif // PHY_2MBPS_CFG | PHY_LR_CFG
2. fix Slave TX power
(ble_user_config.c)
#define DEFAULT_TX_POWER HCI_EXT_TX_POWER_0_DBM 0
(ti_radio_config.h)
#define RF_BLE_TX_POWER_TABLE_SIZE 16 2
(ti_radio_config.c)
RF_TxPowerTable_Entry RF_BLE_txPowerTable[RF_BLE_TX_POWER_TABLE_SIZE] =
{
{-20, RF_TxPowerTable_DEFAULT_PA_ENTRY(6, 3, 0, 2) },
{-18, RF_TxPowerTable_DEFAULT_PA_ENTRY(8, 3, 0, 3) },
{-15, RF_TxPowerTable_DEFAULT_PA_ENTRY(10, 3, 0, 3) },
{-12, RF_TxPowerTable_DEFAULT_PA_ENTRY(12, 3, 0, 5) },
{-10, RF_TxPowerTable_DEFAULT_PA_ENTRY(15, 3, 0, 5) },
{-9, RF_TxPowerTable_DEFAULT_PA_ENTRY(16, 3, 0, 5) },
{-6, RF_TxPowerTable_DEFAULT_PA_ENTRY(20, 3, 0, 8) },
{-5, RF_TxPowerTable_DEFAULT_PA_ENTRY(22, 3, 0, 9) },
{-3, RF_TxPowerTable_DEFAULT_PA_ENTRY(19, 2, 0, 12) },
{0, RF_TxPowerTable_DEFAULT_PA_ENTRY(19, 1, 0, 20) },
{1, RF_TxPowerTable_DEFAULT_PA_ENTRY(22, 1, 0, 20) },
{2, RF_TxPowerTable_DEFAULT_PA_ENTRY(25, 1, 0, 25) },
{3, RF_TxPowerTable_DEFAULT_PA_ENTRY(29, 1, 0, 28) },
{4, RF_TxPowerTable_DEFAULT_PA_ENTRY(35, 1, 0, 39) },
{5, RF_TxPowerTable_DEFAULT_PA_ENTRY(23, 0, 0, 57) },
RF_TxPowerTable_TERMINATION_ENTRY
};