Giter Club home page Giter Club logo

hello-tlssocket's People

Watchers

 avatar  avatar

Forkers

seppotakalo

hello-tlssocket's Issues

Mutex Lock Fails or TLS Handshake Never Completes

Hello,
Thanks for this sample code. I tried compiling and running it on my STM32 target and out of the box, I get a Mutex Lock Failed assertion. When I increased the "events.shared-stacksize" to 8192, the program seems to hang on "Starting TLS handshake with os.mbed.com".

I then set "tls-socket.debug-level" to 2 so that we get more information in the trace logs. That log file is attached. Any idea what could be going on? Let me know if you need further info.

Compiler : GCC_ARM version 7.3.1
Target : NUCLEO_F767ZI

Out-of-the-Box Log 1 :

_"HelloTSLSocket, HTTPS example of TLSSocket
Connecting to network
Synchronizing time
Time set.
[INFO][TLSW]: mbedtls_ssl_config_defaults()
[INFO][TLSW]: mbedtls_ssl_conf_ca_chain()
[INFO][TLSW]: mbedtls_ssl_conf_rng()
[INFO][TLSW]: mbedtls_ssl_conf_authmode()
[INFO][TLSW]: mbedtls_ssl_setup()
[INFO][TLSW]: Starting TLS handshak

++ MbedOS Error Info ++
Error Status: 0x80020115 Code: 277 Module: 2
Error Message: Mutex lock failed
Location: 0x802AE0B
Error Value: 0xFFFFFFFC
Current Thread: Id: 0x2000F014 Entry: 0x802B23B StackSize: 0x1000 StackMem: 0x2000F058 SP: 0x2000FEB0
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80020115
-- MbedOS Error Info --"_

Increased Stack Size Log 2 :

HelloTSLSocket, HTTPS example of TLSSocket
Connecting to network
Synchronizing time
Time set.
[INFO][TLSW]: mbedtls_ssl_config_defaults()
[INFO][TLSW]: mbedtls_ssl_conf_ca_chain()
[INFO][TLSW]: mbedtls_ssl_conf_rng()
[INFO][TLSW]: mbedtls_ssl_conf_authmode()
[INFO][TLSW]: mbedtls_ssl_setup()
[INFO][TLSW]: Starting TLS handshake with os.mbed.com

https://github.com/nuertey/RandomArtifacts/blob/master/TLSSocket_Log3.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.