Go Down

Topic: Standalone ATMega2560 Sketch Upload Problem (Read 487 times) previous topic - next topic

somin_soni


The bootloader & fuses were programmed without issue on the new board?

Yes :|, using ISP pins and mega2560, using nick's bootloader sketch.

hiduino

That new board you are using from Nex-Robotics is using a 14.7456 MHz crystal.  The bootloader will need to be rebuilt to have proper serial baud rates, otherwise your upload baud rates will be off.


CrossRoads

Can boards.txt be changed to reflect that?
Code: [Select]

##############################################################

mega2560.name=Arduino Mega 2560 or Mega ADK

mega2560.upload.protocol=wiring
mega2560.upload.maximum_size=258048
mega2560.upload.speed=115200

mega2560.bootloader.low_fuses=0xFF
mega2560.bootloader.high_fuses=0xD8
mega2560.bootloader.extended_fuses=0xFD
mega2560.bootloader.path=stk500v2
mega2560.bootloader.file=stk500boot_v2_mega2560.hex
mega2560.bootloader.unlock_bits=0x3F
mega2560.bootloader.lock_bits=0x0F

mega2560.build.mcu=atmega2560
mega2560.build.f_cpu=16000000L <<< change to 14745600L ??
mega2560.build.core=arduino
mega2560.build.variant=mega

##############################################################

millis( ) and micros( ) might be off, Serial could still work ok.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Nick Gammon

You can upload sketches using the hex uploader sketch as documented here:

http://www.gammon.com.au/forum/?id=11638

That doesn't use the serial port for programming. You will need an SD card breakout board ($15):

http://www.adafruit.com/products/254


After all, if you can program the bootloader using SPI you can program anything.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up