Forum >L298 2A Shield - upload problem
ArduinoGeneral

L298 2A Shield - upload problem

userHead Account cancelled 2011-07-14 05:57:13 6167 Views1 Replies
Hello,

I have the arduino ATMega2560 (DFR0127) + I/O Expansion shield v5 (DFR0088) + 2A motor shield (DRI0009).
I can upload without any problem my program on the Arduino card itself alone or when I connect on top of it the I/O expansion shield.
Unfortunately, when I connect the 2A motor shield on top of the Arduino ATMega2560, I can not anymore upload any program. I tried also without connecting anything to both the shield and Arduino card.
Is it normal?
I have the following error written in red in my arduino development screen.
[i]avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500v2_command(): unknown status 0xc8
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500v2_command(): unknown status 0x01
avrdude: stk500v2_disable(): failed to leave programming mode[/i]

How can I upload program on my arduino board keeping the motor shield connected on top of it?

Looking to some website, It seems that the problem could come from the digital pin 7 used for the motor direction and which could interfere with the upload program feature of the Arduino. Did you notice already such kind of behavior? Any idea how can I solve this problem?

Thanks for your help.
2011-07-14 20:38:03 Hi Nicobot,

In the Arduino IDE did you select the ATMega2560 or the ATMega 1280?? Please make sure the right board is selected. Aslo have you tried using a different USB cable? sometimes the USB cable may cause some problems.

We have tried replicating your problem here, and have found no trouble in connecting both the Motor shield and expansion shields to the DFRduino Mega2560.

You might also try:
1. using a different computer if you have one available.
2. Supplying external power to the motor shield, since the motor shield consumes too much power some computer will not supply the power necessary to drive both the Arduino and motor driver.
userHeadPic Hector