piclist 2003\11\10\232702a >
Thread: Bootloaders and BOOTRST
www.piclist.com/techref/index.htm?key=bootloaders+bootrst
flavicon
face BY : Michael Milner email (remove spam text)



Hi,

I've used PICs for quite some time and I've recently started dabbling with
AVRs (I like the gcc tool chain).

I've been trying to get a bootloader to work properly on the ATmega8.  The
bootloader code works, however I'm having trouble getting the AVR to start
in the bootloader when reset.

Supposedly programming (clearing) the BOOTRST fuse will cause the
processor to start at the beginning of the bootloader section on reset
(instead of at the application code at 0x0000).  Instead, the code starts
at the application code regardless of the value of the fuse.  Are their
any tricks to this?  Am I forgetting something?

I'm using the uisp programmer under Linux.  The following shows the
current value of the fuses:

[--START COMMAND PROMPT--]
[root@lh work]# /usr/local/bin/uisp -dlpt=0x378 -dprog=dapa --rd_fuses
Atmel AVR ATmega8 is found.

Fuse Low Byte      = 0xff
Fuse High Byte     = 0xc0
Fuse Extended Byte = 0xff
Calibration Byte   = 0xa4  --  Read Only
Lock Bits          = 0xff
   BLB12 -> 1
   BLB11 -> 1
   BLB02 -> 1
   BLB01 -> 1
     LB2 -> 1
     LB1 -> 1

[--END COMMAND PROMPT--]

Anyone have any ideas?

Thanks,

Mike

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

<33480.64.230.49.221.1068524104.squirrel@secure.blissisland.ca>

See also: www.piclist.com/techref/index.htm?key=bootloaders+bootrst
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Bootloaders and BOOTRST

month overview.

new search...