AVRdude for 16Bit environment (MS-)DOS

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

Hello AVR-freaks,

for programming several ATmega128 controllers I want to use an old MS-DOS computer. On my Win'98-PC I am using AVRdude to setup and program the devices with the help of a batch file, also with error evaluaion. ("if errorlevel 1 goto labelerror")

Does anybody has a 16bit version of AVRdude?

If not so:
Is it easily possible to compile it for MS-DOS?
I'm thinking of changing just a compiler switch...
Does the Win32-GCC compiler would make it?

I know: the alternative program is SP12, which is also available as a 16bit Dos version. But the commands differ, and it would be handy to use and maintain only one batch file for programming.

Michael

P.S: Hoping that this topic was not discussed in former posts ...

In the beginning was the Word, and the Word was with God, and the Word was God.

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

> Is it easily possible to compile it for MS-DOS?

I seriously doubt it. I wouldn't even want to program 16-bit
addressed segmented memory for money, regardless how much money you'd
like to throw at me. :-/

If you really need to run it on an 8086 machine, I can't help you. If
the machine is at least an 80386, well, you could of course run a
small Unix on it :), but also a so-called "DOS extender" might help
you. DJGCC is probably the quick solution then, as it is GCC-based.
Perhaps you have to write a dummy module replacing the Win32 serial IO
stuff (which you aren't interested in anyway I believe). ppiwin.c
uses direct port IO so that's compatible with your model already, I
think you have to disable the search for the giveio.sys driver there.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

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

Thank you, Jörg, for the answer.

So, in my case I think the most easy way is it, to change the batchfile for the SP12 tool and also the commands/options.

Another (new) idea is to make a 'sub batch file' which handles the access to SP12 program and changes the commands/options where an equivalent is available.

Michael

P.S: The idea with the Unix (or Linux) operating system sounds also interesting, have to check, how old the processor is (but I think it is 80386 or newer). Just because a 16Bit-Dos is installed, I was thinking of a 16bit version of AVRdude.
Maybe http://freedos-32.sourceforge.net/ will work, but it is in alpha state?!?

In the beginning was the Word, and the Word was with God, and the Word was God.

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

I don't really think what yet another DOS port would gain you
though. Remember, the Unix toolset is quite major, so if you
go that route, you'll find lots of people being able to help
you, and enough tools around (ompiler etc.) to get you going.

As for MS-DOS, I think using DJ-GCC is the best option. If you
feel like going that path, feel free to contribute back the
changes to AVRDUDE (preferrably also by porting the serial IO
part). That will give you your own mini-32-bit execution
environment inside MS-DOS, so to speak.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.