Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 8 months ago.
IDW01M1_Cloud_IBM "Operator new[] out of memory" ERROR on IDW01M1+STM32L073
Hi,
the IDW01M1_Cloud_IBM example project is compiling without errors, but I'm getting the "Operator new[] out of memory" error in the serial terminal. I think it's related to dynamic memory allocation (malloc), but the Nucleo-STM32L073 is mentioned as compatible with this example project. Can someone help me? There is some known RAM requirements using these libraries? Thanks in advance.
Stefano
Question relating to:
1 Answer
7 years, 8 months ago.
Ciao Stefano,
in fact footprint and RAM size used by the full application are too big for Nucleo-L073RZ.
If NFC is not strictly needed and you want to stick with L073RZ, I would suggest to remove the part related to X-NUCLEO-NFC01A1 expansion board. This can be achieved by commenting out X_NUCLEO_NFC01A1_PRESENT macro in main.cpp and removing both X_NUCLEO_NFC01A1 and NDefLib libraries from the program.
I just tried with online compiler and the generated binary works on my side using Nucleo-L073RZ.
Hope this helps.
Regards,
Nicola