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/TM4C1294NCPDT: tm4c1294NCPD

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: CC3100, CC3100SDK, MSP430F5529

Tool/software: Code Composer Studio

Hi

I can not find any example for running in CCS (V8) :

- FreeRTOS

- CC3100 board

- TM4C1294 lunchpad board

I did not succeed to compile the MQTT example in above configuration

Where I can find documents that explain how to run the examples under CC3100 SDK ?

  • Hi,

    From the CC3100 SDK import "getting_started_with_wlan_station" from "C:\ti\CC3100SDK_1.2.0\cc3100-sdk\platform\tiva-c-connected-launchpad\example_project_ccs\getting_started_with_wlan_station". Then port the MQTT code files from "C:\ti\CC3100SDK_1.2.0\cc3100-sdk\examples\mqtt_client". If you encounter any problem doing this ask help at Simplelink WiFi Forum.

    Another way is using the CC3100_http_server example program at Tivaware and then modify it to support MQTT. There is mqtt code library support at "C:\ti\TivaWare_C_Series-2.1.3.156\cc3100-sdk\netapps\mqtt"

    -kel
  • Had you noted that user stated his use of, 'FreeRTOS?'     The detail you've provided is excellent - but for the inclusion of (that) detail...

    Not all clients - always - seek to 'Lock themselves IN - to One and only One Vendor - forever!'

  • Markel Robregado said:
    From the CC3100 SDK import "getting_started_with_wlan_station" from "C:\ti\CC3100SDK_1.2.0\cc3100-sdk\platform\tiva-c-connected-launchpad\example_project_ccs\getting_started_with_wlan_station". Then port the MQTT code files from "C:\ti\CC3100SDK_1.2.0\cc3100-sdk\examples\mqtt_client".

    cb1, I will just add more details to my last reply.

    The main.c code file from "C:\ti\CC3100SDK_1.2.0\cc3100-sdk\examples\mqtt_client" has the FreeRTOS.h include, see below.

    /* Standard includes */
    #include <stdlib.h>
    #include "simplelink.h"
    #include "sl_common.h"
    
    /* Free-RTOS includes */
    #include "FreeRTOS.h"
    #include "task.h"
    #include "semphr.h"
    #include "portmacro.h"
    #include "osi.h"
    
    #include <stdio.h>
    #include <stdlib.h>
    #include "cli_uart.h"
    
    #include "sl_mqtt_client.h"
    #include "mqtt_config.h"

    You need to Install the latest FreeRTOS version at C:\. Then at CCS Project set include and file search path for FreeRTOS.h which is located at "C:\FreeRTOSv9.0.0\FreeRTOS\Source\include".

    The latest CC3100 SDK 1.20 was released 2 years ago. So, I am not sure if it will readily work with the latest version of FreeRTOSv9.0.0 and Code Composer Studio v8. Any problem regarding this ask at SimpleLink WiFi Forum.

    -kel

  • Markel - "IF and WHEN" (reasonableness returns) and *** LIKE *** emerges from the (So mistaken ashes) - I'd "Click it" multiple times - in your honor!       Mucho excellenté!      Mercî...

  • Hi Markel,

    Thanks for offering this feedback, I think everything you said is on the right track except one small comment.

    Markel Robregado said:
    The latest CC3100 SDK 1.20 was released 2 years ago.

    The latest SDK is actually 1.3 which was released in March: http://www.ti.com/tool/cc3100sdk

    I'll also add in for Micha's knowledge: as far as an immediate working example, the MSP430F5529 + CC3100 is the only 'ready made' example that has FreeRTOS + mqtt_client on CCSv8. So to get it working on TM4C will need the ports that Markel highlighted.

  • Hi

    Thanks for the help.

    I have working stable project of:

    TM4C1294 + CC3100 + freertos.

    I will publish it in Github soon.

  • Micha Nisani said:
    I have working stable project

    May it be asked - how you have (properly) determined the project to be 'stable' - in so (very) short a time-frame?      Have all possible - challenging conditions - been first identified - and then properly exercised - and this over a (reasonable) test time-frame?

    It would be useful to others - if some 'standard' test for such an application exists - and which includes a, 'Full/Proper' exercise of 'ALL DEVICES' (w/in your project's (entire) CHAIN) - operating at/near their 'max' - for a test period deemed adequate...     Your Project's 'CHAIN' - proves, 'ONLY as Strong' as its 'WEAKEST LINK' - and that discovery (usually) is NOT - so quickly - uncovered...

    Do note - the fact that you've, 'made this effort' - and shared - is most commendable, thank you.      My objective in this writing - is to 'best insure' - that your project (really) IS Stable - so that you (and others) gain ALL of the, 'hoped for' benefits...

  • 1. I publish the project, so anyone can test it

    2. I used TI projects , and just combined the projects to one program

    3. I run test for 24 hours , 0 packet lost, so for me its stable

    4. I agree that TI should publish stanbdard test protocol.

    5. Ti must improve the examples, Trying to work with then take hours of integration. I did not find one document that explane "how" in simple description.

    thanks

  • Thank you - your clear & quick response - along w/your project's sharing - is appreciated.  

    That said - as expected (due to the 'rapid-fire' award of, 'Project as Stable') your 'promotion' to, "Stable" proves (highly) non-standard.   

    Micha Nisani said:
    I publish the project, so anyone can test it

    In NO WAY - does the above suggest that the project IS stable.

    Micha Nisani said:
    I used vendor projects , and just combined the projects to one program

    Even should the vendor projects prove individually 'stable' - their 'combination' may create issues.      (This due to the "weakest link in the chain" effect - amplified by the 'combination.')

    Micha Nisani said:
    I run test for 24 hours , 0 packet lost, so for me its stable

    Again - how & why is this (un-described) test - and its relatively short test duration - adequate to promote as, "Stable?"     Somehow - any single individual's, 'judgment as stable' - which departs from normal/customary such measures - proves not, 'highly convincing.'

    It is suspected that 'stable' has (yet) to be proven - and that you found this, 'Combination of Projects' - suitable and adequate - for your current needs.    (Yet not 'stable' - in any classic or rigorous sense.)

  • I Agree

    thanks for the importent remarks.

  • Thank you - and do note - others (even small firms) may encounter your thread - and "Seize upon the (usual) definition of Stable!"      And - even though - especially though -  your unique combination (appears) to 'Work for You'  (thus far)  - it cannot rise to, "STABLE."

    I offer that caution in the 'defense of innocent others' - who may NOT YET have the many battle-scars - of we - LONG in the trenches!