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.

CC3200-LAUNCHXL: OTA update

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200, UNIFLASH

Hello. I have a query about OTA update. I am using CC3200 LAUNCHXL and nonos OTA example. When I update my service pack the NWP version is 2.10.0.0.31.1.5.0.2.1.0.3.37 and I want it to get updated to 2.10.0.1.31.1.5.0.2.1.0.3.37. So I made folders name Vid01_Pid00_Ver0000,Vid01_Pid00_Ver0001 and Vid01_Pid00_Ver0101 using dropbox. When I format the device the NWP version is 2.0.7.0.31.0.0.4.1.1.5.3.3. 

In Vid01_Pid00_Ver0001 and Vid01_Pid00_Ver0101 folders I have uploaded the data corresponding to version 01 and 00 respectively and have renamed them f80_sys_mcuimgA.bin. I do not know which file to upload in the third folder and its name format.

 Should it be the servicepack_1.0.1.11-2.10.0.0. bin file or ota_1.0.1.11-2.10.0.0.ucf file or ota_1.0.1.11-2.10.0.0.ucf.signed.bin file. I kept the servicepack_1.0.1.11-2.10.0.0. bin file and named it f80_servicepack. When I press update without programming the service pack, the serial monitor  shows "in progress.. then completed rebooting..". But there is no change in the app version or NWP version. However when I update the service pack the serial monitor ust shows completed and no change.

In Uniflash I have kept the application bootloader bin file in the /sys/mcuimg.bin and otaupdate_nonos.bin file in the /sys/mcuimg1.bin file. I do not know if I should add any other files.

I do not understand where the problem lies. Please help me out.

  • Hi Shlok Ghate,

    I'm not sure what exactly you are trying to do (as you mentioned various NWP versions and MCU images) so will try to address your specific points.

    The service pack should be named "f43_sys_servicepack.ucf". Please refer to the SDK documentation (<SDK-ROOT>/docs/examples/CC3200 Over-The-Air (OTA) Update Application Note.pdf). for more details.

    The current release has an issue with the version numbers since it only references the 4th byte of the NWP version (which is 0 in case of both "2.10.0.0...." and "2.0.7.0..."). however in your case, if you want to update to version  "2.10.0.1....." - you should put this signed binary (renamed as shown above) under the Vid01_Pid00_Ver0000 folder (this will work if you start with "2.10.0.0" or with "2.0.7.0").

    This issue will be handled in the next SDK release, as the folder name will contain the full NWP version (you can change the code in the example's main.c, see in OtaUpdateTask(), under  the OTA_UPDATE_STATE_INIT case).

    "Vid01_Pid00_Ver0001" folder should contain the updated MCU image ("f80_sys_mcuimgA.bin").

    The Uniflash configuration seems ok (this will serve as your factory default application).

    Br,

    Kobi

  • Hey Kobi.
    Thanks a lot for clarifying the issue. But can you tell me what change I need to make in main.c ? Also you mentioned the 2.10.0.1. version of service pack. Is there anything I can do for this version??
    Regards Shlok.
  • Hi Shlok,

    In main.c you can update the following line so it will match the folder with an exact NWP version:

    sprintf((char *)&ucVendorStr[ulVendorStrLen],"%02lu", sDisplayInfo.sNwpVersion.NwpVersion[3]);

    for example you can use the following code instead:

    sprintf((char *)&ucVendorStr[ulVendorStrLen],"_%02lu.%02lu.%02lu.%02lu",
       sDisplayInfo.sNwpVersion.NwpVersion[0],
       sDisplayInfo.sNwpVersion.NwpVersion[1],
       sDisplayInfo.sNwpVersion.NwpVersion[2], 
       sDisplayInfo.sNwpVersion.NwpVersion[3]);

    (so the folder names will look like: "Vid01_Pid33_Ver18_2.7.0.0")

    The latest service pack available is 1.0.1.11-2.10.0.0. I was just answering based on your specific question (you mentioned "2.10.0.1..." as an example for Service Pack update).

    Br,

    Kobi

  • Hi Kobi,

    I changed the main.c code and made changes accordingly in dropbox folder names.

    These are the names of my folders on dropbox and their contents

    1. Vid01_Pid00_Ver00_2.0.7.0 - f00_sys_servicepack.signed.bin and f43_sys_servicepack.ucf files
    2. Vid01_Pid00_Ver00_2.10.0.0 - f80_sys_mcuimgA.bin
    3. Vid01_Pid00_Ver01_2.10.0.0 - empty

    However when I run the application the OTA update status is displayed as "In Progress" and does not change. I tried many possibilities such as updating the service pack and the programming but the serial monitor only shows "In Progress"... I even removed all the files from dropbox, even then the status comes as "In Progress".

    Can you help me out here?

    Best wishes,

    Shlok.

  • Hi Shlok,

    This requires more debug info.

    Please make sure you compile the library without the "NOTERM" compile flag (so we can see the library trace log).

    Also comment out the clear screen command (see below) within the DisplayTask() (in main.c).

    //

    // Clear screen
    //
    //Message("\033[2J\033[H\033[?25l");

     

    Br,

    Kobi

  • Hi Kobi,
    I have commented the clear screen command. But can you tell me how to disable the NOTERM compile flag? And where can I see the library trace file?
    Regards,
    Shlok...
  • Shlok,

    You need to go to your project properties and find the following section labelled "Predefined Symbols". Make sure NOTERM is not in the list at the bottom. I believe TI support is asking for this to be done for the 'ota' project, but maybe you want to make sure all related projects do not have 'NOTERM' defined.

    Regards,

    Josh

  • Thanks Josh,
    NO TERM is not added in the list there.
    But I still have the same problem.
    Also nothing new is being displayed on the serial terminal.
  • Hey Kobi,
    I changed the code in main.c from
    sprintf((char *)&ucVendorStr[ulVendorStrLen],"%02lu", sDisplayInfo.sNwpVersion.NwpVersion[3]);
    to
    sprintf((char *)&ucVendorStr[ulVendorStrLen],"%02lu", sDisplayInfo.sNwpVersion.NwpVersion[1]);. This way the folder name depends on the 2nd Byte of NWP Version.
    On doing so, the system checks for updates, if found the update starts and it gets rebooted and OTA Status comes as completed. But there is no change in the App Version or Service Pack (same as previous problem).
    Also the clear screen command is commented out and # define DEBUG_PRINT is enabled (thought there is nothing new printed on the serial monitor). There is no NOTERM flag added.

    Can you help me out here?
    Regards Shlok...
  • Hi Shlok,

    I'm not sure what do you mean by "there is no change in the App Version or Service Pack".
    Please provide debug (serial terminal) logs.

    Br,
    Kobi
  • Hey Kobi.
    The update works fine now.
    The problem was that I chose the option of Permission Type: Full Dropbox. I created a new app and chose Permission Type: App Folder.
    As soon as I changed this the update works. So you can close this thread.
    Thanks a lot.
    Shlok..