Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Next #17

Merged
merged 4 commits into from
Feb 22, 2013
Merged

Next #17

merged 4 commits into from
Feb 22, 2013

Conversation

John-Wallbank
Copy link
Contributor

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
Copy link
Owner

peplin commented Feb 21, 2013

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
Copy link
Owner

peplin commented Feb 21, 2013

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

@John-Wallbank
Copy link
Contributor Author

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 peplin merged commit 2c36c89 into peplin:next Feb 22, 2013
@peplin
Copy link
Owner

peplin commented Feb 22, 2013

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

@John-Wallbank
Copy link
Contributor Author

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 [email protected]
To: peplin/arduino.mk [email protected]
Cc: JWallbank [email protected]
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
Copy link
Contributor Author

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..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants