Need to help. Program not run after fuse bit on Adruino Mega2560

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi guys,

I using IDE to compling the Blink.ino to hex file
and using USBISP fuse bit follow inside arduino (mega.bootloader.low_fuses=0xFF,mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD8,mega.menu.cpu.atmega2560.bootloader.extended_fuses=0xFD.
after click Auto to flash program, but code not running ( the led on Arduino Mega2560 not blinking)
If I reload bootloader then it running
Please help me, what's wrong.

Attached are setting and video.

( Sorry my english)

Thanks so muchs

Reed Noel

Attachment(s): 

Everything starts at zero

Last Edited: Wed. Feb 14, 2018 - 11:34 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Perhaps Cliff's tutorial on recovering a "bricked" AVR will be of help.

 

The tutorial can be found: HERE.

 

JC

 

Perhaps a Moderator would consider making Cliff's un-bricking tutorial a "sticky" in the Tutorial Forum.

It would be easier to find for this rather frequent need. * As you wish. *

 

JC 

 

Edit:

Welcome to the Forum.

Report back on your progress.

 

JC

Last Edited: Thu. Feb 15, 2018 - 05:04 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Serial programming fuse seems to be disabled -> Follow DocJC.

 

Does it have the bootloader?

Can you connect to the bootloader?

Looking a bit further: In the text below your fuse window I see:

1: Erase, Write Flash, Verify Flash, Write Eeprom, Verify Eeprom, Successfully done (2/14/2018 ...

 

 

My knowledge of the fuses is to fuzzy to know if that fuse would have any effect on the functionality of the bootloader...

Paul van der Hoeven.
Bunch of old projects with AVR's:
http://www.hoevendesign.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks for feedback @DocJC,

I am newbie, so don't understand when reading your link.

and I using Progisp 1.72, I haven't AVR Studio.

Please show me where my mistake with many thanks

RGs

Reed.

Everything starts at zero

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks @Paulvdh,

Before fuse bit, it had bootloader, After it haven't.

With Uno, do it same this one, It working.

I don't know how to do it with Arduino Mega as it worrking.

Rgs

Reed.

 

 

Everything starts at zero

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The Uno comes out of the box with a Bootloader.

The Mega2560 comes out of the box with a Bootloader.

 

There is no need to use an external programmer unless you need debugWIRE or JTAG.

All regular HEX files can be uploaded to your Arduino hardware with the Bootloader.

 

If I write a program in CodeVision or AS7 I still upload it with the Bootloader.

You are not tied to Arduino in any way.

 

If you brick your AVR by setting the wrong fuses,  you can often recover by supplying an external clock signal to XTAL1.

 

If you set RSTDISBL on a Uno,  you might just as well buy another clone Uno.

The Mega2560 does not have a RSTDISBL.   so you should always be able to recover.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks @David,

I want that, fuse bit and lock chip on Arduino Mega2560.

If I using Atme2560, I need disign the PCB, and add some more Xtal, Res, ....

with arduino, It have everything,.. include pinout already.

Rgs

Reed

 

Everything starts at zero