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.

RTOS: HTTPS Example does not run without debugging



Tool/software: TI-RTOS

Hi

I was unable to run my application, based on TI RTOS version "tirtos_tivac_2_16_01_14",  without debugging. After much debugging I found that its reason is HTTPS task. I then tested the HTTPs Client example. I have modified the example to get the data on the UART instead of IDE Terminal via semi-hosting. This example shows the same behavior. I can get data from the server in debug mode, but not without debugging. 

I have attached the HTTPs file example. Can you please look at it to see what is needed to run HTTPS Client without debugging. 

Edit: I am using UART 7 on Tiva Launch pad 129XL to get the debug information. 

File: 

  • HTTP client example works properly in debug and without debug mode. Can the reason behind HTTPS Client failure be the way WolfSSL libray is build? As I have to disable semihosting in the IAR to be able to run HTTP Client libray. Is there any flag needed to be used to build wolfssl in a way to enable applicatoin to run without debugging?
  • Fehan,

    There are no special flags required to build WolfSSL for release profile. The WolfSSL library should be compatible with both debug and release build profiles.

    It is unclear to me how the HTTPS task is failing. Are you getting an error code, a NULL handle, some other failure? Please provide more details on this failure. Also, just to be clear, this is a run-time failure, not at linker error. Correct?

    Thanks,
    ~Ramsey

  • Ramsey, 

    When I run the HTTPS example in without debug mode, SNTP() task goes into abort state. I confirmed it by implementing the user define abort function and turning the LED on within it. 

    From it, I first suspected that firmware was not being able to acquire the IP when it is run without the debug mode. However, I then confirmed that IP is indeed acquired as I can ping the firmware at the start of the program. It fails to respond later on when it goes into abort state. 

    If you need further data, kindly let me know as this issue is critical for our development. 

  • Ramsey,

    I have been able to fix this issue. I found that issue was in SNTP () function where it uses the IAR provided function to read the time.
    ts = time(NULL);
    System_printf("Current time: %s\n", ctime(&ts));

    After removing it I am able to run the firmware without debugging.
  • Fehan,

    Good to hear you found a work around. I would like to report this issue, but I need to understand what you mean by "without debugging". Are you talking about a build profile? Are you saying that with IAR, building the httpsget example using a release profile results in the failure you reported?

    Thank you,
    ~Ramsey

  • Ramsey,

    When I say "without debugging" it measn that I downlaoded the program in controler using IAR "Download adn Debug" button and Then I close the Debugging, and Reset the Controler either by pressing RESET Button or removing power.
  • Fehan,

    Got it. I have reported the issue. Thank you for your diligence.

    ~Ramsey