[C.CC USERS] Problems transfering firmware to arduino

afromm arduino at fromms-online.de
Sat Mar 30 11:57:33 GMT 2013


Thank you for your quick replay!

Sending a !!!? and resetting the board doesn't give me back anything. 
The serial monitor remains empty :-( Could that be an m8u2 issue too?

To your other question: Yes, I run jEdit in the chroot environment and 
just tried to upload the frimware. The verbose output reads:

Uploading Plumbing firmware
Device id: arduinomega
Using config: /usr/share/tvm-avr/conf/arduinomega.conf
Command: [/usr/bin/avrdude, -C, /etc/avrdude.conf, -U, 
flash:w:/usr/share/tvm-avr/firmware/tvm-avr-atmega1280-16000000.hex:i, 
-F, -P, /dev/ttyACM0, -c, arduino, -p, m1280, -b, 57600]
avrdude: stk500_recv(): programmer is not responding

I started to read a bit about the matter and found out, that the arduino 
profile configured in  the jedit seems to be the one for the mega1280.

So I tried the following from command-line:

# avrdude -C /etc/avrdude.conf -U 
flash:w:/usr/share/tvm-avr/firmware/tvm-avr-atmega1280-16000000.hex:i /
             -P /dev/ttyACM0 -c avrisp2 -p m2560

and was successful!!

What I don't got to work is to upload it from jEdit. I tried to modify 
/usr/share/tvm-avr/conf/arduinomega.conf accordingly:
TVM_MCU=m2560
and
TVM_AVRDUDE_*_FLAGS="... -c avrisp2"

The change in TVM_MCU was taken into account in the jEdit upload 
command, but the change in the FLAGS weren't, so the upload didn't work.


The next step was to try the heartbeat-program. The Problem now was, 
that the build-chain seems not to support the TVM_MCU=m2560 setting. 
After setting it back to m1280 the compilation run through, but I 
couldn't upload the compiled program to the arduino, as I don't know the 
command line to do it (I'm pretty new to all of the arduino stuff).

To get the compilation done with the TVM_MCU=m2560 I set the following 
Symlinks
tvm-avr/include/arch/m2560 -> m1280
tvm-avr/include/arch/arduinomega2560 -> arduinomega

and changed the plattfrom in arduinomega.conf.

Now I think I'm getting my source compiled as m1280 code, but who cares! 
I just can't upload the program because of the programmer setting, which 
is not red from the TVM_AVRDUDE_*_FLAGS in the conf-file.


Best regards,

Andreas


On 03/30/2013 12:27 AM, Matt Jadud wrote:
> Hi Andreas,
>
> This is only partially related; the Mega 2560 is going to be a problem 
> due to bootloader issues, I suspect.
>
> That said, could you please try the following:
>
> 1. In the Arduino environment, open up the IDE, open the Serial 
> Monitor, and set the speed to 115200.
>
> 2. Type "!!!?" (without the quotes) into the text field.
>
> 3. Hit the reset button on the Arduino.
>
> 4. Hit "Send" on the serial monitor immediately after. (You have, I 
> think, 500ms to hit the button.)
>
> You should get back a bunch of status information from the bootloader. 
> This will, I believe, include the date the bootloader was compiled.
>
> For both you and Christian, I would appreciate knowing what vintage of 
> bootloader we're dealing with.
>
> And, a question re: the i386-chroot environment: are you running the 
> JEdit IDE under Linux? I'm curious what you did to attempt the upload. 
> The error you're experiencing is an avrdude error. Knowing the command 
> you ran to attempt the upload would be useful.
>
> Cheers,
> Matt
>
>
>
>
> On Fri, Mar 29, 2013 at 5:48 PM, afromm <arduino at fromms-online.de 
> <mailto:arduino at fromms-online.de>> wrote:
>
>     Hi,
>
>     I just found the plumbing and Occam-pi programming environment for
>     arduino, and it seems to be just what I need for my project. So I
>     tried to install the Software but without any success. Here are
>     the details:
>
>     My System: Ubuntu Linux precise/amd64. The Arduino-IDE works great
>     with
>     my Arduino: Sainsmart Mega 2560
>
>
>     Here is what I tried to get Occam-pi to work.
>
>     First get the whole thing in my native system:  No chance, because
>     of the amd64 platform doesn't allow to install the i386 version of
>     many libs without throwing many applications away.
>
>     So I set up an i386-chroot. The Occam-pi environment installed
>     flawlessly, but couldn't get the firmware on my Arduino.
>     The error-message I got is the same as Christian Lewis gets on his
>     system:
>
>     Uploading Plumbing firmware
>     avrdude: stk500_recv(): programmer is not responding
>
>
>     After that I tried to install the Windows-Version running on a
>     Virtualbox Windows XP (32) System. There the error message was
>     that avrdude couldn't sync with the Arduino. The Arduino-System
>     could upload a sketch to the Board under Windows, but got a
>     checksum error after uploading the sketch.
>
>     Ah, and yes, I tried many times the uplaod process, disconecting
>     the Arduino in between and reseting it very often.
>
>
>     Any help would be great to finaly get the Ocam-pi-environment
>     running to start coding for my project.
>
>     Thanks in advance!
>
>     Andreas
>
>     _______________________________________________
>     users mailing list
>     users at concurrency.cc
>     http://lists.concurrency.cc/mailman/listinfo/users
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.concurrency.cc/pipermail/users/attachments/20130330/6fd821d9/attachment-0001.htm>


More information about the users mailing list