barawn 2 Posted August 23, 2016 Share Posted August 23, 2016 Hi: I've been trying to implement a package for the new Board Manager in Energia 1.6, and I haven't had a ton of success. Additionally, it looks like the "msp430-lg-core" and "msp430-ng-core" cores on http://github.com/energia/ are intended for use with the actual Arduino IDE, which is neat: I'm just wondering if anyone's actually implemented a package for the Board Manager for Energia, or used those cores in Arduino's IDE and implemented new boards? I've tried to implement one here: https://github.com/ara-daq-hw/ara-daq-hw-index The problem at first was that I had to add a 'platform.txt' file, which I did by copying the one from the MSP430 cores here: https://github.com/energia/msp430-lg-core/blob/master/platform.txt But I think I'm fundamentally misunderstanding something regarding how the cores are supposed to be built. All I'm trying to do is just add new board definitions, using the existing MSP430 core - the equivalent of adding additional boards in "boards.txt" and adding new boards in "variants". But right now although the board manager can parse the JSON file, and 'installs' things, the build doesn't work. Specifically, it results in a build line like this: "C:\Users\barawn\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\tools\msp430/bin/msp430-g++" -c -g -O2 -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=msp430fr5739 -DF_CPU=16000000L -DARDUINO=10610 -DENERGIA=10610 -DENERGIA_MSP430_ASPSHEATER_REVF -DENERGIA_ARCH_MSP430 -IC:\Users\barawn\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\tools\msp430/include "-IC:\Users\barawn\AppData\Local\Energia15\packages\ara-daq-hw\hardware\msp430\1.0.0\cores\msp430" "-IC:\Users\barawn\AppData\Local\Energia15\packages\ara-daq-hw\hardware\msp430\1.0.0\variants\aspsheater_fr5739_revf" "C:\Users\barawn\AppData\Local\Temp\build7da8e117849bd59bae14ef56473f8c3d.tmp\sketch\asps-heater.ino.cpp" -o "nul" I think the key there is including the "ara-daq-hw/hardware/msp430/1.0.0/cores/msp430" directory, since the official build does: "C:\Users\barawn\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\tools\msp430/bin/msp430-g++" -c -g -O2 -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=msp430fr5739 -DF_CPU=16000000L -DARDUINO=10610 -DENERGIA=10610 -DENERGIA_MSP-EXP430FR5739LP -DENERGIA_ARCH_MSP430 -IC:\Users\barawn\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\tools\msp430/include "-IC:\Users\barawn\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\cores\msp430" "-IC:\Users\barawn\Downloads\energia-1.6.10E18-windows\energia-1.6.10E18\hardware\energia\msp430\variants\MSP-EXP430FR5739LP" "-IC:\Users\barawn\Documents\Energia\libraries\br3ttb-Arduino-PID-Library-fb095d8" "C:\Users\barawn\AppData\Local\Temp\build7da8e117849bd59bae14ef56473f8c3d.tmp\sketch\asps-heater.ino.cpp" -o "nul" which works. Note that in this case it also auto-identifies the PID library used here too. Soo.. yeah, I'm obviously doing something wrong, but I've got no idea. So has anyone else actually added additional boards to Energia using the Board Manager? Note that *this* board uses an MSP430FR5739 and can actually just use the MSP-EXP430FR5739LP core, but I have other boards which use MSP430 variants not found in Energia normally (specifically the MSP430F2274). I'm just using this one as an example because I can compare the two different builds. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.