Hi and good evening.
I have a problem with my UNO R3 bootloader.
-
I don't know which .hex file to upload using ISP programmer.
-
I am using PICKit2 as my AVR programmer, based on wiring and instruction from My Stuff: Using PicKit2 Programmer to program Atmel's microcontrollers.
-
First try, I use "ATmegaBOOT_168_atmega328.hex" from "C:\Program Files\Arduino\hardware\arduino\avr\bootloaders\atmega". Result:-
C:\WinAVR\bin>avrdude -c pickit2 -p m328p -v -V -U boot:w:"ATmegaBOOT_168_atmega
328.hex":a
avrdude: Version 6.2, compiled on Nov 20 2015 at 23:33:37
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\WinAVR\bin\avrdude.conf"
Using Port : usb
Using Programmer : pickit2
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 36
00 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 45
00 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00
Programmer Type : PICkit 2 Microcontroller Programmer
Description : MicroChip's PICkit2 Programmer
avrdude: MicroChip's PICkit2 Programmer firmware version 2.32.0
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as FF
"boot" memory type not defined for part "ATmega328P"
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK (E:FF, H:D9, L:62)
avrdude done. Thank you.
C:\WinAVR\bin>
- I use "optiboot_atmega328.hex" from "C:\Program Files\Arduino\hardware\arduino\avr\bootloaders\optiboot". Result:-
C:\WinAVR\bin>avrdude -c pickit2 -p m328p -v -V -U boot:w:"optiboot_atmega328.he
x":a
avrdude: Version 6.2, compiled on Nov 20 2015 at 23:33:37
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\WinAVR\bin\avrdude.conf"
Using Port : usb
Using Programmer : pickit2
AVR Part : ATmega328P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PC2
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
Block Poll Page
Polled
Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW Max
W ReadBack
----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
eeprom 65 20 4 0 no 1024 4 0 3600 36
00 0xff 0xff
flash 65 6 128 0 yes 32768 128 256 4500 45
00 0xff 0xff
lfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
efuse 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
lock 0 0 0 0 no 1 0 0 4500 45
00 0x00 0x00
calibration 0 0 0 0 no 1 0 0 0
0 0x00 0x00
signature 0 0 0 0 no 3 0 0 0
0 0x00 0x00
Programmer Type : PICkit 2 Microcontroller Programmer
Description : MicroChip's PICkit2 Programmer
avrdude: MicroChip's PICkit2 Programmer firmware version 2.32.0
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as FF
"boot" memory type not defined for part "ATmega328P"
avrdude: safemode: hfuse reads as D9
avrdude: safemode: efuse reads as FF
avrdude: safemode: Fuses OK (E:FF, H:D9, L:62)
avrdude done. Thank you.
- This means that the bootloader upload failed. Any idea, comment, suggestion on this issue?
Thanks.