Core compatibility with Arduino 1.0 and Arduino 1.5

Work prioritization by the chipKIT core development team
User avatar
Jacob Christ
Posts: 723
Joined: Sat May 28, 2011 6:34 am
Location: Southern California
Contact:

Core compatibility with Arduino 1.0 and Arduino 1.5

Post by Jacob Christ » Sat Apr 06, 2013 8:00 pm

Is anyone interested getting together in Google hangouts to discuss working on chipKIT core compatibility with Arduino 1.0 and Arduino 1.5 topic?

Jacob
PONTECH Quick240 an industrial form factor platform for chipKIT and Arduino users.

avenue33
Site Admin
Posts: 298
Joined: Sat Jul 16, 2011 10:19 am
Contact:

Re: Core compatibility with Arduino 1.0 and Arduino 1.5

Post by avenue33 » Sat Apr 06, 2013 9:29 pm

Just a question: can't we go directly to Arduino 1.5?

Arduino 1.5 has introduced a much cleaner structure with platforms (eg. Arduino) and architectures (eg. AVR, SAM).

Each architecture folder includes all the related folders (eg. cores, firmwares, libraries, system, variants). See picture.
Attachments
Capture d’écran 2013-04-06 à 22.26.22.png
Capture d’écran 2013-04-06 à 22.26.22.png (31.29 KiB) Viewed 2461 times

User avatar
Jacob Christ
Posts: 723
Joined: Sat May 28, 2011 6:34 am
Location: Southern California
Contact:

Re: Core compatibility with Arduino 1.0 and Arduino 1.5

Post by Jacob Christ » Sun Apr 07, 2013 12:33 am

I believe Rick Anderson (considered to be the MPIDE maintainer by many) has suggested going straight to 1.5 as well. Rick has also mentioned that the Arduino 1.5 IDE appears to have pull upstream contributions from MPIDE and thus the task of getting there may not be too difficult.

Gene from Digilent has said (and I agree with him) that it would be great if we could have one tool that could compile sketches for 0023, 0100 and 0150 maybe by use of a #define at the top of your sketch.

Jacob
PONTECH Quick240 an industrial form factor platform for chipKIT and Arduino users.

avenue33
Site Admin
Posts: 298
Joined: Sat Jul 16, 2011 10:19 am
Contact:

Re: Core compatibility with Arduino 1.0 and Arduino 1.5

Post by avenue33 » Sun Apr 07, 2013 9:51 am

The real difference for the functions is between Arduino 0023 and 1.0.

Please refer to the Arduino 1.0 Release Notes and the article Arduino 1.0 is Out: Here’s What You Need To Know. I've discussed to pros and cons here.
Arduino 1.0 brings numerous and in-depth modifications compared to Arduino 0023,
  • Wire.send(...) becomes Wire.write(...), as Wire.receive() is replaced by Wire.read(),
  • String functions are now in-place, s=s.trim(); is changed for s.trim();
  • Serial.print() behaviour has changed,
  • and other details as well.
The lack of compatibility is really annoying. Arduino 1.0 could have been released as a set of extra libraries.
Arduino 1.0 and 1.5 share the same functions. The difference is the inner structure.

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Core compatibility with Arduino 1.0 and Arduino 1.5

Post by majenko » Sun Apr 07, 2013 10:32 am

I vote for 1.5 as well. If we're wanting multi-platform, it's better to go for a system that's already geared properly towards multi-platform than one that could have multi-platform fudged into it.

It would be nice to have it much easier to add other platforms as simple add-ons that could be extracted into the tree without needing a whole new mpide version. I am thinking support for things like the MSP430 chips from IT, etc. Make one truly global IDE for all the boards out there :)
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

avenue33
Site Admin
Posts: 298
Joined: Sat Jul 16, 2011 10:19 am
Contact:

Re: Core compatibility with Arduino 1.0 and Arduino 1.5

Post by avenue33 » Sun Apr 07, 2013 2:43 pm

majenko wrote: I am thinking support for things like the MSP430 chips from IT, etc. Make one truly global IDE for all the boards out there :)
The LaunchPads MSP430 and Stellaris are already supported by Energia,

Image
Energia is a rapid electronics prototyping platform for the Texas Instruments msp430 LaunchPad. Energia is based on Wiring and Arduino and uses the Processing IDE. The sources for the project are on the Energia github.com project page.
I'm a member of the Energia team.

GitHub repository: http://github.com/energia/Energia

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Core compatibility with Arduino 1.0 and Arduino 1.5

Post by majenko » Sun Apr 07, 2013 4:13 pm

Yes, but that's yet another IDE to install, maintain, etc. I want to have it all in one, which mpide is supposed to be, no?
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

User avatar
Jacob Christ
Posts: 723
Joined: Sat May 28, 2011 6:34 am
Location: Southern California
Contact:

Re: Core compatibility with Arduino 1.0 and Arduino 1.5

Post by Jacob Christ » Sun Apr 07, 2013 5:30 pm

avenue33,

Thanks for the links they will be a helpful for guidance.

majenko,

From what I understand the original intent of MPIDE was to support many different platforms (not just chipKIT and Arduino). I've also spoken with the maintainer of Eneigia and he is willing to work with us as well, but nothing further has come of this. I think it would be awesome if we could do this but my main emphasis is on PIC32 (due mainly to lack of time to devote to other processors). It would be cool to one day see support for PIC18 parts as well.

all,

Here is work that my colleague (mikes here on this board) has done that brings the SD lib in 0023 up to 1.0 (except that it does not use size_t types). This allows us to open more than one file at a time on SD cards. We didn't go as far as trying to make the print()'s return size_t because it didn't server our needs at the time.

https://github.com/mskoczen/chipKIT32-M ... its/sd-1.0

Jacob
PONTECH Quick240 an industrial form factor platform for chipKIT and Arduino users.

User avatar
Jacob Christ
Posts: 723
Joined: Sat May 28, 2011 6:34 am
Location: Southern California
Contact:

Re: Core compatibility with Arduino 1.0 and Arduino 1.5

Post by Jacob Christ » Tue Apr 09, 2013 3:26 am

So over the weekend downloaded Ardunio IDE 1.5 and tried to get the 0023 MPIDE tool to work. I couldn't even get the boards to be recognized. I didn't spend much time on it but I wanted to share my failure. I think Rick Anderson has looked at this a bit more than me and I'm just trying to dig into this so it will be a lot of learning for myself.

I guess my though was to leapfrog to 1.5 per avenue33's suggestion.

Jacob
PONTECH Quick240 an industrial form factor platform for chipKIT and Arduino users.

ricklon
Posts: 178
Joined: Sun May 22, 2011 6:59 am

Re: Core compatibility with Arduino 1.0 and Arduino 1.5

Post by ricklon » Thu Apr 18, 2013 1:46 am

I posted to the wrong thread with the latest from Arduino 1.5.x. They have merged more changes in including changes to libraries.
If you all haven't taken a look at the new build system (compilation and upload) and library format it in Arduino 1.5.x, now's a good time. Cristian has done a lot of work implementing the system and documenting it:

https://github.com/arduino/Arduino/wiki ... cification
https://github.com/arduino/Arduino/wiki ... cification

If you're maintaining a hardware folder / boards.txt file or library, you'll probably want to start migrating to the new format. (The 1.5.x does support old-style libraries but they might not work on the new SAM -- ARM -- architecture.) It shouldn't be difficult but does require some changes.
We should take these recommendations and changes into account.

Post Reply