Ubuntu 16.04 64-bit.
MCUXpresso 10.2.1_795
Building a project with MCUXpresso via the command line.
It successfully builds the target, then has some problem saving the workspace (java error) and doesn't go on to the next target.
/usr/local/mcuxpressoide-10.2.1_795/ide/mcuxpressoide -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild --launcher.suppressErrors -data /home/jlf/git/my_target -cleanBuild StandAlone_Audio_NXH/Release
09:29:06 **** Clean-only build of configuration Release for project StandAlone_Audio_NXH ****
...
Building target: StandAlone_Audio_NXH.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"/home/jlf/git/my_target/nxh2281/libs/chip/Release" -L"/home/jlf/git/my_target/nxh2281/libs/chip/lib" -Xlinker -Map="StandAlone_Audio_NXH.map" -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "NXH2280StandAloneAudio_Release.ld" -o "StandAlone_Audio_NXH.axf" ./src/phAudioMgr/phAudioMgr.o ./src/phAudioMgr/phAudioMgr_UseCaseSpecific.o ./src/comps/delayLine.o ./src/comps/nxh_assert.o ./src/comps/procedures.o ./src/comps/serial.o ./src/common/WM8750.o ./src/common/defined_templates.o ./src/common/device_id.o ./src/common/tools.o ./src/DA7212.o ./src/cr_startup_nxh2281.o ./src/custom.o ./src/external_IC_helper.o ./src/firmwareUpdate.o ./src/max9867.o ./src/phStandAloneAudioApp.o ./src/str.o ./src/tif.o ./src/time.o -lchip -lNXH2281
Finished building target: StandAlone_Audio_NXH.axf
make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size "StandAlone_Audio_NXH.axf" ; arm-none-eabi-objcopy -v --gap-fill 0 -O binary "StandAlone_Audio_NXH.axf" "StandAlone_Audio_NXH.bin" ; arm-none-eabi-objcopy -v --gap-fill 0 -O ihex "StandAlone_Audio_NXH.axf" "StandAlone_Audio_NXH.i32" ; rm -f "StandAlone_Audio_NXH.i32.eep" ; rm -f "StandAlone_Audio_NXH.eep" ; rm -f "StandAlone_Audio_NXH.eep.h" ; "../../../libs/chip/tools/ToEep" "StandAlone_Audio_NXH.i32" ; mv "StandAlone_Audio_NXH.i32.eep" "StandAlone_Audio_NXH.eep" ; "../../../libs/chip/tools/cth" "StandAlone_Audio_NXH.eep"
text data bss dec hex filename
15416 2228 2240 19884 4dac StandAlone_Audio_NXH.axf
copy from `StandAlone_Audio_NXH.axf' [elf32-littlearm] to `StandAlone_Audio_NXH.bin' [binary]
copy from `StandAlone_Audio_NXH.axf' [elf32-littlearm] to `StandAlone_Audio_NXH.i32' [ihex]
Generated: StandAlone_Audio_NXH.i32.eep
make[1]: Leaving directory '/home/jlf/git/my_target/nxh2281/apps/StandAlone_Audio/Release'
09:29:09 Build Finished (took 1s.371ms)
Saving workspace.
Mcuxpressoide:
JVM terminated. Exit code=1
/usr/local/mcuxpressoide-10.2.1_795/ide/jre/bin/java
-Dosgi.requiredJavaVersion=1.8
-Xms128m
-Xmx1024m
-Djava.net.useSystemProxies=true
-jar /usr/local/mcuxpressoide-10.2.1_795/ide//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-os linux
-ws gtk
-arch x86_64
-launcher /usr/local/mcuxpressoide-10.2.1_795/ide/mcuxpressoide
-name Mcuxpressoide
--launcher.library /usr/local/mcuxpressoide-10.2.1_795/ide//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834/eclipse_1630.so
-startup /usr/local/mcuxpressoide-10.2.1_795/ide//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.overrideVmargs
-exitdata 730010
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-data /home/jlf/git/maxwell/indesign_jlf_dev/2648-nfmi_audio
-cleanBuild StandAlone_Audio_NXH/Release
-vm /usr/local/mcuxpressoide-10.2.1_795/ide/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms128m
-Xmx1024m
-Djava.net.useSystemProxies=true
-jar /usr/local/mcuxpressoide-10.2.1_795/ide//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
Makefile:146: recipe for target 'ear_nxh' failed
make: *** [ear_nxh] Error 1
hi! I'm seeing the same error. Did you manage to solve it?
I' have tested with mcuxpresso 11.5.1 and 11.6.0, in my Ubuntu 18 machine. with the same result. the compilation is finishing succesfully, but I get this java error:
12:41:33 Build Finished. 0 errors, 35 warnings. (took 10s.7ms)
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Mcuxpressoide:
JVM terminated. Exit code=1
/usr/local/mcuxpressoide-11.6.0_8187/ide//jre/bin/java
-Dosgi.requiredJavaVersion=11
-Xms256m
-Xmx3072m
-Djava.net.useSystemProxies=true
-Dnashorn.args=--no-deprecation-warning --language=es6
-jar /usr/local/mcuxpressoide-11.6.0_8187/ide//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
-os linux
-ws gtk
-arch x86_64
-launcher /usr/local/mcuxpressoide-11.6.0_8187/ide/mcuxpressoide
-name Mcuxpressoide
--launcher.library /usr/local/mcuxpressoide-11.6.0_8187/ide//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.2.400.v20211117-0650/eclipse_11600.so
-startup /usr/local/mcuxpressoide-11.6.0_8187/ide//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
--launcher.overrideVmargs
-exitdata 8
-importAll /var/lib/jenkins/workspace/M_develop/build_script/../main_application
-data /var/lib/jenkins/workspace/M_develop/build_script/workspace_mcuxpresso
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-cleanBuild quasar_ul_main_board/Debug
-vm /usr/local/mcuxpressoide-11.6.0_8187/ide//jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=11
-Xms256m
-Xmx3072m
-Djava.net.useSystemProxies=true
-Dnashorn.args=--no-deprecation-warning --language=es6
-jar /usr/local/mcuxpressoide-11.6.0_8187/ide//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
any idea @Carlos_Mendoza ?
Thanks
EDIT: with mcuxpresso 11.4.1 this error doesn't appear.
Hi Jim,
Your command is correct, the problem seems to be related with java, could you please make sure that you have enough free memory for java to launch? It will require 128MB free, you can verify it before executing the build command.
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
Thanks Carlos,
It looks like I have over 14GB free:
free
total used free shared buff/cache available
Mem: 16299148 398148 14478876 49616 1422124 15493184
Swap: 1000444 0 1000444
Thanks,
Jim