NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

CC3200 File Download Application

From Texas Instruments Wiki
Jump to: navigation, search
Cc31xx cc32xx return home.png
Cc32xx return sample apps.png

Overview and Application Details[edit]

The objective of this sample code is to demonstrate how to connect to a server to download a file using HTTP Client library and save it on the serial flash. This scheme can be used by Application developer to update any file over the network.

This application allow user to:

  • Connect to an access point
  • Connect to "www.ti.com"
  • Download a 12.8 KB file.
  • Save it on serial flash in a temporary file.
  • Verify that the complete file is downloaded.


User can change the server and the requested file by changing the MACRO 'PREFIX_BUFFER', 'POST_BUFFER' and 'HOST_NAME'.
Size of the saved file can be changed by changing the MACRO 'SIZE_40K' but user will require to delete the existing file 'FILE_NAME'.
This application require access point with internet connectivity.

Usage[edit]

  • Open 'main.c' and change 'SSID_NAME', 'SEC_TYPE' and 'PASSKEY' as per your local n/w
  • Build and launch the project, the application tries to connect to AP.
  • Upon connection application tries to connect to the "www.ti.com"
  • Upon successful connection application request for a file from the server and saves it on the serial flash in a file 'FILE_NAME'.
  • On success, below message will be displayed on the terminal
File download 1 0 0.png.png



Limitations/Known Issues[edit]

  • Only downloading file from server sending the data in chunked format is supported. If user needs to download the file from server using other format, user will have to implement the algorithm to handle the response.
  • File download depends on memory available in Device's sFlash. Please delete some memory from sFlash using Uniflash if application fails.

Links[edit]

{{#invoke: Navbox | navbox }} {{#invoke: Navbox | navbox }}

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article CC3200 File Download Application here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article CC3200 File Download Application here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article CC3200 File Download Application here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article CC3200 File Download Application here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article CC3200 File Download Application here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3200 File Download Application here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3200 File Download Application here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article CC3200 File Download Application here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article CC3200 File Download Application here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity