Skip to main content
Visitor II
July 31, 2020
Question

x-cube AWS OTA fails (Solved)

  • July 31, 2020
  • 2 replies
  • 714 views

Hello geeks....

I'm using x-cube aws sdk with P-L496G-CELLONE development board

SDK version is 1.4.0 having aws version 3.0.1

I can successful connect with the my MQTT aws server

Now the problem is, when i try to do OTA then, out of 5 attempts, 4 attempts fails

Every time I'm getting same errors of handshaking(-0x2700)

I have all default settings in mbedtls_config.h

I'm unable to set the debug_level to 4 due to the limitations of the SRAM in mbedTLS

Here is the error logs

0693W000003Bs3lQAC.png

All suggestions and comments welcome

Thanks

    This topic has been closed for replies.

    2 replies

    ST Employee
    August 3, 2020

    Hi,

    In order to diagnose the "​The certificate validity starts in the future" error, the first thing is to verify that the date of the Real Time Clock of the MCU is initialized properly.

    In the demo application, this init is performed by HAL_RTC_SetDate(). The RTC is then used by mbedTLS through the time() function.

    The second point to check is the validity period of the server certificate, for instance thanks to a web browser (https://support.mozilla.org/en-US/kb/secure-website-certificate).

    - grd

    Visitor II
    August 4, 2020

    Hi...

    issue has been resolve

    That is might be the selection of wrong editor to open the AWS credentials

    Notped ++ helps a lot

    Thanks