Author Topic: Flash bootloader wrong,if you know why, please leave a message, thank you  (Read 1335 times)

wangxinhao

  • Newbie
  • *
  • Posts: 1
    • View Profile
bootloader wrong, if you know why, please leave a message, thank you
I used two methods
1、The first method, using usbtinyisp

Click to erase writer verify, there are errors:
Reading | ################################################## | 100% 0.00s

avrdude.exe: Device signature = 0x1e9705
avrdude.exe: erasing chip
avrdude.exe: reading input file "D:\Work\Balanduino\tmp\Balanduino_latest\Balanduino\Firmware\hardware\Balanduino\avr\bootloaders\optiboot\optiboot_balanduino.hex"
avrdude.exe: input file D:\Work\Balanduino\tmp\Balanduino_latest\Balanduino\Firmware\hardware\Balanduino\avr\bootloaders\optiboot\optiboot_balanduino.hex auto detected as Intel Hex
avrdude.exe: writing flash (131072 bytes):

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

avrdude.exe: 131072 bytes of flash written
avrdude.exe: verifying flash memory against D:\Work\Balanduino\tmp\Balanduino_latest\Balanduino\Firmware\hardware\Balanduino\avr\bootloaders\optiboot\optiboot_balanduino.hex:
avrdude.exe: load data flash data from input file D:\Work\Balanduino\tmp\Balanduino_latest\Balanduino\Firmware\hardware\Balanduino\avr\bootloaders\optiboot\optiboot_balanduino.hex:
avrdude.exe: input file D:\Work\Balanduino\tmp\Balanduino_latest\Balanduino\Firmware\hardware\Balanduino\avr\bootloaders\optiboot\optiboot_balanduino.hex auto detected as Intel Hex
avrdude.exe: input file D:\Work\Balanduino\tmp\Balanduino_latest\Balanduino\Firmware\hardware\Balanduino\avr\bootloaders\optiboot\optiboot_balanduino.hex contains 131072 bytes
avrdude.exe: reading on-chip flash data:

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

avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x1fc00
             0xff != 0x1f
avrdude.exe: verification error; content mismatch

avrdude.exe done.  Thank you.

2、The second method
use Arduino IDE

click burn bootloader
but errors:
avrdude: verification error, first mismatch at byte 0x1fc00
         0xff != 0x1f
avrdude: verification error; content mismatch
Error while burning bootloader.


Lauszus

  • Administrator
  • Full Member
  • *****
  • Posts: 132
    • View Profile
@wangxinhao
First of all please remove the -F option from Avrdude, as you risk bricking the chip.

Are you using a 3.3V programmer? Note that the Balanduino operates at 3.3V and using a 5V programmer might destroy the hardware!

Btw why are you burning the re-bootloader? Did you have any problems with the one it came with?

Regards
Lauszus