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 ?
SSL/TLS Libraries for Secure Sockets
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: SSL/TLS Libraries for Secure Sockets
Hi,
That assertion means that the semaphore counter is not congruent with the queue status, strange.
I can think of two reasons for this:
1) The mailbox structure containing the semaphores is not initialized.
2) The structure get corrupted for some reason.
Is the state checker enabled too?
Giovanni
That assertion means that the semaphore counter is not congruent with the queue status, strange.
I can think of two reasons for this:
1) The mailbox structure containing the semaphores is not initialized.
2) The structure get corrupted for some reason.
Is the state checker enabled too?
Giovanni
Re: SSL/TLS Libraries for Secure Sockets
lot of this issues where down to thread stacks, the debug out for this uses snprintf and also the are some quite large vars that are declared on the stack thus this caused alot of issues......
So now i've nearly got it working....... just got to keep plodding along
So now i've nearly got it working....... just got to keep plodding along