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.

CC2652R: how to modify default Tx Power Table in host_test project

Part Number: CC2652R
Other Parts Discussed in Thread: SYSCONFIG

Hi team,

Customer use CC2652R on BLE project. Please instruct how to modify the default Tx Power Table in host_test project .

In host_test project, I only find out the table "txPowerTable_2400_pa5[TXPOWERTABLE_2400_PA5_SIZE]" inside ti_rario_config.c  However, this is generated by Sysconfig tool (host_test.syscfg).

Please instruct how to modify the registers value inside host_test.syscfg.

RF_TxPowerTable_Entry txPowerTable_2400_pa5[TXPOWERTABLE_2400_PA5_SIZE] =
{
{-20, RF_TxPowerTable_DEFAULT_PA_ENTRY(6, 3, 0, 2) }, // 0x04C6
{-18, RF_TxPowerTable_DEFAULT_PA_ENTRY(8, 3, 0, 3) }, // 0x06C8
{-15, RF_TxPowerTable_DEFAULT_PA_ENTRY(10, 3, 0, 3) }, // 0x06CA
{-12, RF_TxPowerTable_DEFAULT_PA_ENTRY(12, 3, 0, 5) }, // 0x0ACC
{-10, RF_TxPowerTable_DEFAULT_PA_ENTRY(15, 3, 0, 5) }, // 0x0ACF
{-9, RF_TxPowerTable_DEFAULT_PA_ENTRY(16, 3, 0, 5) }, // 0x0AD0
{-6, RF_TxPowerTable_DEFAULT_PA_ENTRY(20, 3, 0, 8) }, // 0x10D4
{-5, RF_TxPowerTable_DEFAULT_PA_ENTRY(22, 3, 0, 9) }, // 0x12D6
{-3, RF_TxPowerTable_DEFAULT_PA_ENTRY(19, 2, 0, 12) }, // 0x1893
{0, RF_TxPowerTable_DEFAULT_PA_ENTRY(19, 1, 0, 20) }, // 0x2853
{1, RF_TxPowerTable_DEFAULT_PA_ENTRY(22, 1, 0, 20) }, // 0x2856
{2, RF_TxPowerTable_DEFAULT_PA_ENTRY(25, 1, 0, 25) }, // 0x3259
{3, RF_TxPowerTable_DEFAULT_PA_ENTRY(29, 1, 0, 28) }, // 0x385D
{4, RF_TxPowerTable_DEFAULT_PA_ENTRY(35, 1, 0, 39) }, // 0x4E63
{5, RF_TxPowerTable_DEFAULT_PA_ENTRY(23, 0, 0, 57) }, // 0x7217
RF_TxPowerTable_TERMINATION_ENTRY
};

  • Hi TI

    This is emergency case, for now is holding production stage, so, we need your high priority support....

    we need to use newer RF tx power table for CC2652R1 to make sure our mass production test PASS.

    so, can you let us know how to modify it ? what's the cal. rule ?

    for example: follow attached table as TI SDK default setting used (23,0,0,57) means //0x7217, (35, 1, 0, 39) } means //0x4E63

    for now, we need to use newer power table setting, so, how to fill correct value in ?

    thanks

    Danny

    //0x8623 ==> {?,?,?,?} 

    //0x661A ==> {?,?,?,?} 

    //0x4E67 ==> {?,?,?,?}

    //... 

    please follow attached (new) table

    ....

  • Hi Jerry, Danny,

    I looped in a HW expert but do have initial thoughts.  Please refer to Section 10 (PA) of SWRA640.  For visual reference, (w,x,y,z) where w = IB (5:0), x = Gain (7:6), y = TX BOOST BIT (8), and z = temp coefficient (15:9). 

    (23, 0, 0, 57) represents 0111 0010 0001 0111b or 0x7217 where 010111 (5:0) is the IB of 23 and 111001 (15:9) is the temp coefficient of 57.
    (35, 1, 0, 39) represents 0100 1110 0110 0011b or 0x4E63 where 100011 (5:0) is the IB of 35, 01 (7:6) is the Gain of 1, and 100111 (15:9) is the temp coefficient of 39.

    0x8623 represents 1000 0110 0010 0011b so IB is 35, Gain is 0, IB is 0, and temp coefficient is 67.
    0x661A represents 0110 0110 0001 1010b so IB is 26, Gain is 0, IB is 0, and temp coefficient is 51.

    I hope this helps,
    Ryan

  • Hi Ryan,

    The table "txPowerTable_2400_pa5[TXPOWERTABLE_2400_PA5_SIZE]" inside ti_rario_config.c  is generated by Sysconfig tool (host_test.syscfg). How to modify these value before generating  "txPowerTable_2400_pa5"?

    Thank you.

  • Since SysConfig is not capable of altering these values, you will need to copy/paste ti_radio_config.c directly into your project directory and exclude this file from being generated by SysConfig.

      

    Regards,
    Ryan

  • Hi Ryan

    thanks your information update, currently, for new power table transfer rule, i have same page with you. 

    i've modified newer power table setting in new "ti_radio_config.c" file, I try to follow the step of you mentioned, but, i can't build it success even compile fail,

    due to emergency case, we need to solve this issue asap, so, can you describe all steps in detail for how to build it ? 

    thank you

    Danny

    PS: After 6 hours later, i'll try it again. Thanks

  • I have already provided all instructions and images necessary which results in successful build from my setup.  Please describe your SDK version and CCS/SysConfig/Compiler dependencies, provide the code snippets of changes applied to ti_radio_config, and images/screenshots of the build issue you have encountered.

    Regards,
    Ryan

  • Hi Ryan

    thanks for update, currently, I'm downloading the latest TI SDK 7.xx version to try it again, once any issue again, I'll let you know and feedback detail steps for your check.

    thanks

    Danny

  • Hi Ryan,

    The "ti_radio_config.c" will be overwritten by sysconfig for each compiling. So, I try to follow below link to disable sysconfig on host_test project. But it's fail.

    https://dev.ti.com/tirex/explore/content/simplelink_cc13xx_cc26xx_sdk_7_10_01_24/docs/ble5stack/ble_user_guide/html/sysconfig/sysconfig-disable.html?highlight=sysconfig#disable-sysconfig

    I think below descriptions are not workable for host_test project (SDK7.10.1.24) . Please help on this. Thank you.

    Modifying Compiler/Linker Settings

    1. Change include paths (Project > Properties > ARM Compiler > Include Options)

    • Add ${PROJECT_ROOT}/syscfg

    2. Change location of .opt files (Project > Properties > ARM Compiler > Advanced Options > Command Files)

    • Change the location of the ti_build_config.opt and ti_ble_app_config.opt to be in ${PROJECT_ROOT}/syscfg

    1. Modify linker include paths (Project > Properties > ARM Linker > File Search Path)

    • Change the location of ti_utils_build_linker.cmd.genlibs from ${PROJECT_BUILD_DIR}/syscfg/ to be in ${PROJECT_ROOT}/syscfg/

  • Jerry,

    Please do not modify compiler/linker settings.  You should only follow the instructions I've already provided.

    Since SysConfig is not capable of altering these values, you will need to copy/paste ti_radio_config.c directly into your project directory and exclude this file from being generated by SysConfig.
    1. Copy/paste ti_radio_config.c/h from Release/syscfg directly into your project directory
    2. Exclude these files from being generated by SysConfig "Show Generated Files"
    3. Clean and rebuild the project

    Regards,
    Ryan