Unable to Load using Amtel Studio 7 and Avrdude

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am trying to load code to an Arduino Mega2560 from Amtel Studio 7 and avrdude.exe. I get the following:-

 

avrdude.exe: stk500_getsync(): not in sync: resp=0x00

avrdude.exe: stk500_disable(): protocol error, expect=0x14, resp=0x51

 

Consulting with my friend Google I find this is not uncommon and is due to problems with the serial link.

However none of the remidies suggested have helped and the link is working for the Arduino IDE.

 

I am not sure what baud rate I should use. i thought tha baud rate was irelavent with USB but I tried several anyway

(115200,57600 , .. . and 9600 which the Arduino serial library uses)

 

I also wondered whether the existing progam effected it so I loaded a sketch with Arduino IDE which didn't use the serial link.

Without the serial link in use I get 3 flashes on the RX LED at about 1 second intervals followed after by atother after 20 seconds.

 

I would appreciate any suggestions about what to try next as I am lost for Ideas.

 

Regards Roger

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If it is working from the Arduino IDE, capture the avrdude command line that the IDE generates.

(Hint: You can capture the command line by downloading a sketch with the board disconnected.)

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you Chuck for the idea which I tried. The command lines  were basically the same except for different paths to the required files and calling up different programmers.

The Arduino IDE uses "wiring" which Amtel Studio did not recognise.

 

Regards Roger

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Roger S wrote:
The Arduino IDE uses "wiring" which Amtel Studio did not recognise.

 

I don't understand what you mean by "Amtel Studio did not recognise".

 

As I understand it, Arduino  IDE uses avrdude and you've set up Atmel Studio to also use avrdude.

Are you saying that the avrdude.exe that Atmel Studio called did not recognize "wiring"?

 

Will you post the avrdude command lines generated by both Arduino IDE and Atmel Studio?

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Hi Chuck,

I was gettng the command lines for you when I noticed that Arduino IDE used avrdude version 6.3 whereas Amtel Studio had an older version.  Updating the version to the newer one seems to have solved the problem.  Now to make the program work!!

Thank you for your help.

 

Regards Roger

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm glad you got it working.

Good luck with the program.