Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ram not enough for SSL #27

Open
skwijeratne opened this issue Mar 14, 2017 · 3 comments
Open

Ram not enough for SSL #27

skwijeratne opened this issue Mar 14, 2017 · 3 comments

Comments

@skwijeratne
Copy link

When I compile the http client with the SSL calls, I run out of iram, but if I remove all the espconn_secure_XXXXX calls then I am able to compile on ESP8266 project. Am I doing something wrong? Is the client able to fit in iram even with SSL?

Your response would be greatly appreciated.

Thanks
Sanjaya

@flannelhead
Copy link

According to Espressif's SSL user manual, using SSL requires quite a large amount of RAM. Is your program already using a lot of RAM?

If you have e.g. large string literals, you could try moving them to the flash memory by using the ICACHE_RODATA_ATTR as described in the FAQ. Also, move your own functions (except probably interrupt handlers and other critical ones) to the flash by using the ICACHE_FLASH_ATTR.

@igagis
Copy link

igagis commented Apr 23, 2019

I found that this httpclient uses strlen instead of os_strlen and also own implementation of atoi could save some bytes.

@igagis
Copy link

igagis commented Apr 25, 2019

One can also link against -lcirom instead of -lc, it puts all stdlib functions to irom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants