AVRProg - where is the user docs?

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

I made a few small mods to the Mega8 serial bootloader from the Academ (author Carlott). It's in assembly language and fits in 512 bytes. Installed it using an AVR ISP serial port dongle.

Now, towards the goal using the serial boot loader, after fumbling in the dark, by trial and error, I discovered that Atmel's AVRProg.exe works with this code. AVRStudio includes AVRProg.exe. The Mega8 bootloader has to be activated by sending an ESC character right after power up, then close that serial link, and then run AVRProg from a DOS prompt.

I do not have an STK500.

AVRProg.exe apparently has no built in help (like a -? switch). I discovered that STK500.exe has a -h and -? switch which produces some useage info which is also in the AVRStudio documentation. Some (all?) of the command line switches for STK500.exe also work with AVRProg.exe.

Is there a doc for AVRProg.exe?

Secondly - it appears that AVRProg.exe sets the chosen serial port to 19.2Kbaud - I see no switch to change the rate.

Maybe there's a better 512 byte bootloader, with a PC side program (preferrably GUI based). I found a few larger bootloaders on AVRFreaks, but this Mega8 loader was the first I tried. My goal is to use this bootloader on a 900MHz wireless serial link (MaxStream) at 56K or 110K baud.

I have the 19.2K Mega8 bootloader working with AVRProg, but don't know if the latter can be told to go faster.

Thanks in advance for your help.

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

Search this site for "avrprog". The first hit lead you to the application and a user guide.

Maybe you will want to consider AVROSP too. Check Application Note AVR911.

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

I'm a dolt. I searched Atmel's site and didn't find that doc.
However, I cannot get the windows version to find the Atmel serial ISP product. I tried COM1 and COM6 and AVRProg.exe says it does not detect the device. If I invoke that same program (not the DOS version) with a command line which tells it which COM port to use, the Atmel Serial ISP programmer works correctly. I would like to know the command line arguments to AVRProg.exe - which aren't in that Atmel AVRProg document. I'd prefer not to use the command line version nor the DOS version.

Secondly, the document doesn't say if the serial programmer support is fixed at 19.2Kbaud. But there is no user choice either. So it must be.

AVROSP - I'll look into that too.

Thanks

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

update: I confused AVRProg with STK500.exe which can do serial programming:
stk500 -dATMega8 -ms -c1 flashfile.hex