mobizt / ESP-Mail-Client

The comprehensive Arduino Email Client Library to send and read Email for Arduino devices. The library also supports other network shields or modules e.g., Wi-Fi, Ethernet, and GSM/4G modules.
https://mobizt.github.io/ESP-Mail-Client/
MIT License
200 stars 58 forks source link

EmailClient crashes combining IMAP as well as SMPT libraries #347

Closed pberna67 closed 4 months ago

pberna67 commented 4 months ago

Dear mobizt

I've already opened such Case some months ago, but for strange reason it has been removed, even from the closed case. You have already solved the problem related to the memory model (the default is not correct), but unfortunately the Case has been cancelled.

Can you please remind me which memory model must be used to avoid the crashing problem combing both IMAP as well as SMPT libs using NINA-W101 (ESP32 with 2Mbyte flash) see the below memory options.

Thanks

image

mobizt commented 4 months ago

I delete my first reply because it is not relevant based on your provided information which is not clear.

You are using U-blox evaluation kit (don't say only u-blox module which you have to design the board to use it) which in the u-blox module contains the ESP32 chip and it does not have PSRAM connected inside the module then you can't choose the PSRAM from IDE option.

That is why no PSRAM option when you choose the board u-blox.

If your board is immediately crashed after boot, I guess it is from you have chosen PSRAM option in board ESP32 Dev Module

If the crash occurred during running (runtime error), the memory allocation or memory leak may be the cause. In this case, you have to debug your code and monitor your device free heap.