Interesting distinction between arduino IDE and avrdude

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

Arduino Uno board is plugged to my PC (COM3 surely).I hit this command to the cmd(windows 10)

avrdude -c arduino -P COM3 -p m328p

Output:

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

avrdude done.  Thank you.

But,arduino IDE recognizes and uploads a code to this board flawlessly.As want to work with atmel studio i need to make it working.Secondly,is it feasible to program ATtiny85 chip with FTDI chip of arduino uno in atmel studio (connections like in this pic,RX should be connected  as well):

https://mwwalk.files.wordpress.c...

Thanks beforehand

This topic has a solution.
Last Edited: Fri. Feb 8, 2019 - 03:29 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your avrdude command should work if COM3 is correct.  

 

It will just read the Signature.

Of course avrdude.exe and avrdude.conf must be found on your PC.

 

-c arduino will assert DTR giving a reset pulse to your Uno

-b 115200 is not necessary because it defaults to 115200

-P COM3 must be correct COM#

-p m328p  is correct for Uno

 

David.

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

Eldar Maharramli wrote:
Secondly,is it feasible to program ATtiny85 chip with FTDI chip of arduino uno in atmel studio (connections like in this pic,RX should be connected as well):

Disconnect the T85 and the above command should work..

As for how to program a T85 using an uno as a programmer is cover a lot on the interwebs!

Hint: it requires loading an ISP programmer sketch into the uno first, then making several wire connections(ISP) to the t85.

 

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

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

This works here:

 

avrdude -v -patmega328p -carduino -PCOM3 -b115200

 

 

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

 avrdude.exe and avrdude.conf  are there:

C:\WinAVR-20100110\bin

COM# is correct.I`ve changed several times and it works with Arduino IDE,device manager shows the exact port  number too.What else could be the cause?

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Isn't there an option in the Arduino IDE to say "operate verbose" and then you get to see the exact command that is used? Just copy that and it should work identically away from the IDE.

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

ki0bk wrote:

Eldar Maharramli wrote:
Secondly,is it feasible to program ATtiny85 chip with FTDI chip of arduino uno in atmel studio (connections like in this pic,RX should be connected as well):

Disconnect the T85 and the above command should work..

As for how to program a T85 using an uno as a programmer is cover a lot on the interwebs!

Hint: it requires loading an ISP programmer sketch into the uno first, then making several wire connections(ISP) to the t85.

 

Jim

 

Thanks for the reply!I didn`t mean SPI connection.As I don`t have any external programmer,I want to know that,could I use FDTI chip in UNO board to upload a hex file to  AVR chips such as t85,because I could barely find anything for that

Last Edited: Fri. Feb 8, 2019 - 03:19 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks!Worked

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

Eldar Maharramli wrote:
I didn`t mean SPI connection.As I don`t have any external programmer,I want to know that,could I use FDTI chip in UNO board to upload a hex file to AVR chips such as t85,because I could barely find anything for that
No.

 

But first, there is no FTDI (not FDTI!) chip on an UNO.  There is an ATmega16U2 (on the Rev 3, at least), which provides the same serial functionality as an FTDI.  But that's neither here nor there.

 

You're able to upload to the Uno without a programmer because the target (the ATmega328p) on the Uno has a serial bootloader (probably 'Optiboot') which behaves like a programmer, as far as avrdude is concerned.  The t85 doesn't ship with a bootloader (most AVR don't, in fact), so you need to program it with a standard ISP programmer.  What Jim was trying to say in #3 is that the Uno can be turned into an ISP programmer.  In fact, the Arduino IDE ships with an example sketch called ArduinoISP which does exactly this.  Load it onto your Uno, and follow the instructions (in the sketch, or search Google) to connect the Uno to your t85 target.  Then use avrdude with -c stk500v1 -b 19200.

 

Come back here if you have any issues/questions.

"Experience is what enables you to recognise a mistake the second time you make it."

"Good judgement comes from experience.  Experience comes from bad judgement."

"Wisdom is always wont to arrive late, and to be a little approximate on first possession."

"When you hear hoofbeats, think horses, not unicorns."

"Fast.  Cheap.  Good.  Pick two."

"We see a lot of arses on handlebars around here." - [J Ekdahl]

 

Last Edited: Fri. Feb 8, 2019 - 04:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks!Here is the issue:

https://www.avrfreaks.net/forum/...