Official Release 20120903 Open Source Compiler

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

Official Release 20120903 Open Source Compiler

Post by ricklon » Fri Sep 07, 2012 3:38 pm

HI All,

Finally, a new release. We've got a lot of good stuff in this one. This includes Jason Kajita's open source newlib based pic32 compiler.

This includes all the features of our test builds for the last several months. Several new boards, and updated boards are supported. Digilent has done an amazing job adding more boards, updating existing ones, and enhancing the quality of libraries being used by them. The ChipKit and MPIDE platform is continuing to support a wide variety of MPIDE/ChipKit compatible boards like the FubarinoSD, Pontek quicK240, and PontekUAV100.

The SD library is much more stable. We will continue to evolve it into the next version which will allow multiple open files. Which is a major bonus for those running http servers from the ChipKit Wifi shield.

Additionally, Digilent has contributed many Open Source libraries like SPI, and SoftSPI. These libraries are well worth trying out. Also, the CoreTimer, http://www.chipkit.org/wiki/index.php?t ... e_Overview, and Task Manager, http://www.chipkit.org/wiki/index.php?t ... r_Overview features are great. These are updates that I recommend the Arduino team take a look at I think it enhances the ease of use for working with advanced features.

It also sets the stage for new features in our next round of updates. Which are already being worked on.

A complete list of resolved issues can be found here:
https://github.com/chipKIT32/chipKIT32- ... ate=closed

The release build was created 20120903 so that's that date on build. They can be downloaded here.

Mac OS X
https://github.com/downloads/chipKIT32/ ... 120903.dmg

Linux
https://github.com/downloads/chipKIT32/ ... 120903.tgz

Windows
https://github.com/downloads/chipKIT32/ ... 120903.zip

As always feel free to discuss here on the forums, and for issues please file them at
https://github.com/chipKIT32/chipKIT32- ... state=open

There are lot of great next steps for the pic32 core, and the MPIDE.


--Rick

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

Re: Official Release 20120903 Open Source Compiler

Post by ricklon » Fri Sep 07, 2012 3:44 pm

A quick URL to get the builds:
http://bit.ly/getchipkit

Making sure the Compiler got updated to a fully Open Source status was a priority. So no Arduino API 1.0.x support.

--Rick

WestfW
Posts: 148
Joined: Wed May 25, 2011 12:17 am

Re: Official Release 20120903 Open Source Compiler

Post by WestfW » Fri Sep 07, 2012 11:15 pm

This is the first "official release" based on newlib, right?

Cool.

So has microchip open-sourced the .h files from proc/ ?
I notice that the "license header" has changed quite a bit...
Last edited by WestfW on Fri Sep 07, 2012 11:53 pm, edited 1 time in total.

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

Re: Official Release 20120903 Open Source Compiler

Post by avenue33 » Fri Sep 07, 2012 11:24 pm

ricklon wrote:A quick URL to get the builds:
http://bit.ly/getchipkit

Making sure the Compiler got updated to a fully Open Source status was a priority. So no Arduino API 1.0.x support.

--Rick
Neat and clear decision! Great!

EmbeddedMan
Posts: 597
Joined: Tue May 24, 2011 9:24 pm
Location: Minneapolis, MN
Contact:

Re: Official Release 20120903 Open Source Compiler

Post by EmbeddedMan » Sat Sep 08, 2012 12:15 am

WestfW wrote:This is the first "official release" based on newlib, right?

Cool.

So has microchip open-sourced the .h files from proc/ ?
I notice that the "license header" has changed quite a bit...
Yup. They're all now basic 3-clause BSD licence. Open source baby!

*Brian


/*-------------------------------------------------------------------------
* chipKIT for Microchip PIC32 MCUs - PIC32MX110F016B processor header
*
* This software is developed by Microchip Technology Inc. and its
* subsidiaries ("Microchip").
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* 3. Microchip's name may not be used to endorse or promote products
* derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY MICROCHIP "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL MICROCHIP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWSOEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*-------------------------------------------------------------------------*/

dangeljs
Posts: 82
Joined: Thu Jun 09, 2011 8:22 pm

Re: Official Release 20120903 Open Source Compiler

Post by dangeljs » Sun Sep 09, 2012 9:49 pm

Hey Guys,

I switch from using 'mpide-0023-windows-20111221' to 'mpide-0023-windows-20120903' and I'm having trouble with the atan2 function. Did anything change in the math library that would cause this. When I replace the atan2 with atan (putting the proper argument y/x) I get the right values for what atan is stable for. It isn't a big deal since I can fall back on the old version of MPIDE, but it may be something you guys would want to investigate.

Thanks,

Jason

WestfW
Posts: 148
Joined: Wed May 25, 2011 12:17 am

Re: Official Release 20120903 Open Source Compiler

Post by WestfW » Mon Sep 10, 2012 6:20 am

there were problems previously reported with atan2: http://chipkit.org/forum/viewtopic.php?f=7&t=250

I don't know if they were fixed or worked around in prior releases, and have snuck back in somehow, or whether atan2 has always been broken...

dangeljs
Posts: 82
Joined: Thu Jun 09, 2011 8:22 pm

Re: Official Release 20120903 Open Source Compiler

Post by dangeljs » Mon Sep 10, 2012 9:09 pm

Thanks for the link; I'll try that work around when I get a chance. In looking through the library files between the two releases they are a bit different. I'm guessing the older one is Microchips and the newer one is the open source compiler.

fiddler
Posts: 20
Joined: Fri Nov 25, 2011 6:50 am

Re: Official Release 20120903 Open Source Compiler

Post by fiddler » Tue Sep 11, 2012 12:25 am

Well, on my system, the Blink example program compiles okay when selecting a Uno32 board but not when selecting a Uno board.

Kim

EmbeddedMan
Posts: 597
Joined: Tue May 24, 2011 9:24 pm
Location: Minneapolis, MN
Contact:

Re: Official Release 20120903 Open Source Compiler

Post by EmbeddedMan » Tue Sep 25, 2012 3:18 am

dangeljs, try this to see if it fixes your atan problem.

Go into your MPIDE install directory\hardware\pic32\boards.txt
There are groupings of settings. Each group is for a different board type. Find the board type that you're using (say uno32), and find the two lines

Code: Select all

uno_pic32.compiler.c.flags=-O2::-c::-mno-smart-io::-w::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align

Code: Select all

uno_pic32.compiler.cpp.flags=-O2::-c::-mno-smart-io::-w::-fno-exceptions::-ffunction-sections::-fdata-sections::-G1024::-g::-mdebugger::-Wcast-align
and add

Code: Select all

::-fno-short-double
to the end of each of those lines. (obviously, the beginning of the line will be different for each board type)

Then close all open MPIDE windows, and start it up again. Then see if you still have your math issue. This fixed a math issue I was having, so it might work for you. Let us know your result.

*Brian

Post Reply