Closed iwaita2ya closed 5 years ago
Hi @iwaita2ya! Indeed, it looks like you are out of RAM. Are you able to compile your project using mbed-cli
tool? You can try to use an older version of the platform (3.5.0 with mbed 5.10.1):
[lpc1114fn28]
platform = nxplpc@3.5.0
framework = mbed
board = lpc1114fn28
Hi @valeros ,
I confirmed now the project can be compiled successfully with platformio.ini setting you provided. Thank you for providing useful info. I will keep in mind when I work with these boards.
JFYI, current mbed-cli OS2 library has issue (mbed.h and some files are missing) and I needed to specify older mbed-cli revision for compiling this example project with mbed-cli.
This mbed-cli OS2 library issue has been raised at: https://github.com/ARMmbed/mbed-cli/issues/805#issuecomment-465017205
iwait@galc2:~/Projects/mbed/mbed-blink-cli$ mbed compile -m lpc1114 -t gcc_arm
[Error] @,: Compiler version mismatch: Have 8.2.1; expected version >= 6.0.0 and < 7.0.0
Building project mbed-blink-cli (LPC1114, GCC_ARM)
Scan: mbed-blink-cli
Compile [100.0%]: main.cpp
[Fatal Error] main.cpp@1,10: mbed.h: No such file or directory
[ERROR] ./src/main.cpp:1:10: fatal error: mbed.h: No such file or directory
#include "mbed.h"
^~~~~~~~
compilation terminated.
[mbed] ERROR: "/home/iwait/.pyenv/versions/2.7.14/bin/python2.7" returned error code 1.
[mbed] ERROR: Command "/home/iwait/.pyenv/versions/2.7.14/bin/python2.7 -u /home/iwait/Projects/mbed/mbed-blink-cli/.temp/tools/make.py -t gcc_arm -m lpc1114 --source . --build ./BUILD/lpc1114/gcc_arm" in "/home/iwait/Projects/mbed/mbed-blink-cli"
Probably it's not related to my issue here, but would like to share with you. :-)
Again, Thank you for your kind support and have a nice day!
This issue occurs after I updated platformio-core up-to date. It seems any nxplpc boards that has few RAM (4KB) occurs this issue. (In fact, any program I wrote for lpc1114fn28 generates same error message below)
Below is my current platform versions
If possible, please guide me how to downgrade these frameworks above to avoid this issue. I'm happy to test & confirm any idea/solution if someone provides me. :-)