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, 9 months ago.
Javascript Failing
Hi, I am trying to get the Javascript demo working on macOS Sierra (10.12.3). I have the mbed cli tools, git, mercurial, GNU ARM toolchain, node.js, gulp installed on my machine.
I have tested the mbed cli, created a project and successfully compiled. This works great.
I am now trying to do the same but with Javascript. I have followed the instructions posted here: https://developer.mbed.org/javascript-on-mbed/
I have done this several times, installed and checked all requirements (python libraries) etc - but it constantly fails ;)
I am posting the error, hoping that someone else has experienced this error and resolved it or if someone can point me in the right direction to attempt my self. Fingers crossed.
Thanks swpspceca
Here is the output from the terminal:
/opt/local/GCC_ARM/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: ../../../out/nucleo_l432kc/mbedos5.elf section `.text' will not fit in region `FLASH' /opt/local/GCC_ARM/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 61236 bytes collect2: error: ld returned 1 exit status [ERROR] /opt/local/GCC_ARM/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: ../../../out/nucleo_l432kc/mbedos5.elf section `.text' will not fit in region `FLASH' /opt/local/GCC_ARM/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 61236 bytes collect2: error: ld returned 1 exit status
[mbed] ERROR: "python" returned error code 1.
[mbed] ERROR: Command "python -u /Users/io/Documents/mbed-js/build/jerryscript/targets/mbedos5/mbed-os/tools/make.py -t GCC_ARM -m nucleo_l432kc source . source ../../ source ../../../source build ../../../out/nucleo_l432kc -j0 -D CONFIG_MEM_HEAP_AREA_SIZE=(1024*16)" in "/Users/io/Documents/mbed-js/build/jerryscript/targets/mbedos5"
-
make[1]: * [all] Error 1
make: * [all] Error 2
events.js:161
throw er; Unhandled 'error' event
^
Error: Command `make BOARD=nucleo_l432kc EXTRAS=` exited with code 2 at ChildProcess.handleSubShellExit (/Users/io/Documents/mbed-js/node_modules/gulp-run/command.js:166:13) at Object.onceWrapper (events.js:291:19) at emitTwo (events.js:106:13) at ChildProcess.emit (events.js:192:7) at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)