mbedtls linker errrors

27 Nov 2016

Hello everyone, i'm getting the following linker errors trying to use mbed-tls.

Error: "/tmp/hWetnF", line 120 (column 3): Warning: L6312W: Empty Execution region description for region RW_IRAM1

Error: Undefined symbol mbedtls_net_accept (referred from main.K64F.o).

Error: Undefined symbol mbedtls_net_bind (referred from main.K64F.o).

Error: Undefined symbol mbedtls_net_free (referred from main.K64F.o).

Error: Undefined symbol mbedtls_net_init (referred from main.K64F.o).

Error: Undefined symbol mbedtls_net_recv (referred from main.K64F.o).

Error: Undefined symbol mbedtls_net_send (referred from main.K64F.o).

I'm basically trying to compile the the "ssl_server.c" example with some minor changes from this git:

https://github.com/ARMmbed/mbedtls/blob/development/programs/ssl/ssl_server.c

My code:

http://pastebin.com/UweSNHKM

I really would appreciate any hints or help!

I've tried compiling it with mbed-os 5.3 5.2 5.1 and 5.0 none if them worked :(.

Regards Irakli Edjibia

28 Nov 2016

Hi,

i´ve managed to investigate the error mysef.

Its triggered because mbedtls is a multiplatform module and some of the function used in the mbedtls example code are not usable with the mbed-os. I hope i will figure out how to use mbedtls with mbed os soon.

Regards Irakli Edjibia

31 Dec 2016

Hi, I'm gonna do it by myself. The example of mbed tls client from mbed compiler works fine, but the GitHub version I think it needs some modifications. Still, I have a little doubt about Server version, I don't think it would be compiled easy. I would appreciate if u figure it out and share with us. Thanks