Hi Nick,
first of all: thank you for your work! Providing people with working code _and_ useful interfaces is really a great thing to do!
I made a custom 2560 board and uploaded a bootloader with your board_programmer and it works fine. Now I got a second chip and soldered it on a similar board and it won't do. The connections seem fine but apparently it doesn't use the external oscillator (at least there's no frequency to read there with my scope).
When trying to program, verifying fails
and looking on what you wrote about the bootloader starting address, this starting point seems to be odd.
Using your fuse calculator I get
I tried to set fuses with your hex_programmer, but there it won't respond.
Any idea what could be wrong here? Do I need to get an AVR Dragon for this?
Thanks for reading!
Cheers
ff
first of all: thank you for your work! Providing people with working code _and_ useful interfaces is really a great thing to do!
I made a custom 2560 board and uploaded a bootloader with your board_programmer and it works fine. Now I got a second chip and soldered it on a similar board and it won't do. The connections seem fine but apparently it doesn't use the external oscillator (at least there's no frequency to read there with my scope).
When trying to program, verifying fails
Quote:
Verification error at address 3E000. Got: 0xFF Expected: 0x0D
.
.
.
Verification error at address 3E064. Got: 0xFF Expected: 0x0D
5756 verification error(s).
Verification error at address 3E000. Got: 0xFF Expected: 0x0D
.
.
.
Verification error at address 3E064. Got: 0xFF Expected: 0x0D
5756 verification error(s).
and looking on what you wrote about the bootloader starting address, this starting point seems to be odd.
Using your fuse calculator I get
Quote:
Entered programming mode OK.
Signature = 0x1E 0x98 0x01
Processor = ATmega2560
Flash memory size = 262144
LFuse = 0x62
HFuse = 0x99
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0x8D
OCD Enable.............................. [ ]
JTAG Enable............................. [X]
Enable Serial (ICSP) Programming........ [X]
Watchdog Timer Always On................ [ ]
Preserve EEPROM through chip erase...... [ ]
Boot into bootloader.................... [ ]
Divide clock by 8....................... [X]
Clock output............................ [ ]
Bootloader size: 8192 bytes.
Start-up time: SUT0: [X] SUT1: [ ] (see datasheet)
Clock source: calibrated internal oscillator.
Brownout detection at: disabled.
Entered programming mode OK.
Signature = 0x1E 0x98 0x01
Processor = ATmega2560
Flash memory size = 262144
LFuse = 0x62
HFuse = 0x99
EFuse = 0xFF
Lock byte = 0xFF
Clock calibration = 0x8D
OCD Enable.............................. [ ]
JTAG Enable............................. [X]
Enable Serial (ICSP) Programming........ [X]
Watchdog Timer Always On................ [ ]
Preserve EEPROM through chip erase...... [ ]
Boot into bootloader.................... [ ]
Divide clock by 8....................... [X]
Clock output............................ [ ]
Bootloader size: 8192 bytes.
Start-up time: SUT0: [X] SUT1: [ ] (see datasheet)
Clock source: calibrated internal oscillator.
Brownout detection at: disabled.
I tried to set fuses with your hex_programmer, but there it won't respond.
Any idea what could be wrong here? Do I need to get an AVR Dragon for this?
Thanks for reading!
Cheers
ff