1 (edited by junaid4118 2018-01-04 09:52:05)

Topic: Can wolfssl ported on bare metal lwip on NonOS without using Heap?

I'am trying to port wolfssl on lwip with NonOS environment. I didn't have Heap memory. I'm not using socket API of lwip, i've made a wrapper for lwip.

I'm trying to use "WOLFSSL_USER_IO" for making it work with lwip but how i can manage heap problem ?

Share

Re: Can wolfssl ported on bare metal lwip on NonOS without using Heap?

Hi junaid4118,

There is also an open pull request that may help with using native LWIP api located here https://github.com/wolfSSL/wolfssl/pull/599. For making wolfSSL work with no heap there is a couple of solutions possible; one is to write a custom XMALLOC and XFREE and handle cases where wolfSSL would use a malloc or free, the other is to use --enable-staticmemory (macro of WOLFSSL_STATIC_MEMORY) when configuring wolfSSL. More information on static memory feature can be found here https://www.wolfssl.com/docs/wolfssl-ma … location/.

Regards,
Jacob

Share