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/CC3200-LAUNCHXL: How to flash the codes on CC3200 using CCS v7?

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

Tool/software: Code Composer Studio

Hi, 

I am the new of CC3200 and CCSv7. Right now, I know how to flash .ucf file using CCS Uniflash but you know .ucf file is packed already. I don't know how to modify it. I think I have to use CCSv7 to modify the codes in .c files or .h files. The problem is that I don't know how to use CCS v7 to flash the modified codes on CC3200. 

Based on some documents online, I think the codes can be flashed on CC3200 when I click Debug in CCS v7. However, I am confused if I need to click Run button to flash after I click Debug button.

Does anyone help me on how to flash the codes on CC3200 using CCS v7?

Thanks. 

  • Hi,

    As your mentioned that .ucf file is packet and contains binary files (of configuration for Uniflash session). From this reason you cannot modify .ucf file by the CCS (you cannot extract C source code from .ucf file). This file is only of Uniflash purpose.

    Inside CC3200 chip is not a flash memory. Flash memory is connected as external chip by SPI interface to CC3200. This flash chip is a non volatile storage for your firmware, webfiles and configuration. Programming of this external flash is done via CC3200 bootloader from Uniflash software. This flash cannot be programmed by by CCS.

    CCS possibilities:
    - compile and debug your code by JTAG or SWD
    - for debug is code uploaded directly into RAM, code is cleared after device reset
    - you can create binary file from your code

    Uniflash:
    - if you need code which persist device reset, you need use Uniflash software
    - it uploads code into serial flash chip
    -e.g. you take bin file generated by CCS and upload it into flash chip memory (file /sys/mcuimg.bin).

    Jan
  • Hi Jan, 

    Thanks for your reply. So I can modify the codes and output it as mcuimg.bin file; then, I can flash bin file on CC3200LP using Uniflash. My understanding is right? 

    Thanks. 

    Yin

  • Hi Yin,

    Yes, that is correct.

    During your development you debug code from CCS using JTAG in RAM. And when you think that functionality of your code is correct you use Uniflash to upload mcuimg.bin into flash for standalone usage/running.

    Jan
  • Hi Jan,

    Thanks a lot. You reply makes me understand this board much better.

    BTW, I am working on CC3200 smartplug project (www.ti.com/.../TIDC-CC3200SMARTPLUG). I downloaded its software package and flahsed .ucf file on CC3200LP, but it cannot connect to AP. I think the reason is that it didn't have the SSID and password. I am looking for a method to add SSID and password to CC3200LP like oob example. If you are familiar with that project or you know how to add SSID and password to CC3200LP, could you help me on this? The link of that thread is e2e.ti.com/.../598638.

    Finally, thank you again for your help.

    Thanks.
    Yin
  • Hi Yin,

    Although I have not experienced with this project, according documentation ( www.ti.com/.../getliterature.tsp ) it looks that for provisioning is used standard Smartconfig. In chapter 2.3.5.1 is written this "The push-button S1 sets the CC3200 device to smartconfig mode. The blue LED will flash at a fast rate when the device enters the smartconfig state." What this means? You need press button S1 and using www.ti.com/.../wifistarter application set password and SSID of your network.

    Jan
  • Hi Jan,

    My problem is that I only have CC3200LP instead of the completed CC3200 smartplug. It means that there is no blue LED and S1 on CC3200LP but there is a green LED (D5) flashing. The worse thing is that Wi-Fi Starter in my cellphone cannot find the device even if I typed SSID and security key.

    This problem also happened in oob example. When I tried to use Wi-Fi Starter APP to find the device by following CC3200 Quick Start Guide (processors.wiki.ti.com/index.php, it never succeed. Hence, I have to use Provisioning AP method for each time.

    Do you know why I cannot use Wi-Fi Starter APP to find CC3200 directly?

    Thanks.
  • Hi Yin,

    Sorry, I am not experienced with this type of issue. But as you wrote at another thread, I really think that can be problem with 2.4GHz na 5GHz together. See: e2e.ti.com/.../2050913 and e2e.ti.com/.../1354023

    Jan
  • Hi Jan,

    Thanks for the links you shared with me. They are helpful.

    Yin