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.

CC3220SF: CC3235SF Country code and TX Power Settings in UniFlash & Software..

Part Number: CC3220SF
Other Parts Discussed in Thread: UNIFLASH

Hi Team SimpleLink,

It seems that there are some settings (like country code and TX power) that can be set in both UniFlash and in the application software.  If these parameters are set in both UniFlash and the application code, and they are different/in-conflict.. which settings are ultimately used.. Uniflash's or the Application code's?

For example..

In the firmware..

     result = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID,

                         SL_WLAN_GENERAL_PARAM_OPT_COUNTRY_CODE, 2,

                         regionStr);             // set Region to "US", "EU", or "JP"

    /* Set TX power level to 4 dB Down */

     uint8_t power = 4;  // -4dBm matches what we do in production on the 807211 board with US Settings

     result = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID,

                         SL_WLAN_GENERAL_PARAM_OPT_STA_TX_POWER, 1,

                         (uint8_t *)&power);

     assert(result == 0);

And in UniFlash..

Thanks, Merril

  • Hi,

    Uniflash save this settings as default inside image. In case you are using sl_ API and change this settings from host code, this default settings will be changed (overwritten). This is valid for all settings which can be set via Uniflash.

    Jan

  • Thanks Jan!

    Merril, Jan is correct. The image you flash will contain the NWP settings used when the device boots the first time. You can use the SimpleLink APIs to change these settings in your application, and I believe all of them are persistent (so they will stay that way after reset).

    You can use sl_WlanGet to check these settings after boot if you want to avoid unnecessary host driver calls.

    Best regards,

    Sarah

  • Hi Jan & Sarah,

    Thanks, Merril