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.

HTTPS requests using LWIP

Other Parts Discussed in Thread: TM4C1294NCPDT, EK-TM4C1294XL

Hi,

I am using TM4C1294NCPDT (Ek-TM4C1294XL) board for development on CCS v6.1.0.00104 and TivaWare_C_Series-2.1.1.71 on Windows 8 64-bit

I am using FreeRTOS demo project and want to send data securely to external server from the board.

I searched on FreeRTOS forum, in it they are using Berkeley Sockets APIs for secure communication which uses TSL/SSL code which is not favorable in Embedded Systems. Is there any way to perform HTTPS GET and POST command using LWIP?

If Yes, can you provide me sample code or guide for how to proceed. If no, and if TSL/SSL is not an issue to use than how to integrate it?

I checked the TI-RTOS code but limitation of TI-RTOS is it do not generate .bin file which is essential for Remote Firmware Upgrade. And also there are other issues I came across (Issues already posted in forum) because of which can not use TI-RTOS as of now.

Thanks,
Bhavesh

  • Hi Bhavesh,

    Due to your interest in the FreeRTOS demo project & LWIP capabilities, I am moving this to the TM4C forum in hopes of a quicker response.

    Regards,
    -- Emmanuel
  • Hello Bhavesh,

    If TI RTOS generates an out file you can convert the same to bin using bin converter utility of CCS. However since you are determined to not use TI RTOS (on account of other issues), you would need to check FreeRTOS forum if they support SW assisted SSL. We have crypto blocks but to be able to use SSL with the crypto blocks you would need to use the correct drivers. We do not develop the drivers in FreeRTOS.

    Regards
    Amit
  • Hi Amit,

    I checked with FreeRTOS forum and not able to get answers weather Drivers are to be developed or no. But meanwhile started first with making simple HTTP calls and if those are successful than will start looking integrating CyaSSL or OpenSSL in to code.

    Can you please provide me steps to generate .bin file for TI-RTOS projects? In case if I am able to sort out other issues than I can start putting efforts in TI-RTOS.

    Thanks,
    Bhavesh

     

  • Hi Bhavesh,

    Sorry I lost track of this post.  

    To generate a .bin file you need only copy the following into the post build steps (Right-click project->Build->Steps tab):

    "${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex" "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"

    Screenshot:

    As you can see in the screenshot, I was able to generate the *.bin.

    Regards,

    -- Emmanuel

  • Thanks Emmanuel,

    It is generating .bin file after putting this post command settings.
    One more query is about Firmware Upgrade, right now I am able to upgrade non-RTOS example via Ethernet and UDP.
    Will same code work for RTOS example? Or some extra settings required.
    I have already raised the same on e2e.ti.com/.../430227
    Can you please look into this?

    Thanks,
    Bhavesh