Jump to content
43oh

Energia 15 built from source won't compile MSP432...


Recommended Posts

I built an energia dist from the current source, and it won't compile MSP432 examples, failing to find Arduino.h and/or Energia.h.  It looks like those are in a weird place compared to other boards?

 

 find . -name Arduino.h
./work/Energia.app/Contents/Resources/Java/hardware/c2000/cores/c2000/Arduino.h
./work/Energia.app/Contents/Resources/Java/hardware/cc3200/cores/cc3200/Arduino.h
./work/Energia.app/Contents/Resources/Java/hardware/common/ti/runtime/wiring/msp432/Arduino.h
./work/Energia.app/Contents/Resources/Java/hardware/lm4f/cores/lm4f/Arduino.h
./work/Energia.app/Contents/Resources/Java/hardware/msp430/cores/msp430/Arduino.h
./work/Energia.app/Contents/Resources/Java/hardware/secret/cores/secret/Arduino.h

 

here's the whole build log.  Note that ti/runtime isn't among the search paths specified.  The "core" directories that it does search are devoid of arduin-related include files.

 

/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/tools/common/bin/make --no-print-directory -C /var/folders/jz/5yb8f2hr8xjcpf0059bsfz4r0000gn/T/build6899726881415742530.tmp/ -f /Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/common/Makefile
CCROOT /Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/tools/lm4f
SDKROOT /Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/CC3200SDK_1.0.0.patch
CLOSURE /Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/common
MAINSKETCH Blink.cpp

Blink.ino:20:21: fatal error: Arduino.h: No such file or directory
compilation terminated.  armcl Blink.cpp
/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/tools/lm4f/bin/arm-none-eabi-gcc
-c -Os
@"/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/targets/MSP-EXP432P401R/compiler.opt"
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/libraries/AIR430BoostUSAFCC/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/libraries/AIR430BoostUSAFCC/utility/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/libraries/Adafruit_TMP006/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/libraries/EduBPMKII_Screen/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/libraries/SPI/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/libraries/WiFi/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/libraries/WiFi/utility/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/libraries/Wire/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/targets/MSP-EXP432P401R/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/targets/MSP-EXP432P401R/configPkg/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/targets/MSP-EXP432P401R/src/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/targets/MSP-EXP432P401R/ti/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/cores/msp432/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/cores/msp432/avr/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/cores/msp432/driverlib/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/cores/msp432/inc/
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/cores/msp432/lib/

-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/common
-DF_CPU=48000000L -D__MSP432P401R__ -DTARGET_IS_MSP432P4XX
-Dxdc__nolocalstring=1 -ffunction-sections -fdata-sections -DARDUINO=101
-DENERGIA=14 -D__MSP432P401R__ -mfloat-abi=hard -mfpu=fpv4-sp-d16
-fsingle-precision-constant -fno-exceptions -fno-rtti -I
"/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/tools/lm4f/include"
-I
"/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/common"
-I
"/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/common"
-I/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/hardware/msp432/cores/msp432/inc/CMSIS
Blink.cpp -o Blink.obj Blink.ino:20:21: fatal error: Arduino.h: No such file
or directory compilation terminated.  make: *** [blink.obj] Error 1
/Volumes/Downloads/src/Energia/build/macosx/work/Energia.app/Contents/Resources/Java/tools/common/bin/make
returned 2

 

Link to post
Share on other sites

The Energia repository has a temporary submodule called emt that points to a private repository on a different server. This repository will eventually be merged into the Energia main repository. The files that are "missing" are symbolic links to that repository. Hence if the content of the submodule is missing then the files are missing in the Energia repo. To work around this for now, you could copy the files from the release to the Energia repository. The files to copy are hardware/common/* and hardware/msp432/*

 

I hope to have these files in the main Energia repository later this month.

 

Hope that helps.

Robert

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...