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.

CCS/CC3220: OTA

Part Number: CC3220

Tool/software: Code Composer Studio

hi friends

i am currently working with CC3220, i am a newbie for TI.

i am working OTA code with drop box, i have a some doubts in this section

1.how can my CC3220 identify the new code is available in dropbox.

2.now i use external trigger for enable OTA Code update.

3.it's work on some minutes after that is automatically exit my OTA updated code. how to run the new OTA update code contoniously.

Sorry for My non grammatical english. 

  • Hi Natesh,

    Have you tried going through our SimpleLink academy to learn about the OTA example? Going through this tutorial will answer your questions.

    Jesu

  • hi jesu,

    already i tried this page but i don't know how to run CC3220  OTA update code Continuously  becoz it's automatically return to my base(OTA Checking main Code)

  • Hi Kannannatesh,

    I'm not sure i understand your problem.

    The trigger for starting the OTA procedure (i.e. looking for new update in the server) is external and is up to you, The example requires user interface (e.g. pressing a button), but you can implement something else such as timer based polling or waiting for a-sync notification (e.g. through MQTT).

    I wasn't able to understand if you ran the OTA successfully for the first time and asking about the OTA triggering with the new image or if you have more fundamental issue with the OTA activation. Please describe exactly what is working and what needs to be solved.

    Br,

    Kobi   

  • hi kobi,

    i will explain detail of My problem

    1. i am working with CC3220 Evaluation Board with Energia Compiler

    2. Now i am  Upload the Code Via OTA through Dropbox it is Working(Download and install) Correctly.

    3.but my Code(downloaded code from Drop box) is working just 5 min after that My CC3220 Return to execute Base code.

    4.then my CC3220 is download my OTA  Code from Drop box when i trigger the external key .

    5.It's run just 5 min after my CC3220 is come back to my Base Code

    Base code (i am upload code through usb cable from my PC. It's have a some condition like a check any bin file is available in my dropbox  when external key is triggered  and install the code).

  • Hi,

    Why are you using the Energia and not the SDK?

    Are you using the OTA library from the SDK?

    After you download and install the new OTA image, once the new image starts running successfully, it should commit  the loaded bundle (before the next reset): see code (form the library) below. 

    int16_t OtaArchive_commit()
    {

    SlFsControl_t FsControl;
    int16_t Status;

    FsControl.IncludeFilters = 0;
    Status = (int16_t)sl_FsCtl(SL_FS_CTL_BUNDLE_COMMIT, 0, NULL ,(uint8_t *)&FsControl, sizeof(SlFsControl_t), NULL, 0 , NULL);
    if( 0 > Status )
    {

    _SlOtaLibTrace(("OtaArchive_Commit: ERROR sl_FsCtl, Status=%d\r\n", Status));

    }
    return Status;

    }

    If you set the /sys/mcubootinfo.bin and create a watchdog timeout  (for 5 minutes?) - the device will automatically reset itself if there was no commit (w/d stop).

    Please refer to the OTA training for more details.

    http://dev.ti.com/tirex/#/?link=Software%2FSimpleLink%20CC32xx%20SDK%2FSimpleLink%20Academy%2FWi-Fi%2FWi-Fi%20OTA

    Br,

    Kobi