Jump to content
Sign in to follow this  
estratos

JSON file for installation on the Arduino IDE?

Recommended Posts

Energia 18 is finally supporting the new boards and libraries manager provided by the Arduino IDE. My question is: is there a URL pointing to the necessary JSON file to install the Energia cores on the Arduino IDE? Once Energia is ready to comply with the 1.6.x IDE architecture introduced by Arduino I don't see any reason to limit the use of the Energia cores and libraries to a single IDE.

 

Thanks in advance for your responses.

 

Share this post


Link to post
Share on other sites

I use arduino ide with latest cores for msp430/tivac/cc3200

This is my folders structure (inside arduino instalation directory):

Schowek03.jpg

 

so, inside hardware folder I add:

1. energia directory and inside this dir I have git clones my fav cores (msp430/tivac/cc3200),

2. into existing directory tools I copy from new energia ide: 

  - arm-none-eabi-gcc

  - cc3200prog

  - DSLite

  - msp430

 

I did a little fix inside platform.txt files for all cores...for e.g (msp430) - sorry but only hardcoded paths:

- new line after version=x.x.x and before # AVR compile variables

runtime.tools.msp430-gcc.path=C:/PROGRAMY/Arduino/hardware/tools/msp430

- replace:

from:

tools.dslite.path={runtime.tools.dslite.path}

to:

tools.dslite.path=C:/PROGRAMY/Arduino/hardware/tools/DSLite

- replace:

from:

tools.mspdebug.path={runtime.tools.mspdebug.path}

to:

tools.mspdebug.path=C:/PROGRAMY/Arduino/hardware/tools/msp430

 

Share this post


Link to post
Share on other sites

I tend to stay away from the Arduino distrubution directory. I created a directory in my Arduino sketch directory called "hardware" to store alternate cores. In my case on linux it ends up being ${HOME}/Arduino/hardware

 

$ ls ${HOME}/Arduino/hardware
alt_ti  Arduino_STM32  grumpy
$ ls /home/kimballr/Arduino/hardware/alt_ti/
tivac
$ ls /home/kimballr/Arduino/hardware/alt_ti/tivac
boards.txt  extras     platform.txt     README.md  tools
cores       libraries  programmers.txt  system     variants

 

I didn't have to change anything in platform.txt for this to work.

 

The directory above shows my hacked version of the tivac-core: https://github.com/RickKimball/tivac-core

 

But you probably want to use the real one: https://github.com/energia/tivac-core.git

$ mkdir /home/kimballr/Arduino/hardware/ti
$ cd /home/kimballr/Arduino/hardware/ti
$ git clone https://github.com/energia/tivac-core.git tivac
Cloning into 'tivac'...
remote: Counting objects: 677, done.
remote: Total 677 (delta 0), reused 0 (delta 0), pack-reused 676
Receiving objects: 100% (677/677), 2.84 MiB | 0 bytes/s, done.
Resolving deltas: 100% (128/128), done.
Checking connectivity... done.
$ ls tivac
boards.txt  extras     platform.txt     README.md  variants
cores       libraries  programmers.txt  system
$

-rick

Share this post


Link to post
Share on other sites

Hi guys,

 

The install process provided by Robert is in fact the recommended one for new third-party boards. This process ends by installing everything in the $HOME/.arduino15 folder.

 

Robert, What would be the effects of your pull request not being finally merged into the main Arduino branch?

Share this post


Link to post
Share on other sites

The install process provided by Robert is in fact the recommended one for new third-party boards. This process ends by installing everything in the $HOME/.arduino15 folder.

 

Feel free to open a ticket at the Energia GitHub repository for an easier follow-up. Thank you!

Share this post


Link to post
Share on other sites

Not yet but I will have one soon. There are a couple issues that I need to work out to make everything work in the Arduino IDE. One of the things is an outstanding github pull-request for arduino-builder (https://github.com/arduino/arduino-builder/pull/119). I hope to work those out in the next couple of weeks.

 

Robert

Is that fix only for TI-RTOS based boards?

Share this post


Link to post
Share on other sites

Energia requires a modification of the arduino_builder utility.

Energia filed a pull request last Feb 23, 2016 Add build.project_path to global properties #119 but the pull request wasn’t considered, neither accepted nor rejected. 

Due to the lack of answer from the Arduino team, and despite multiple reminders, Energia maintains its own IDE to support the LaunchPad and BoosterPack boards. 

Feel free to post a bump on the pull request. You might be luckier! 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×