SSL/TLS Libraries for Secure Sockets
Posted: Tue Dec 02, 2014 10:56 am
Hi All,
has anyone successfully integrated something like PolarSSL or CyaSSL into Chibios / Lwip ?
I'm currently trying this with polarSSL, i can get everything to build ok, lwip sockets work ok, but when run it up i get debug panic on "chSemWaitTimeoutS(), #1"
tracing this back through the call stack it is basically trying to open a new connection, here is the call stack from Debugger......
16 port_halt() chcore.c:50 0x08001392
15 chDbgPanic() chdebug.c:274 0x08001b56
14 chSemWaitTimeoutS() chsem.c:254 0x0800292e
13 chMBPostS() chmboxes.c:156 0x0800320e
12 chMBPost() chmboxes.c:126 0x080031c0
11 sys_mbox_post() sys_arch.c:155 0x08008dda
10 tcpip_apimsg() tcpip.c:317 0x08019e04
9 netconn_new_with_proto_and_callback() api_lib.c:78 0x08016a64
8 lwip_socket() sockets.c:969 0x080197ce
7 net_connect() net.c:140 0x0802214c
6 ssl_client() main.c:108 0x08035a2c
5 tcpip_thread() tcpip.c:94 0x08019bda
4 _port_thread_start() chcore_v7m.c:255 0x08001552
3 chSchGoSleepS() chschd.c:128 0x08001e9a
Just wondering if anyone had any ideas ?
has anyone successfully integrated something like PolarSSL or CyaSSL into Chibios / Lwip ?
I'm currently trying this with polarSSL, i can get everything to build ok, lwip sockets work ok, but when run it up i get debug panic on "chSemWaitTimeoutS(), #1"
tracing this back through the call stack it is basically trying to open a new connection, here is the call stack from Debugger......
16 port_halt() chcore.c:50 0x08001392
15 chDbgPanic() chdebug.c:274 0x08001b56
14 chSemWaitTimeoutS() chsem.c:254 0x0800292e
13 chMBPostS() chmboxes.c:156 0x0800320e
12 chMBPost() chmboxes.c:126 0x080031c0
11 sys_mbox_post() sys_arch.c:155 0x08008dda
10 tcpip_apimsg() tcpip.c:317 0x08019e04
9 netconn_new_with_proto_and_callback() api_lib.c:78 0x08016a64
8 lwip_socket() sockets.c:969 0x080197ce
7 net_connect() net.c:140 0x0802214c
6 ssl_client() main.c:108 0x08035a2c
5 tcpip_thread() tcpip.c:94 0x08019bda
4 _port_thread_start() chcore_v7m.c:255 0x08001552
3 chSchGoSleepS() chschd.c:128 0x08001e9a
Just wondering if anyone had any ideas ?