Compile avrdude programmer (part of winavr) for custom lpt

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

Hi
My pc doesn't have a parallel port (lpt) and i am using a PCI card with adds serial and parallel ports to my system.
I tried to use avrdude in windows with no success, my lpt1 is in address 0xE800, i also tried to insert PCI_0xE800 instead of lpt1 in the port selector but that didn't work either.
Someone suggested that a hex editor could be used to change the lpt address inside avrdude but it wasn't possible for me to find the bits to change.
I had to compile the program after setting my custom address to a source file, unfortunately setting up the compile environment (minGW+msys & library's) and trying to figure how to make this work, took about seven hours but i managed to compile avrdude and works fine.
With the addition of AVR8 Burn-O-Mat ( http://avr8-burn-o-mat.aaabbb.de/ ) which is a great front end to avrdude, programming an avr mc is easier than ever.

Since I have the compile environment set it is very easy for me to compile avrdude with the settings that you need, so if you want me to compile avrdude with your port settings please send me a message with the port name (lpt1, lpt2, lpt3 etc. ) and the address you need.
To see that go to system properties (right click on my computer icon and select properties)>>>hardware>>>device manager>scroll down to ports (com&lpt)>>>double click the lpt port>>>press the resources tab>>> and there you can see the lpt address and name
For example in my system it says

MosChip PCI parallel port lpt1

I/O Range E800-E807
I/O Range E480-E487

What you need is lpt1 name and E800 address

Thank you
Alex

"For every effect there is a root cause. Find and address the root cause rather than try to fix the effect, as there is no end to the latter."
Author Unknown

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

From the avrdude manual (yes, it is the old thing: when all else fails, read the manual):

Quote:
A.2.3.2 Parallel Ports

AVRDUDE will accept 3 Windows parallel port names: lpt1, lpt2, or lpt3. Each of these names corresponds to a fixed parallel port base address:

lpt1

0x378
lpt2

0x278
lpt3

0x3BC

On your desktop PC, lpt1 will be the most common choice. If you are using a laptop, you might have to use lpt3 instead of lpt1. Select the name of the port the corresponds to the base address of the parallel port that you want.

If the parallel port can be accessed through a different address, this address can be specified directly, using the common C language notation (i. e., hexadecimal values are prefixed by 0x).

BTW, you would increase the chance to get answers if you would write comprehensible sentences, stay focused (WTF has that burn-o-mat thing to do with your problem?) and not randomly color or highlight things as if you have done to much weed.

Stealing Proteus doesn't make you an engineer.

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

Hi

You are right, putting the address instead of the port name works fine, i don't know why it didn't work the first time i tried.
Anyway. i guess there is no need for a custom compiled avrdude

Alex

"For every effect there is a root cause. Find and address the root cause rather than try to fix the effect, as there is no end to the latter."
Author Unknown