Pages: 1 [2]   Go Down
Author Topic: Standalone ATMega2560 Sketch Upload Problem  (Read 356 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The bootloader & fuses were programmed without issue on the new board?
Yes smiley-neutral, using ISP pins and mega2560, using nick's bootloader sketch.
Logged

Wahiawa, Hawaii
Offline Offline
God Member
*****
Karma: 32
Posts: 641
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27386
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can boards.txt be changed to reflect that?
Code:
##############################################################

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.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 506
Posts: 19120
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Pages: 1 [2]   Go Up
Jump to: