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

Jan 26, 2012 release b - makefile: Arduino / chipKIT switch #6

Closed rei-vilo closed 12 years ago

rei-vilo commented 12 years ago

Jan 26, 2012 release b - makefile: Arduino / chipKIT switch

Bugs

For chipKIT board, build and upload work but the sketch doesn't run on the board: no blinking LED

I suspect missing files not taken into account by the makefile but used by MPIDE:

cpp-startup.S crti.S crtn.S

chipKIT-application-32MX360F512L.ld chipKIT-application-32MX440F512H.ld chipKIT-application-32MX460F512L.ld chipKIT-MAX32-application-32MX795F512L.ld chipKIT-UNO32-application-32MX320F128L.ld

from /Applications/Mpide.app/Contents/Resources/Java/hardware/pic32/cores/pic32/

peplin commented 12 years ago

Thanks, this well help. There are a lot of changes in this pull request - a lot of people find it easier to merge small changes. I will work through your bug fixes and enhancements and try to split them up into some logical commits. This way it will be easier to follow what was fixed or changed.

rei-vilo commented 12 years ago

Sorry for the large commit: all changes are linked.

Main changes makefile: new file chipKIT.mk: BOARD and LDSCRIPT read from boards.txt, EXTRA_CPPFLAGS adapted Arduino.mk: build target added, screen and osascript instead of stty, test with CORE_AS_SRCS for .S, echo information

Another possible missing action pic32-bin2hex -a build-cli/Blink.cpp.elf

Build logs comparison MPIDE and this makefile build logs: comparison

rei-vilo commented 12 years ago

Merged with Issue 7.