chipKIT® Development Platform

Inspired by Arduino™

Arduino 1.6 with chipKIT core on OSX

Created Mon, 09 Nov 2015 01:50:45 +0000 by l34nder


l34nder

Mon, 09 Nov 2015 01:50:45 +0000

I selected my board (Uno32) but when I try to compile any sketch I get an error:

<built-in>:0:0: fatal error: opening dependency file Blink.ino.d: Permission denied

Anyone who can give me a hint here? How can I get a more verbose log to see what actually happens?


EmbeddedMan

Mon, 09 Nov 2015 13:03:56 +0000

Which version of Arduino 1.6 are you using? The chipKIT-core is currently not working properly with the very latest (Arduino 1.6.6) but it should be working with 1.6.5.

*Brian


l34nder

Mon, 09 Nov 2015 20:46:14 +0000

Ok I was using Arduino 1.6.6. When I downgraded to Arduino 1.6.5 I could compile without errors.

Thank you!

/Claes


l34nder

Mon, 09 Nov 2015 23:37:27 +0000

I got compile to work. But now I cannot upload to my Uno32 using Arduino 1.6.5 with chipKIT Core.

Using MPIDE 0150 I can upload sketches without any problem. I can see that MPIDE uses avrdude (works fine) but chipKIT Core uses pic32prog (does not work.

I tried to upload the simple Blink sketch and get this error

**chipKIT Core using pic32prog: ** /Users/Claes/Documents/Arduino/hardware/chipkit-core/pic32/tools/bin/pic32prog -d /dev/cu.usbserial-AJV9JXNA -b 115200 /var/folders/x6/_sry_jwd0gq8rnkskr606q4c0000gn/T/build8611509079552777479.tmp/Blink.cpp.hex Programmer for Microchip PIC32 microcontrollers, Version 2.0.180 Copyright: (C) 2011-2015 Serge Vakulenko Adapter: STK500v2 Bootloader Program area: 1d000000-1d1fffff Error setting and getting the DEVID for the target

MPIDE using avrdude - no errors [/Applications/mpide.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude] [-C/Applications/mpide.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf] [-v] [-v] [-v] [-v] [-p32MX320F128H] [-cstk500v2] [-P/dev/cu.usbserial-AJV9JXNA] [-b115200] [-D] [-Uflash:w:/var/folders/x6/_sry_jwd0gq8rnkskr606q4c0000gn/T/build128486715300631463.tmp/Blink.cpp.hex:i]

Any helpful hints?

/Claes


majenko

Tue, 10 Nov 2015 11:47:13 +0000

This is a bug with pic32prog that has already been addressed. Basically what should have been a warning was a fatal error - the very latest version of pic32prog should have it fixed - it's certainly fixed in the source code.

You can grab the latest version from here: https://github.com/sergev/pic32prog/tree/master/macosx - Just drop it over the top of your existing pic32prog binary and it should all work.


l34nder

Tue, 10 Nov 2015 23:36:40 +0000

You can grab the latest version from here: https://github.com/sergev/pic32prog/tree/master/macosx - Just drop it over the top of your existing pic32prog binary and it should all work.

Downloaded it, but it is the exact same binary as I already have. Cloned the project, but I cannot get it to compile. The makefile does not seem to work well. I have reached out to Serge and asked him if can compile and upload a new version.

Is there a way to change ChipKIT Core to use avrdude instead? At least that seem to work well in MPIDE...


l34nder

Wed, 11 Nov 2015 20:39:44 +0000

I have reached out to Serge and asked him if can compile and upload a new version.

Got mail from Serge. He has compiled a new version. I have tested it and it works great! I can now compile and upload with Arduino 1.6.5+ChipKIT Core.


majenko

Thu, 12 Nov 2015 00:28:02 +0000

Excellent. I'll prod for a new build of chipkit-core with the new version of pic32prog in it.