<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Makefile for Arduino 1.0</title>
	<atom:link href="http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/</link>
	<description></description>
	<lastBuildDate>Tue, 18 Jun 2013 08:22:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-195641</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Wed, 14 Nov 2012 17:19:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-195641</guid>
		<description><![CDATA[Cool! Glad it worked!]]></description>
		<content:encoded><![CDATA[<p>Cool! Glad it worked!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yogib3ar</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-195640</link>
		<dc:creator>Yogib3ar</dc:creator>
		<pubDate>Wed, 14 Nov 2012 16:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-195640</guid>
		<description><![CDATA[Indeed, that did the trick, got it working now. 

There&#039;s something to be learned every day.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Indeed, that did the trick, got it working now. </p>
<p>There&#8217;s something to be learned every day.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-195636</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Wed, 14 Nov 2012 14:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-195636</guid>
		<description><![CDATA[Thanks for the details.

First, yes you need to add the &quot;upload&quot; target manually.

I saw that you were using an Arduino UNO. Since all my testings were done on Duemilanove, I bet that is where the issue lies.

I believe that the only thing you need to change (take a look in the Makefile) is the upload baud rate, since Uno uses 115200 instead of 57600.

I don&#039;t have an UNO on hand to test this, but if you could try it out and let me know how it goes that would be great. Thanks.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the details.</p>
<p>First, yes you need to add the &#8220;upload&#8221; target manually.</p>
<p>I saw that you were using an Arduino UNO. Since all my testings were done on Duemilanove, I bet that is where the issue lies.</p>
<p>I believe that the only thing you need to change (take a look in the Makefile) is the upload baud rate, since Uno uses 115200 instead of 57600.</p>
<p>I don&#8217;t have an UNO on hand to test this, but if you could try it out and let me know how it goes that would be great. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yogib3ar</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-195635</link>
		<dc:creator>Yogib3ar</dc:creator>
		<pubDate>Wed, 14 Nov 2012 13:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-195635</guid>
		<description><![CDATA[Thanks for your quick reply.

Yes i did get an error.

As said: after right clicking the makefile and choosing: Make target\All the compilation finishes succesfully. 
But when i want to upload, right clicking the make file does not show any upload option.
-----------------
By default I get these options right clicking the makefile:
    Make
    Make Clean
    Make Target with the options:   
        all
        build
        clean
        -----
        Add Target
---------------
I tried &quot;Add target&quot; at the right click makefile menu and supplied &quot;upload&quot;. Am I doing things correctly by adding the upload entry myself? (couldn&#039;t find an answer for this one)
---------------
The make file configuration part concerning the programmer:
INSTALL_DIR = E:/00-TOOLS/arduino-1.0.1
PORT = COM3 #also tried com3, found com3 in the com hardware properties of windows 7 after connecting the UNO
UPLOAD_RATE = 57600 #also tried 9600
AVRDUDE_PROGRAMMER = stk500v1 # Also tried it with arduino (found it on the net, however.. no cigar)
MCU = atmega328p
F_CPU = 16000000

VERSION=1.0
ARDUINO = $(INSTALL_DIR)/hardware/arduino/cores/arduino
VARIANTS = $(INSTALL_DIR)/hardware/arduino/variants/standard
ARDUINO_LIB = $(INSTALL_DIR)/libraries
AVR_TOOLS_PATH = E:/00-TOOLS/WinAVR-20100110/bin
#AVRDUDE_PATH = $(INSTALL_DIR)/hardware/tools
AVRDUDE_PATH = E:/00-TOOLS/arduino-1.0.1/hardware/tools/avr/bin
AVRDUDE_CONF_PATH = E:/00-TOOLS/arduino-1.0.1/hardware/tools/avr/etc #added this one for the right location of the configuration file
--------------------------------------------------------------------

Pressing the added upload entry  results in the following output with indeed.. an error:

E:/00-TOOLS/arduino-1.0.1/hardware/tools/avr/bin/avrdude -V -F -C E:/00-TOOLS/arduino-1.0.1/hardware/tools/avr/etc/avrdude.conf -p atmega328p -P com3 -c arduino -b 57600 -D -U flash:w:applet/main.hex
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.

make: *** [upload] Error 1


MAKE FAILED (exit value 2, total time: 12s)

The arduino UNO RX LED blinks 3 times at the start of the upload, but the arduino apparently doesn&#039;t reply
(tested the arduino UNO with the arduino IDE 1.0 and 1.0.1 which worked without any problem)

Any ideas?

Thanks..]]></description>
		<content:encoded><![CDATA[<p>Thanks for your quick reply.</p>
<p>Yes i did get an error.</p>
<p>As said: after right clicking the makefile and choosing: Make target\All the compilation finishes succesfully.<br />
But when i want to upload, right clicking the make file does not show any upload option.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
By default I get these options right clicking the makefile:<br />
    Make<br />
    Make Clean<br />
    Make Target with the options:<br />
        all<br />
        build<br />
        clean<br />
        &#8212;&#8211;<br />
        Add Target<br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
I tried &#8220;Add target&#8221; at the right click makefile menu and supplied &#8220;upload&#8221;. Am I doing things correctly by adding the upload entry myself? (couldn&#8217;t find an answer for this one)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
The make file configuration part concerning the programmer:<br />
INSTALL_DIR = E:/00-TOOLS/arduino-1.0.1<br />
PORT = COM3 #also tried com3, found com3 in the com hardware properties of windows 7 after connecting the UNO<br />
UPLOAD_RATE = 57600 #also tried 9600<br />
AVRDUDE_PROGRAMMER = stk500v1 # Also tried it with arduino (found it on the net, however.. no cigar)<br />
MCU = atmega328p<br />
F_CPU = 16000000</p>
<p>VERSION=1.0<br />
ARDUINO = $(INSTALL_DIR)/hardware/arduino/cores/arduino<br />
VARIANTS = $(INSTALL_DIR)/hardware/arduino/variants/standard<br />
ARDUINO_LIB = $(INSTALL_DIR)/libraries<br />
AVR_TOOLS_PATH = E:/00-TOOLS/WinAVR-20100110/bin<br />
#AVRDUDE_PATH = $(INSTALL_DIR)/hardware/tools<br />
AVRDUDE_PATH = E:/00-TOOLS/arduino-1.0.1/hardware/tools/avr/bin<br />
AVRDUDE_CONF_PATH = E:/00-TOOLS/arduino-1.0.1/hardware/tools/avr/etc #added this one for the right location of the configuration file<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Pressing the added upload entry  results in the following output with indeed.. an error:</p>
<p>E:/00-TOOLS/arduino-1.0.1/hardware/tools/avr/bin/avrdude -V -F -C E:/00-TOOLS/arduino-1.0.1/hardware/tools/avr/etc/avrdude.conf -p atmega328p -P com3 -c arduino -b 57600 -D -U flash:w:applet/main.hex<br />
avrdude: stk500_getsync(): not in sync: resp=0&#215;00</p>
<p>avrdude done.  Thank you.</p>
<p>make: *** [upload] Error 1</p>
<p>MAKE FAILED (exit value 2, total time: 12s)</p>
<p>The arduino UNO RX LED blinks 3 times at the start of the upload, but the arduino apparently doesn&#8217;t reply<br />
(tested the arduino UNO with the arduino IDE 1.0 and 1.0.1 which worked without any problem)</p>
<p>Any ideas?</p>
<p>Thanks..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-195607</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Tue, 13 Nov 2012 00:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-195607</guid>
		<description><![CDATA[Thanks for your comment. After you compiled your code successfully, use

make upload

to invoke avrdude (assuming that avrdude is in your $PATH environment variable. Did you get an error?]]></description>
		<content:encoded><![CDATA[<p>Thanks for your comment. After you compiled your code successfully, use</p>
<p>make upload</p>
<p>to invoke avrdude (assuming that avrdude is in your $PATH environment variable. Did you get an error?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yogib3ar</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-195603</link>
		<dc:creator>Yogib3ar</dc:creator>
		<pubDate>Mon, 12 Nov 2012 21:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-195603</guid>
		<description><![CDATA[Good job Kerry Wong... 
Compiling works like a dream on windows with a few tweaks to the make file, but after creating the hex file, I cant find the &#039;Build target upload&#039;. Can You (or someone else) give a little more explanation on that part? What am I missing?

:(
Tried Matthias&#039; stuff, but could not compile the static lib, it kept launching make files (about 800 of them when I ended it :( I would like to leave a message at his board, but looks like there no option for it) ).]]></description>
		<content:encoded><![CDATA[<p>Good job Kerry Wong&#8230;<br />
Compiling works like a dream on windows with a few tweaks to the make file, but after creating the hex file, I cant find the &#8216;Build target upload&#8217;. Can You (or someone else) give a little more explanation on that part? What am I missing?</p>
<p>:(<br />
Tried Matthias&#8217; stuff, but could not compile the static lib, it kept launching make files (about 800 of them when I ended it :( I would like to leave a message at his board, but looks like there no option for it) ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-192341</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Sat, 10 Mar 2012 19:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-192341</guid>
		<description><![CDATA[Still sounds like a path issue.

You should not need to have to change the make file. You should be able to set the path information using include paths under C and C++ options. Here is an example that comes from one of my projects:

C include directories:
/home/kwong/arduino-1.0/hardware/arduino/cores/arduino
/home/kwong/arduino-1.0/hardware/arduino/variants/standard
/home/kwong/arduino-1.0/hardware/arduino/cores

C++ include directories:
/home/kwong/arduino-1.0/hardware/arduino/cores/arduino
/home/kwong/arduino-1.0/hardware/arduino/variants/standard
/home/kwong/arduino-1.0/hardware/arduino/cores
/home/kwong/arduino-1.0/libraries
/usr/lib/avr/include

Please let me know if you are able to resolve your issue.]]></description>
		<content:encoded><![CDATA[<p>Still sounds like a path issue.</p>
<p>You should not need to have to change the make file. You should be able to set the path information using include paths under C and C++ options. Here is an example that comes from one of my projects:</p>
<p>C include directories:<br />
/home/kwong/arduino-1.0/hardware/arduino/cores/arduino<br />
/home/kwong/arduino-1.0/hardware/arduino/variants/standard<br />
/home/kwong/arduino-1.0/hardware/arduino/cores</p>
<p>C++ include directories:<br />
/home/kwong/arduino-1.0/hardware/arduino/cores/arduino<br />
/home/kwong/arduino-1.0/hardware/arduino/variants/standard<br />
/home/kwong/arduino-1.0/hardware/arduino/cores<br />
/home/kwong/arduino-1.0/libraries<br />
/usr/lib/avr/include</p>
<p>Please let me know if you are able to resolve your issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valmir Junior</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-192331</link>
		<dc:creator>Valmir Junior</dc:creator>
		<pubDate>Sat, 10 Mar 2012 04:35:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-192331</guid>
		<description><![CDATA[I fixed this! I just included in the assist code the path: [install dir]/hardware/arduino/variants/mega ...but I still having problems...rsrsrsrs
The netbeans error is: nbproject/Makefile-Debug.mk:30: Makefile: File not found]]></description>
		<content:encoded><![CDATA[<p>I fixed this! I just included in the assist code the path: [install dir]/hardware/arduino/variants/mega &#8230;but I still having problems&#8230;rsrsrsrs<br />
The netbeans error is: nbproject/Makefile-Debug.mk:30: Makefile: File not found</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valmir Junior</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-192330</link>
		<dc:creator>Valmir Junior</dc:creator>
		<pubDate>Sat, 10 Mar 2012 03:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-192330</guid>
		<description><![CDATA[Good evening Kwong! Thanks for fast response...I&#039;ve fixed it...I&#039;ve changed some lines in make file, redirecting the install dir to correct path...and I&#039;ve changed the var MAKEFILE = Makefile to MAKEFILE = makefile...because the makefile name is in lower case...But now I have an error in file Arduino.h in line 212 #include &quot;pins_arduino.h&quot; file not found...probably it&#039;s only a little configuration that I have forgot again...Can you help me?]]></description>
		<content:encoded><![CDATA[<p>Good evening Kwong! Thanks for fast response&#8230;I&#8217;ve fixed it&#8230;I&#8217;ve changed some lines in make file, redirecting the install dir to correct path&#8230;and I&#8217;ve changed the var MAKEFILE = Makefile to MAKEFILE = makefile&#8230;because the makefile name is in lower case&#8230;But now I have an error in file Arduino.h in line 212 #include &#8220;pins_arduino.h&#8221; file not found&#8230;probably it&#8217;s only a little configuration that I have forgot again&#8230;Can you help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-192329</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Sat, 10 Mar 2012 02:41:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-192329</guid>
		<description><![CDATA[Hi Valmir,

Arduino.h is located in [arduino instllation dir]/hardware/arduino/cores/arduino
So you will need to add this to your C compiler&#039;s include directories. (e.g. right click on your project, choose properties and under the build option you will see the include directory option)

In general, you will need to include the directories that header files are stored.]]></description>
		<content:encoded><![CDATA[<p>Hi Valmir,</p>
<p>Arduino.h is located in [arduino instllation dir]/hardware/arduino/cores/arduino<br />
So you will need to add this to your C compiler&#8217;s include directories. (e.g. right click on your project, choose properties and under the build option you will see the include directory option)</p>
<p>In general, you will need to include the directories that header files are stored.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valmir Junior</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-192328</link>
		<dc:creator>Valmir Junior</dc:creator>
		<pubDate>Sat, 10 Mar 2012 01:35:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-192328</guid>
		<description><![CDATA[I&#039;m using Arduino Uno!!!]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m using Arduino Uno!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valmir Junior</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-192327</link>
		<dc:creator>Valmir Junior</dc:creator>
		<pubDate>Sat, 10 Mar 2012 01:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-192327</guid>
		<description><![CDATA[Hey Kwong! I&#039;ve installed succesfuly the netbeans plugin and the make file. But when I open the Main.cpp Netbeans tell me that Arduino.h is not found...how I can fix It???]]></description>
		<content:encoded><![CDATA[<p>Hey Kwong! I&#8217;ve installed succesfuly the netbeans plugin and the make file. But when I open the Main.cpp Netbeans tell me that Arduino.h is not found&#8230;how I can fix It???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-186602</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Sun, 08 Jan 2012 23:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-186602</guid>
		<description><![CDATA[Awesome! Thanks for letting me know!]]></description>
		<content:encoded><![CDATA[<p>Awesome! Thanks for letting me know!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-186566</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Sun, 08 Jan 2012 21:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-186566</guid>
		<description><![CDATA[Hi Kerry,

I used your Makefile a while and now figured out a way to set up Netbeans for Arduino software development without using any additional plugins or makefiles. The build flow is a lot faster too, because I&#039;m using a precompiled static core library and I have real dependency checking. Check it out: http://mattzz.dyndns.org/wiki/bin/view/Projects/ArduinoAndNetbeans

Cheer,
  /Matthias]]></description>
		<content:encoded><![CDATA[<p>Hi Kerry,</p>
<p>I used your Makefile a while and now figured out a way to set up Netbeans for Arduino software development without using any additional plugins or makefiles. The build flow is a lot faster too, because I&#8217;m using a precompiled static core library and I have real dependency checking. Check it out: <a href="http://mattzz.dyndns.org/wiki/bin/view/Projects/ArduinoAndNetbeans" rel="nofollow">http://mattzz.dyndns.org/wiki/bin/view/Projects/ArduinoAndNetbeans</a></p>
<p>Cheer,<br />
  /Matthias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kwong</title>
		<link>http://www.kerrywong.com/2011/12/17/makefile-for-arduino-1-0/comment-page-1/#comment-185984</link>
		<dc:creator>kwong</dc:creator>
		<pubDate>Sat, 07 Jan 2012 00:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.kerrywong.com/?p=5164#comment-185984</guid>
		<description><![CDATA[The makefile looks at the same location where you put your main.cpp source file.]]></description>
		<content:encoded><![CDATA[<p>The makefile looks at the same location where you put your main.cpp source file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
