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.

CC3220S-LAUNCHXL: How to get power consumption correctly on reference design "CC3220 Smart-Lock Reference"

Part Number: CC3220S-LAUNCHXL
Other Parts Discussed in Thread: CC3220S, TIDC-01005, UNIFLASH, CC3220SDK

Hi All,

HW: CC3220S  Launchpad

SW: TIDC-01005

I got the right features, but I was having trouble measuring power consumption. The average power consumption when connected to the AP is about 17 mA.

Work Steps:

1. Program the FW by uniflash zip file in TIDC-01005-SW 

2. Provisioning by AP mode.

3. Reset CC3220S-LP, and it will connect to my iPhone (hot point) and work well.

My question :

1. How to configure the jumper?   - I try to configure the jumper according to the Battery Powering Only the CC3220 and U8 (Onboard Serial Flash) section of the CC3220 Development Kit Hardware User's Guide. But it is not work, In my tests, I configured the jumper to work as follows picture.

2. Why is the average power consumption 17mA? Is that because of the AP router?(I am using the iPhone as an AP router )

  • Hi Jack,

    Can you remove all of the jumpers besides RST_PU (J9)? The jumper configuration connecting VBAT and BRD is only for battery power if you would like to power the entire board (this section is above).
    Did you remove R141 as well?

    Best regards,
    Sarah

  • Hi Sarah,

    If the BRD is powered off, the CC3220 will not be able to connect to the AP. I want to test the power consumption of the CC3220 and flash, so I don't need the entire board, but I don't know how to remove it and it works fine.

    Please note that R141 has been removed.

    Provide the uniflash zip file as attached and it is the same with TIDC-01005-SW . Can you help check if this is correct. 

    wifi_doorlock_RS_tirtos_180420155106.zip

  • Hi Jack,

    You mention that you are working with the UniFlash zip file inside the software download. The default image used in this configuration has the sensors thread enabled.

    Since you are measuring power and have the sensors boosterpack removed, can you make sure you have -
    1) Imported the CCS project
    2) Disabled the sensors thread by setting (#define SENSORS (0)) in wifi_doorlock_app.h.
    3) Also, verify in the Project Properties -> Build -> ARM Compiler -> Predefined Symbols that USE_POWER_POLICY is pre-defined
    4) Rebuilt the application
    5) Replaced the mcuimg.bin file in the UniFlash configuration with the new build

    Thanks,
    Ben M
  • Hi Ben,

    I tried to import the project according to TIDC-01005 CH3.1.2.1.3 "Import project source files into CCS".

    But I got an error message "product 'com.tw.simplelink_SDK_BLE_PLUGIN' v0.0 is not currnetly installed and no compatible version is available."

    my step as follow:

    1. Install all the tools we need, including: CCSv8.10, CC3220SDK v2.10,  BLE PLUGIN v1.40, Sensor and Actuator Plugin v1.20, BLE SDK v1.50

    2. put  "wifi_doorlock" into path: C:\ti\simplelink_cc32xx_sdk_2_10_00_04\examples\rtos\CC3220S_LAUNCHXL\demos

    3. open CCS and import project => show the error message  "product 'com.tw.simplelink_SDK_BLE_PLUGIN' v0.0 is not currnetly installed and no compatible version is available."

    Can you help me check what I missed?

    BR,

    Jack

  • Hi Jack,

    Can you check whether the BLE Plugin appears under the list of Installed Products when you go to Window->Preferences->Code Composer Studio-> Products?

    If you have downloaded the plugin but have not restarted CCS or forced CCS to install any newly downloaded products, it may not know where to look for the Plugin content.

    To try to get it to identify all the downloaded SDKs/Plugins, either restart CCS or press the "Rediscover" button in the preferences window and then install them. Then try to import the door lock project again.

    Thanks,
    Ben M
  • Hi Ben,

    I can import the project after checking the list of "Installed Products" as your last suggestion. But when I compile the project, I still get an error message.

    Error message: "Please define your personal cloud account token in OTA_VENDOR_TOKEN above"

    I tried to disable OTA by changing the definition "#define OTA(0)" in wifi_doorlock_app.h, but I still get the same error message.

    If I don't need the OTA function now and don't have OTA_VENDOR_TOKEN, how do I disable OTA?

    BR,

    Jack

  • Hi Ben,

    Update status

    I am trying to create a new CCS workspace and import the "wifi_doorlock" project again.

    Changing the setting to

    #define OTA                 (0)  // disable OTA

    #define SENSORS             (0) // disable Sensors

    and I got error message as follow, Please help me check what I missed.

  • Hi Jack,

    By default, the door lock project expects the SimpleLink host driver library project ('simplelink' in list of projects that can be imported from SDK) to exist in the same workspace as the main application. If a compiled version of this library (simplelink.a) is not being linked to the project, that could explain the unresolved symbols.

    Try importing the library and making sure the doorlock application successfully links to it, then build again.

    Best Regards,

    Ben M

  • Hi Ben,

    Thanks for your help.
    I can compile successfully now. But I don't have EVM on hands to test power consumption, so I will give you feedback later.

    BR,
    Jack
  • Hi Ben,

    Sorry for late reply, I can reduce power consumption.

    Thanks again.

    BR,
    Jack