Programming with Bootloader

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

Hey All

I have used design note 32 with a few mods to implement bootloader on a M128.
My question is how do i then program my application code into the AVR.
The application note suggests using AVRPROG but when i try to open AVRPROG i just get "no supported board found".
Also i have inserted the 3 signiture bytes for a M128 in place of the M163 bytes, but i can not find anywhere what the device type for a M128 is to replace the 0X66 for a M163
Can anyone point me in the right direction.

Regards Steve

admin's test signature
 

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

Steve,

Check bootloader response with a terminal program - send characters "a", "p", "s", "S", "t", "V" while observing for return of the correct response characters.

For bootloader initialization of the USART, try a slower baudrate setting (UBRR), that will have a minimal error for the target baudrate, say 19,200 or 9,600 baud.

I've found that AVRPROG won't acknowledge baudrates greater than 38,400 for my implementations with the M161 and M162 using MAX232A's and Fclk of 7.3728 and 14.7456 MHz. Must be doing something wrong...

For bootloader device codes - search AVR Forum for "bootloader for ATmega32" reply by Michael Collas of May 08, 2003.

Stan

admin's test signature