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.

  • Resolved

reflashing OOB to CC3200 LaunchXL & web data link question

Prodigy 40 points

Replies: 5

Views: 2774

Hi, I am compiling and deploying the CC3200 LaunchXL OOB example with TI’s Code Composer Studio (CCS6), but the OOB example doesn’t seem run the same as it did when it was truly “out of the box” where I'd get the dryer, water temp sensor, and sprinkler demos tab. When I run the ‘oob’ example from CCS, it isn’t using files in

“<Installation path>\CC3200SDK\cc3200-sdk\example\out_of_box\html”,

but some other html content that allows basic configuration of device mode and security, etc.  Where is it getting these other web config files if not from my project directory?

For background, I did complete steps to format the serial flash (1MB, secure unchecked) and applied the Service Pack Update 0.5.2 using Uniflash, that completed successfully. I have Rev3.2, and chip is XCC3200HZ.

Is there some other step needed to compile and load all the web content files into flash apart from the project deployment with CCS and the SOP-2 jumper? For example, maybe I need to manually load all these files in the html directory one at a time using the "Add file" button in Uniflash?  If so, what's the filepath need to be for each of these in the flash filesystem?  

I tried Uniflash and using 'oob.bin' for the /sys/mcuimg.bin file, but that didn't change any of the web content files.

Also, as I'm sure we can get this above item sorted, and I'm learning about this TI platform for the first time, is there a tutorial somewhere explaining TI's approach for linking between the web variables, e.g. temperature sensor referenced as “__SL_G_UTP” and whatever TI javascript is fetching them, maybe the com.TI.tokenPoller.js?

 Alex

  • Hi Alex,

    The default web pages are loaded since you have not loaded the OOB pages.

    You do not need to add it one after the other as this work is done for you as part of the SDK.

    All you need to do is open a session and point to out_of_box.ucf (it is under cc3200-sdk\example\out_of_box\html).

    Then, simply invoke the program button on Uniflash and verify all files are flashed (make sure SOP jumper is connected when flashing and don't forget to disconnect it after you are done).

    Please note that the session file assumes you used the default installation directory for the SDK. Otherwise, it would not find the files on your dard drive. If this is the case, after openning the session file, you should see the list of files on the left side. You would need to modify each file for its URL location on your drive.

    Next Uniflash release should have the option for relative path.

    Regards,

    Shlomi

  • In reply to Shlomi Itzhak:

    Hi Alex,

    As Shlomi mentioned, You need to flash web content(c3200-sdk\example\out_of_box\html) using uniflash.

    To understand how to link dynamic variables into webcontent. you can refer section 12.2.4 of below document

    http://www.ti.com/lit/ug/swru368/swru368.pdf

    Regards,

    Kaushal

    ----------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ----------------------------------------------------------------------------------------------------------

  • In reply to Shlomi Itzhak:

    That worked Shlomi, thanks. The "html/out_of_box.ucf" file has all the web content files listed for Uniflash and they go under the folder "/www/". 

    Alex

  • In reply to Shlomi Itzhak:

    Hi Shlomi,

    I have open a session and point to out_of_box.ucf and simply invoke the program button on Uniflash. What I saw is the red led flash 3 times but I did not find any corresponding SSID on my mobile phone.

    What's the problem? I have worked on it for a long time. I really appreciate your help.

    Best regards,

    Guohui

  • In reply to Alexander Fielding:

    Hi Alex, can you share me the steps how you achieved to get OOB project working. Am trying it from very long time, didn't get it yet.
    The main problem am facing is when i open the link -"MySimpleLink.net", i get options such as status, IP config,Profiles, Tools.Am not getting the actual web pages from OOB.ucf.
    Am doing something below to make it work:
    In uniflash under the system files on "/sys/mcuimg.bin" at the right side am selecting the OOB.bin file.
    next am clicking on add file on the operation tab, and a new file path appears on the left under user files, am clicking on it and at the right side in the Name tab am entering the path as "/www/". and below it in the url tab am inputting the link to OOB.ucf file. Finally now am clicking on program button under operation.

    And i have performed all this actions after formatting 16MB and reflashing the service pack.I think i might be going wrong in inputting the OOB.ucf file in a wrong path on the cc3200 memory.Please help me wherever i went wrong.I really need to solve this.Your reply means
    a lot to me.

    Thank you so much...and below is the uniflash LOG

    The uniflash log i got for this is:
    [17:53:55] Begin Program operation.
    [17:53:56] INFO: > Executing Operation: Connect
    [17:53:58] INFO: setting break signal
    [17:53:58] INFO: connection succeeded
    [17:53:58] INFO: getting storage list
    [17:53:59] INFO: > Executing Operation: Init
    [17:53:59] INFO: reading version info
    [17:53:59] INFO: DEVICE CC3200 ES1.32
    [17:53:59] INFO: reading version info
    [17:54:01] INFO: reading version info
    [17:54:02] INFO: > Executing Operation: Program
    [17:54:02] INFO: > File name: /sys/mcuimg.bin, Update: true, Erase: true
    [17:54:02] INFO: > Erase File: /sys/mcuimg.bin
    [17:54:02] INFO: erasing file "/sys/mcuimg.bin"
    [17:54:02] INFO: deleting file "/sys/mcuimg.bin"
    [17:54:03] INFO: erase file completed
    [17:54:03] INFO: > Size of file = 47416
    [17:54:03] INFO: > Update File: /sys/mcuimg.bin
    [17:54:03] INFO: Downloading file "/sys/mcuimg.bin" with size 47416
    [17:54:05] INFO:

    New Token is 0x0
    [17:54:05] INFO: Download complete
    [17:54:05] INFO: Verifying Data...
    [17:54:05] INFO: get file
    [17:54:06] INFO: Done. Reading 47416 bytes
    [17:54:06] INFO:

    Verification OK
    [17:54:07] INFO: > Updated Token value: 0x0
    [17:54:07] INFO: > File name: /cert/ca.pem, Update: false, Erase: false
    [17:54:07] INFO: > File name: /cert/client.pem, Update: false, Erase: false
    [17:54:07] INFO: > File name: /cert/private.key, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/macadd.bin, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/mode.cfg, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/ipcfg.ini, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/ap.cfg, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/devname.cfg, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/mdns.cfg, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/dhcpsrv.cfg, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/httpsrv.cfg, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/pref.net, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/smartconfigkeys.cfg, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/stacfg.ini, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/p2p.cfg, Update: false, Erase: false
    [17:54:07] INFO: > File name: /sys/pmcfg.ini, Update: false, Erase: false
    [17:54:07] INFO: > File name: /www/, Update: true, Erase: true
    [17:54:07] INFO: > Erase File: /www/
    [17:54:07] INFO: erasing file "/www/"
    [17:54:07] INFO: deleting file "/www/"
    [17:54:07] INFO: erase file completed
    [17:54:07] INFO: > Size of file = 102
    [17:54:07] INFO: > Update File: /www/
    [17:54:07] INFO: Downloading file "/www/" with size 102
    [17:54:08] INFO:

    New Token is 0x0
    [17:54:08] INFO: Download complete
    [17:54:08] INFO: Verifying Data...
    [17:54:08] INFO: get file
    [17:54:08] INFO: Done. Reading 102 bytes
    [17:54:08] INFO:

    Verification OK
    [17:54:09] INFO: > Updated Token value: 0x0
    [17:54:09] INFO: > Executing Operation: Disconnect
    [17:54:09] Operation Program returned.

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.