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.

TM4C1294KCPDT: Socket implementation on TIVA C

Part Number: TM4C1294KCPDT


Hi,

I'm working on a prject in which I need to need to make a https connection tp a host and I'm using tiva c.

Is there any example of socket implementation for non RTOS project? Or any idea how to implement it?

Thank you.

Regards,

Deepak Rai

  • HI,  

      Please note that to use the socket based API you must have the OS. The TivaWare library has the LwIP port to the TM4C129. However, the only available examples are based on LwIP Raw API and they are non-OS based. In addition, the only server example we have is http, not https. You will need to look for the TLS security stack on top of the TCP/IP working in an OS environment to create a https. PolarSSL from https://tls.mbed.org/ and wolfSSL are both open-source TLS library that you can check out.  

      If you use TI-RTOS which includes the NDK TCP/IP stack, there is HTTPS examples for you to reference. In CCS, open the 'Resource Explorer Classic' and look under Tiva TM4C1294XL there is a HTTPS client GET example. 

  • Hi Charles,

    I understand your point. I'm trying to implement mbedSSL on tiva c. I did it in HTTPS Client code with you just suggested and it has RTOS and I used socket APIs. 

    The send and receive functions use socket APIs. The project that I'm working on right now is non RTOS and I'm trying to add mbedTLS.

    Is there any way to add TLS security stack in nonOS environment?

    Regards,

    Deepak

  • No, that is not possible as far as I know. You must have OS to use the LwIP socket API if LwIP is the TCP/IP stack you are using. Bear in mind that LwIP is the only stack we have port to the Tiva. Even the NDK from TI is supported through the TI-RTOS. 

    Not sure why you are rejecting my answer for something that is not possible. You should consult with wolfSSL or mbed to see if their TLS can be added to your stack on in an non-OS environment. We are supporting the TM4C MCU and we will be glad to answer MCU hardware questions you have. We can't understand every third party software. Please understand what we are capable of. Ultimately, it is these 3rd party tool vendors with the knowledge to answer their product questions, not in this forum.