Hi everyone,
I am developing a board with Atmega2560 to control my other modules. I make the schematic attached below. I want to program my mcc via arduino IDE but i have some problems.
i set my mcu fuse bits as Mega2560 default.
Low : 0xFF
High : 0xD8
Extended : 0xFD
i use 16mhz crystal oscillator but my blink example works interesting.
i burn arduino atmega2560 boot loader. and it works with no error but when i connect to blink led pin it works as below
what is the problem ?
and why can not i program my mcu via arduino ide ?
How are you programming it? USB/Serial adapter? Try without C5, it may interfere with DTR signal coming in and screwing up the reset pulse.
Why didn't you use any 0.1uF caps on the Vcc & AVcc pins?
i m using USBasp as a programmer, i can burn boot loader so i do not thing C5 is a problem.
i burn boot loader and program via arduino IDE but program not work. i burn same code to original arduino atmega2560 it works.
while i m burning boot loader arduino ide gives an error
"avrdude: warning: cannot set sck period. please check for usbasp firmware update."
but burn is success and sample blink code in boot loader works.
Usbasp cannot burn a bootloader in a 2560 correctly, see this thread. The symptoms you describe look similar.
Like in that thread, I would upload the latest version of ArduinoISP to your original mega and install avrdude 6.1. This combo lets you program the bootloader correctly.
B.t.w. I would certainly follow Crossroads advice about the caps to Vcc and AVcc.