AnsweredAssumed Answered

MCUXpresso command line build in linux fails

Question asked by Jim Fiocca on Oct 25, 2018
Latest reply on Nov 6, 2018 by Jim Fiocca

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

Outcomes