Upgrading to chipKIT core 1.2.0 Issue

Announcements for new builds and MPIDE enhancements
Post Reply
User avatar
Jacob Christ
Posts: 723
Joined: Sat May 28, 2011 6:34 am
Location: Southern California
Contact:

Upgrading to chipKIT core 1.2.0 Issue

Post by Jacob Christ » Fri Jun 10, 2016 7:23 pm

Just tried to upgrade to core 1.2.0 from the "Board Manager" and got a "CRC Doesn't Match. File is corrupted" message.

I tried the Update, Remove and Install buttons don't seem to have any functionality now.

I tried to restart Arduino IDE (1.6.7) and is still has the same message and I can't revert to 1.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: Upgrading to chipKIT core 1.2.0 Issue

Post by Jacob Christ » Fri Jun 10, 2016 8:46 pm

Windows 10, I don't have a C:\Users\bschmalz directory ;-).

I tried deleting just the 1.2.0 zip and the preferences.txt and the chipKIT json files. No dice.

I also tried reverting to the old json file: https://raw.githubusercontent.com/chipK ... index.json

Didn't work either, but I'm not sure if that link was the old working file.

Brian's suggestion fixed the problem.


Jacob

On Fri, Jun 10, 2016 at 11:55 AM, Brian Schmalz wrote:
Jacob,

Crud. I wonder why it failed for you but worked for me.

Are you on Windows? If so, quit Arduino IDE, go to C:\Users\bschmalz\AppData\Local\Arduino15 and delete all files and folders except the preferences.txt file, then restart Arduino IDE and go to the boards manager again and see if the same problem happens. If so, I need to take down the 1.2.0 update until I can figure out what's going on.

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

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

Re: Upgrading to chipKIT core 1.2.0 Issue

Post by EmbeddedMan » Sat Jun 11, 2016 12:53 pm

Jacob,

I have been able to reproduce this problem now. It happens any time you use the "Update" button in the Boards Manager, or if you click the "Install" button in the Boards Manager and you already have a previous version of chipKIT-core installed.

So basically upgrading from an existing version is currently broken.

As you found, the workaround (for now) is to completely uninstall chipKIT-core by deleting all files except preferences.txt in the C:\Users\<username>\AppData\Local\Arduino15 directory (if you are running Windows - under Linux it's a .arduino15 in your home directory, etc.) and then restarting Arduino to install chipKIT-core 1.2.0 fresh.

I'll figure out why this is happening and update the .json file to fix it, hopefully.

*Brian

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

Re: Upgrading to chipKIT core 1.2.0 Issue

Post by EmbeddedMan » Sat Jun 11, 2016 1:59 pm

I have found and fixed the error (for Windows - other OSes will be fixed in a few minutes).

The problem appears to be that Arduino IDE does not attach any type of version number to downloaded binaries, and it puts them in the same directory. So if you have chipKIT-core v1.1.0 installed, which downloads pic32prog-windows.zip into the staging directory, and then later update to v1.2.0, the IDE will copy down the new pic32prog-windows.zip file into the same directory, overwriting the old one. I don't understand why this causes the CRC check to fail, but it appears that's what happens, and the IDE is then stuck in an unhappy state.

The solution is to uniquely name all of your binary files so they don't overwrite previous versions. This works, is uploaded to the GitHub repo now, and things should work. I tried upgrading, downgrading, removing, installing, etc. etc. and can't get it to fail.

If you do have problems still, delete the downloaded files as specified above and try again - it should work.

*Brian

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

Re: Upgrading to chipKIT core 1.2.0 Issue

Post by majenko » Sat Jun 11, 2016 2:09 pm

Yet another reason to switch to UECIDE from Arduino's half-arsed job of package management...
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: Upgrading to chipKIT core 1.2.0 Issue

Post by Jacob Christ » Sun Jun 12, 2016 2:10 am

Brian: Good find.

Matt: I wouldn't expect an Arduino IDE bug report to come without a plug for the superior UIECIDE, keep'em coming.
PONTECH Quick240 an industrial form factor platform for chipKIT and Arduino users.

Post Reply