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

Next #17

Closed John-Wallbank closed 11 years ago

John-Wallbank commented 11 years ago

Chris I wanted to use Visual Studio as my IDE for development of Uno32 projects. I have now produced a usable solution by using your makefiles with a few minor tweaks:

I made the inclusion of WProgram.h optional. I did this because WProgram.h needs to be included in my solution source to enable Intellisense to work and including it twice messes up compiler error line numbers.

I tidied up the echoing of messages to give a neat presentation of progress through the makefile.

I parameterised the routine used to reset the serial port so that I can use one that works on windows.

Thanks for the work you did, without it I would never have got off the ground. Can I also say I have never worked on GitHub before so I hope I'm do this right!

Regards

John

peplin commented 11 years ago

This is great, John, thanks! The commits look very clean, so let me give it a test and then I'll merge it in.

Are you using Arduino 1.0, by the way? I was in "hack" mode yesterday and the -D$(BOARD) part was giving me trouble so I tore it out. It seemed like there was no more uno.board = ... in boards.txt, for example. I see you added it back in one of these commits, so obviously it's still required in at least some cases.

peplin commented 11 years ago

Just realized you're talking about the chipKIT Uno32, so the version of Arduino is probably "none".

John-Wallbank commented 11 years ago

I am using an Uno32 Chris and so far things have worked fine for me - once I managed to get my head round the way it works! I have to say that it's pretty fiddly to debug a problem - more trial and error really..

peplin commented 11 years ago

That's some pretty, pretty, output. Thanks John, I merged it into the next branch.

John-Wallbank commented 11 years ago

No problem Chris, keep up the good work! 

I have just spotted a issue, can you take a look:

If I do a "make upload" before I have directory build-cli created the make fails.  I have fixed it by adding an  @mkdir -p $(OBJDIR) to the reset rule.  You may come up with something more elegant.

Cheers

John


From: Christopher Peplin notifications@github.com To: peplin/arduino.mk arduino.mk@noreply.github.com Cc: JWallbank jwallbank@btinternet.com Sent: Friday, 22 February 2013, 18:46 Subject: Re: [arduino.mk] Next (#17)

That's some pretty, pretty, output. Thanks John, I merged it into the next branch. — Reply to this email directly or view it on GitHub.

John-Wallbank commented 11 years ago

Actually a better way is simply

upload: $(OBJDIR) reset raw_upload

I think the problem is without $(OBJDIR) being in place the hex build rule falls over.

Very tricky these makefiles..