Need avrdude help- MinimOSD (MEGA328P) Bootloader

Help with any software/desktop related issues. e.g. companion9x, eePe, etc
Post Reply
lasakro
Posts: 1
Joined: Wed Jul 27, 2016 6:43 am
Country: -

Need avrdude help- MinimOSD (MEGA328P) Bootloader

Post by lasakro »

I know this topic is beaten to death but it's also killing me. I'm new to avrdude and Arduino in general. I'll run through the steps and please tell ne what I'm doing wrong. I'm not sure I have a successfully loaded boot loader at the end:

1) Upgraded my USBasp firmware so that I don't receive the sic error or whatever it was.
3) Run:avrdude -c usbasp -p m328p -U lfuse:w:0xFF:m
(Good)
4) Run:avrdude -c usbasp -p m328p -U hfuse:w:0xDA:m
(Good)
5) Run:avrdude -c usbasp -p m328p -U efuse:w:0x05:m
Now this returns:

Code: Select all

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.49s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "0x05"
avrdude: writing efuse (1 bytes):

Writing |                                                    | 0% 0.00s ***failed;
Writing | ################################################## | 100% 1.30s

avrdude: 1 bytes of efuse written
avrdude: verifying efuse memory against 0x05:
avrdude: load data efuse data from input file 0x05:
avrdude: input file 0x05 contains 1 bytes
avrdude: reading on-chip efuse data:

Reading | ################################################## | 100% 0.20s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0xfd != 0x05
avrdude: verification error; content mismatch

avrdude: safemode: efuse changed! Was 5, and is now fd
Would you like this fuse to be changed back? [y/n] 
I select no.

6) Run:avrdude -c usbasp -p m328p -U flash:w:ATmegaBOOT_168_atmega328.hex

Output:

Code: Select all

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.49s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "ATmegaBOOT_168_atmega328.hex"
avrdude: input file ATmegaBOOT_168_atmega328.hex auto detected as Intel Hex
avrdude: writing flash (32670 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 32670 bytes of flash written
avrdude: verifying flash memory against ATmegaBOOT_168_atmega328.hex:
avrdude: load data flash data from input file ATmegaBOOT_168_atmega328.hex:
avrdude: input file ATmegaBOOT_168_atmega328.hex auto detected as Intel Hex
avrdude: input file ATmegaBOOT_168_atmega328.hex contains 32670 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 32670 bytes of flash verified

avrdude: safemode: Fuses OK (E:FD, H:DA, L:FF)

avrdude done.  Thank you.
So do I have a functioning bootloader? I try to upload install the latest MinumOSD software and I can't get past uploading the firmware. Can't update EEPROM or configuration file. Can't upload character set. To get the firmware to upload I had to manually press the reset button even though my FTDI adapter DTR signal was connected. They have a thread on RCG but it's really dedicated tot he firmware, not issues for bootloader:
http://www.rcgroups.com/forums/showthread.php?t=2591835

User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: Need avrdude help- MinimOSD (MEGA328P) Bootloader

Post by kalle123 »

Could you please say, what device you are trying to load that bootlaoder.

And let me ask, why are you not using the Arduino IDE to load that bootloader? Hex file comes with the Arduino IDE. See pic.

And I don't mess much with the command line of avrdude . I use AVR8_Burn-O-Mat, when I have to use the usbasp. Makes things easier ...

br
Attachments
Bildschirmfoto5.jpeg
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Need avrdude help- MinimOSD (MEGA328P) Bootloader

Post by Kilrah »

kalle123 wrote:Could you please say, what device you are trying to load that bootlaoder.
It's in the title ;)
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: Need avrdude help- MinimOSD (MEGA328P) Bootloader

Post by kalle123 »

MinimOSD did not ring the bell :mrgreen:

But there is a ISP connector and why not flash the bootloader with usbasp and Arduino IDE?
Don't have to fuzz with the command line of avrdude ....
Bildschirmfoto6.jpeg

Post Reply

Return to “Software”