Rachel,<div><br></div><div>Sorry I should have provided instructions,</div><div><br></div><div>I believe these are the steps you need to take:</div><div><br></div><div><pre style><font face="arial, helvetica, sans-serif">1)
compile the program in the IDE


2)
use the run/upload button to attempt to upload the code
this step generates the <span class="il" style="background-color:rgb(255,255,204)">ihex</span> file, and it does not matter if
upload actually failes. The important things is to get the <span class="il" style="background-color:rgb(255,255,204)">ihex</span> file


3)
Use the script ihemerge.py script to generate a new <span class="il" style="background-color:rgb(255,255,204)">ihex</span> file that
combines the firmware for the mega1280 (which is compatible with the
2560) and the <span class="il" style="background-color:rgb(255,255,204)">ihex</span> file generated by step2

python <span class="il" style="background-color:rgb(255,255,204)">ihexmerge</span>.py
arduino/tvm/firmware/tvm-avr-atmega1280-16000000-arduinomega.hex
yourfile.<span class="il" style="background-color:rgb(255,255,204)">ihex</span> &gt; combined.<span class="il" style="background-color:rgb(255,255,204)">ihex</span>


4)
use avrdude to upload the file, something like this:
bin/avrdude.exe -C bin/avrdude.conf -V -F -p atmega2560 -P COM4 -b
115200 -c stk500v2 -D -U flash:w:combined.<span class="il" style="background-color:rgb(255,255,204)">ihex</span></font></pre><div><br></div><div>You&#39;ll need to have Python installed for the script to work,</div><div>
<br></div><div>Anything else just shout!</div><div><br></div><div>Dave.</div><br><div class="gmail_quote">On 6 June 2012 16:51, David Gilmore <span dir="ltr">&lt;<a href="mailto:gilmorenator@gmail.com" target="_blank">gilmorenator@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Rachel,<div><br></div><div>If its the 2560 that you have then you will need to run this magic script:</div><div><br></div>
<div><a href="http://projects.cs.kent.ac.uk/projects/kroc/trac/browser/kroc/trunk/tvm/arduino/scripts/ihexmerge.py" target="_blank">http://projects.cs.kent.ac.uk/projects/kroc/trac/browser/kroc/trunk/tvm/<span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">arduino</span>/scripts/ihexmerge.py</a> </div>

<div><br></div><div>I believe this is a common problem with the Arduino Mega,</div><div><br></div><div>HTH</div><div><br></div><div>Dave.<br><br><div class="gmail_quote"><div><div class="h5">On 6 June 2012 16:44, Rachel E Smith <span dir="ltr">&lt;<a href="mailto:rachsmith@utexas.edu" target="_blank">rachsmith@utexas.edu</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hello all,<br><br>I am having trouble uploading the plumbing firmware to my Arduino Mega. It is giving me this error:<br>

<br clear="all">avrdude.exe: stk500_getsync(): not in sync: resp=0xd8<br><br>Any ideas? <br><br>Thanks. <br>

<br></div></div>_______________________________________________<br>
users mailing list<br>
users@concurrency.cc<br>
<a href="http://lists.concurrency.cc/mailman/listinfo/users" target="_blank">http://lists.concurrency.cc/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>