4 years ago.

mbedtls linker error

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

1 Answer

3 years, 12 months ago.

Hi Irakli,

I have answered a similar question in the mbed TLS forum.

The problem you have is that the linker is unable to find the mbed TLS network functions, possibly because the MBEDTLS_NET_C pre-processor symbol is not defined. However, please recall that the network module enabled through MBEDTLS_NET_C only works in Windows and POSIX/Unix systems. Perhaps our mbed OS examples are a good starting point to set up a secure connection using mbed TLS.

Kind regards, Andres AG