7 years, 4 months ago.

I want to use TLS / SSL on LPC1768 mbed

I face a problem on using TLS / SSL with LPC1768 Ethernet.

I import the following sample program but I get an error "Operator new out of memory". https://developer.mbed.org/teams/sandbox/code/http-example/

I guess the it is tested on K64F with Ethernet and NUCLEO_F411RE with ESP8266 only. My used series is not supported? What gives me this problems?

I'm looking forward to your answer. Thank you very much.

LPC1768 only has 32K of RAM available for user space application. I don't think it's enough for TLS handshake...

posted by Jan Jongboom 29 Aug 2017

Thank you very much for your reply.

posted by Akira Kashihara 11 Sep 2017

1 Answer

7 years, 2 months ago.

The error message tells everything: insufficient memory to use TLS.

I don't know the details of the MCU and how you use TLS but I suspect that public key cryptography in a TLS handshake causes the problem. Public key cryptography such as RSA are heavy for MCUs.

TLS-PSK (RFC4279) solves the problem but it would be troublesome. I recommend to use ESP32.

Accepted Answer

Thank you very much for your answer. I understood. I use another modules to connect server on TLS/SLL.

posted by Akira Kashihara 11 Sep 2017