AVRUSBBoot on ATmega128
Posted: Tue Sep 09, 2014 10:21 am
Hi,
I try to run USB bootloader on Atmega128.
I use AVRUSBBoot from Thomas Fischl.
I change :
BOOTLOADER_ADDRESS = 1F800
Boot Flash section size=1024 words Boot start address=$FC00; [BOOTSZ=10]
and change :
GICR = (1 << IVCE); /* enable change of interrupt vectors */
GICR = (1 << IVSEL); /* move interrupts to boot flash section */
to :
MCUCR = (1 << IVCE); /* enable change of interrupt vectors */
MCUCR = (1 << IVSEL); /* move interrupts to boot flash section */
and set BOOTRST=0 fuse bit to start boot loader after reset.
I comment BOOTLOADER_CONDITION and leaveBootloader() to run without exit from boot loader.
but it's not work. and my pc not detect usb AVRUSBBoot.
I try again and change :
BOOTLOADER_ADDRESS = 0000
and unprogrmmed BOOTRST fuse bit = 1
and comment the MCUCR
//MCUCR = (1 << IVCE); /* enable change of interrupt vectors */
//MCUCR = (1 << IVSEL); /* move interrupts to boot flash section */
it's work usb and detect my pc AVRUSBBoot!
please help me to install usb bootloader on ATmega128.
thanks.
- See more at: http://www.avrfreaks.net/forum/usb-boot ... l4LKq.dpuf
I try to run USB bootloader on Atmega128.
I use AVRUSBBoot from Thomas Fischl.
I change :
BOOTLOADER_ADDRESS = 1F800
Boot Flash section size=1024 words Boot start address=$FC00; [BOOTSZ=10]
and change :
GICR = (1 << IVCE); /* enable change of interrupt vectors */
GICR = (1 << IVSEL); /* move interrupts to boot flash section */
to :
MCUCR = (1 << IVCE); /* enable change of interrupt vectors */
MCUCR = (1 << IVSEL); /* move interrupts to boot flash section */
and set BOOTRST=0 fuse bit to start boot loader after reset.
I comment BOOTLOADER_CONDITION and leaveBootloader() to run without exit from boot loader.
but it's not work. and my pc not detect usb AVRUSBBoot.
I try again and change :
BOOTLOADER_ADDRESS = 0000
and unprogrmmed BOOTRST fuse bit = 1
and comment the MCUCR
//MCUCR = (1 << IVCE); /* enable change of interrupt vectors */
//MCUCR = (1 << IVSEL); /* move interrupts to boot flash section */
it's work usb and detect my pc AVRUSBBoot!
please help me to install usb bootloader on ATmega128.
thanks.
- See more at: http://www.avrfreaks.net/forum/usb-boot ... l4LKq.dpuf