how to add own programmer into avrdude?

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

hi all,

So far i'm just using others people programmer to write my code into my AVR.Both of the programmer i'm using they are program through avrdude. Some question just come out from my mind one day.which is, how avrdude can recognize each of the programmer since there are more than 10 of different programmer support by avrdude. why?

thanks.

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

Take a look at the file avrdude.conf - all is revealed within ;-)

This is one of the joys of avrdude in that programmers with new pin layouts can be added simply by editing that text file rather than rebuilding the entire program.

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

hi,

thanks for the reply.It is interesting after i refer to the conf file. As what i have read from the conf file.it stated the entry format for a new programmer.But why some of the programmer like arduino and avrisp, they don't have to enter in such as Vcc ,reset,MISO ...'s pin number.i just can see id, desc and type.Why?

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

Quote:

But why some of the programmer like arduino and avrisp, they don't have to enter in such as Vcc ,reset,MISO ...'s pin number.i just can see id, desc and type.Why?

Some programmers are far higher level than just switching voltages on pins.

The lowest level programmers in avrdude.conf use pins on either the serial or parallel port of a PC and the definition says which pins are used for what functionality listed after the "type =" (where type is probably "par" or "serbb")

Some of the protocols avrdude supports are bootloader communications protocols so for those the entry will just name the protocol (and the support is built into avrdude.exe)

Some of the protocols avrdude supports are "intelligent programmer" control and again the conf entry just identifies which protocol drive the .exe should use.

Why is any of this important to you anyway? For most people it's just a case of matching the -c option to the programmer actually being used - how it actually achieves the task is irrelevant.

If you are really interested then the avrdude source code is at:

http://savannah.nongnu.org/proje...

Cliff

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

hi clawson,

Quote:
Why is any of this important to you anyway? For most people it's just a case of matching the -c option to the programmer actually being used - how it actually achieves the task is irrelevant.

haha..let me answer your question.Not to say important to me. Just curious about how it could happen.just to learn one more thing instead just use it.
Anyway.thanks for the reply.