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/TM4C123GH6PM: TM4C123G

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: CC3200, ENERGIA

Tool/software: Code Composer Studio

Hi Folks,

I am trying to connect my TM4C123g to a database on the cloud. I have acquired a CC3200 for this purpose.

Now I know that connection to a database is straight forward using the energia libraries but my code is written in C on CCS and I would like to continue using CCS (and C) for consistency and to have a clearer explication when presenting my work.

Is it possible to write the code to access the cloud on energia, and then use the CCS import sketch functionality to combine the code written on energia with the one that I already have (i.e., 1. is it possible? 2. do I have to use an interface between the code written on CCS and the code written on energia or a simple function call will work?)

PS: I found a piece of code written with C on an Edex online course for internet connection, but it did not -or I was not able to modify it correctly to- support enterprise internet connection. Also if there is a fix to add this functionality (connect to an entreprise internet connection) this will stop me from trying to merger energia and ccs

Also is there a particular database framework that is more friendly with TM4C chips?

Thanks, 

Marwan Maalouf

  • I forgot to mention: I have the latest version of energia and CCSv7
  • Marwan,

    You can import an existing Energia sketch into CCS.  Project -> Import Energia Sketch.   This will create a CCS Project that builds the Energia sketch.  As far as combining your own code this is possible.  The Energia 430oh forum may have a better idea on the best approach.  The Energia project that you have imported is essentially C++.  So if you have your own C code it is a matter of integrating C and C++.  Depending on which is going to be the main application the approach will be different.

    Attached is an example project.  I started with an Energia example.  I then added a C header and source file.  I call a function in the source file from my Energia sketch.

    You can import this project into your CCS workspace by going to Project -> Import CCS Project.  Select Archive.  Point to this file.

    EnergiaC.zip

    Regards,

    John