4 years, 10 months ago.

How to increase the size of memory(use malloc)?

FF-LPC546XX is eth.connect() rtn =NSAPI_ERROR_DEVICE_ERROR。

The reason is that Create buffers for each receive BD can not be done.

Malloc(1520Byte) only succeeds once.

How to increase the size of memory(use malloc)?

Add info:

After securing one memory, I checked the memory with malloc. However, there was still a lot of memory. I think this is a bug.

1 Answer

4 years, 10 months ago.

Morioka-san,

I used LPCXpresso54628 (different target board, but same device, RAM and Flash) with mbed-os-example-socket example program without error.

[Result]

Mbed OS Socket example
Mbed OS version: 5.11.5

IP address: 10.128.4.43
Netmask: 255.255.255.0
Gateway: 10.128.4.1
sent 56 [GET / HTTP/1.1]
recv 256 [HTTP/1.1 200 OK]
Done

Can you please let me know how to reproduce the problem?