[C.CC USERS] FIRMWARE UPLOAD FAILTURE
cljacobsen at gmail.com
cljacobsen at gmail.com
Tue Apr 26 21:00:34 BST 2011
Hi,
Due to some problems with the bootloader on the Arduino Megas
(Atmega2560) the only way to upload an occam program is to upload both
the virtual machine and the bytecode in one go. The IDE cannot do this
at the moment, but it is possible to do it by hand. It requires quite
a bit of manual work which you may or may not have fun doing :)
1)
compile the program in the IDE
2)
use the run/upload button to attempt to upload the code
this step generates the ihex file, and it does not matter if
upload actually failes. The important things is to get the ihex file
3)
Use the script ihemerge.py script to generate a new ihex file that
combines the firmware for the mega1280 (which is compatible with the
2560) and the ihex file generated by step2
python ihexmerge.py
arduino/tvm/firmware/tvm-avr-atmega1280-16000000-arduinomega.hex
yourfile.ihex > combined.ihex
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.ihex
That is unfortunately as easy as it gets at the moment.
Christian
On 26 April 2011 17:58, Vaibhav Pagedar <VIBUPAGEDARACCOUNT at gmail.com> wrote:
> Thanks for the reply.
>
> I am using WindowsXP(SP3). Furthermore I have successfully uploaded
> programs using Arduino IDE.
>
> While I was using jEdit, I mentioned COM4 which is my communication
> port for the ARDUINO board and have installed the latest FTDI driver.
>
> On 25/04/2011, Matt Jadud <matt at jadud.com> wrote:
>> Hi all,
>>
>> On Mon, Apr 25, 2011 at 13:54, Dave Gilmore <gilmorenator at gmail.com> wrote:
>>>> Uploading Plumbing firmware
>>>> avrdude.exe: stk500_getsync(): not in sync: resp=0xd0
>>>
>>> Which operating system are you using?
>>>
>>> Have you programmed the Arduino using the Arduino IDE successfully?
>>>
>>> My supposition (from the limited information provided) is that it
>>> could be driver related - have you installed the latest FTDI driver?
>>>
>>> Are you selecting the correct COM port?
>>
>> All of Dave's questions are good -- answers wouldn't hurt. However, I
>> think we might need a magic script from Christian. (The Atmega2560
>> firmware, as shipped by the Arduino team, has a bug in it. We're
>> working on a patch to submit back to the community. Until then, it's
>> something that has to be worked around.)
>>
>> Cheers,
>> Matt
>>
>
>
> --
> VAIBHAV
> III Cell Coordinator
> Electrical Department
> Institute of Technology, Nirma University
> MOB:+91 99989-69350
>
> _______________________________________________
> users mailing list
> users at concurrency.cc
> http://www.concurrency.cc/mailman/listinfo/users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ihexmerge.py
Type: application/octet-stream
Size: 713 bytes
Desc: not available
URL: <http://www.concurrency.cc/pipermail/users/attachments/20110426/26ba718c/attachment.obj>
More information about the users
mailing list