peplin / arduino.mk

DEPRECATED FORK: Arduino Makefile with chipKIT support
http://christopherpeplin.com/2011/12/chipkit-arduino-makefile/
GNU Lesser General Public License v2.1
11 stars 4 forks source link

Doesn't seem to work with mpide-0023-macosx-20130626 #20

Closed tommythorn closed 10 years ago

tommythorn commented 11 years ago

Full disclaimer: my interest in this is for the Chipkit DP32 and the above mentioned MPIDE release is the only I could get fully working for that platform. While arduino.dk doesn't claim support for the DP32, it doesn't appear that it fully works for the MAX32 either:

$ cd test/blink-max32
$ make ARDUINO_MAKEFILE_HOME=~/Documents/mpide/arduino.mk MPIDE_DIR=/Applications/Mpide.app/Contents/Resources/Java
Producing 
Including WProgram.h
...
Producing build-cli/blink.elf
/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/lib/cpp-startup.o: In function `_no_nmi':
(.startup+0x20): undefined reference to `_stack'
/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/lib/cpp-startup.o: In function `_no_nmi':
(.startup+0x24): undefined reference to `_stack'
/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/lib/cpp-startup.o: In function `_no_nmi':
(.startup+0x28): undefined reference to `_gp'
/Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/lib/cpp-startup.o: In function `_no_nmi':
(.startup+0x2c): undefined reference to `_gp'

I haven't dug in yet to debug this.

tommythorn commented 11 years ago

Ah, I was using the next branch (the default) and it appears I should be chipkit instead. However, the final failure is identical.

peplin commented 11 years ago

Hey Tommy, the next branch is actually the right one (other branches are for some current work to merge chipkit support back upstream) but it just looks like there were changes in the latest release of MPIDE that we need to check out. Haven't a release from them in 9 months!

peplin commented 11 years ago

Actually, where did you get that? There still aren't any newer versions than 0023 20120903 on the downloads page the link to.

tommythorn commented 11 years ago

Oh, sorry. I forgot that I'm running a pre-release. So I guess this is a "future" issue? :)

I found it at http://chipkit.s3.amazonaws.com/index.html and the reference to that came from DP32-MPIDE-Installation-Readme.pdf in https://www.dropbox.com/s/2r8gtqpovs9t3n3/DP32-MPIDE-UPDATE-SPIFIX.zip which is referenced from http://chipkit.net/updating-mpide-chipkit-dp32/ Obvious, wasn't it?

AFAICT, the DP32 (great value) is a very recent product and I think a new MPIDE release can't be too far away as the current version doesn't work with DP32 (and the update instructions are convoluted and failed for me on Mac).

peplin commented 10 years ago

Check out the latest version of the new upstream version of this project, https://github.com/sudar/Arduino-Makefile - all of my changes have been merged there and it should work with the newer MPIDE versions.