So currently I'm working on a project using a ATmega 2560 mcu card with a 10mhz crystal (link#1). My main goal is to use the Arduino IDE to upload sketches to this chip to run my bread board circuit. In the beginning I had planned to use Atmel Studio to upload Arduino Sketches, but I decided to go with the more direct route. I am using 2 programmers the Atmel ICE, and the Atmel AVR ISP MKii.
Anyways here is my issue, I tried to use the Arduino ide and the MKii to burn the bootloader to the chip. However, it did not work, it uploaded, but I was at that point no longer able to communicate with the device. When I switched to Atmel Studio, and used the ICE programmer, my chip could not be read and recognized (whereas before it could). I can't even program it. (I had bought two)
I then figured I would try and read the fuse bits on the other programmer and burn the bootloader using atmel studio (since the Arduino ide has no info on this) and I looked up the proper bits to change (link#2 below) and then burned the bootloader, worked fine and then changed the fuse bits which resulted in an error and now I again cannot talk to the device. I am guessing that something is going wrong with the suggested fuse bits but I do not know how to change them or how to fix this. The Original fuse bits that I read from the device are listed below
I checked my wiring a billion times and it is all perfect I just need suggestions to fix this mess thanks.
There is a fuse bit on AVRs that disables the reset pin, which makes it so you cannot write anything else. I have accidentally done this. I bet that is what happened. You can use a high voltage programmer to force it to reset so you can write new fuse bits with the reset enabled. Just google avr high voltage programmer.
The fuses he's set shouldn't have disabled reset. Actually, the ATMEGA2560 doesn't seem to have RST disable fuse...
It's as if the crystal isn't connected... Is the jumper set correctly? Per docs on that board, it looks like that jumper controls whether the crystal is connected.
In the picture in that product description you linked to, there is a little yellow thing sitting between two pins on a row of 3 pins. That yellow thing is a jumper, and it just connects two pins. It's meant to be between the center pin, and one of the other two.
per the manual:
that jumper sets whether the osc1 pin is connected to the crystal, or the pinheader.
If you programmed the board as standard device, it will expect to be running at 16 MHz.
If you running instead at 10 MHz, that will screw up comm's for sure.
I then figured I would try and read the fuse bits on the other programmer and burn the bootloader using atmel studio (since the Arduino ide has no info on this)
You could try Nick Gammon's tools also
I think the Program Bootloader sketch reads out& reports on the fuses.