What is the default "Baud Rate" for an ATmega1280 on an "Arduino Mega1280",
when receiving serial data during an upload of a sketch???
I need to know because I think the FTDI chip on my board got fried
after finding that my "resettable polyfuse" was actualy breaking at 630mA to 1A!!! :astonished: :astonished: :astonished:
system
August 7, 2011, 12:07pm
#2
Arduino/hardware/arduino/bootloaders/atmega/ATmegaBOOT_168.c
From boards.txt:
mega.name=Arduino Mega (ATmega1280)
mega.upload.protocol=stk500
mega.upload.maximum_size=126976
mega.upload.speed=57600
mega.bootloader.low_fuses=0xFF
mega.bootloader.high_fuses=0xDA
mega.bootloader.extended_fuses=0xF5
mega.bootloader.path=atmega
mega.bootloader.file=ATmegaBOOT_168_atmega1280.hex
mega.bootloader.unlock_bits=0x3F
mega.bootloader.lock_bits=0x0F
mega.build.mcu=atmega1280
mega.build.f_cpu=16000000L
mega.build.core=arduino
/* set the UART baud rate */
/* 20060803: hacked by DojoCorp */
//#define BAUD_RATE Â 115200
#ifndef BAUD_RATE
#define BAUD_RATE Â 19200
#endif
so... 19.2k bps?
johnwasser:
From boards.txt:
mega.name=Arduino Mega (ATmega1280)
mega.upload.protocol=stk500
mega.upload.maximum_size=126976
mega.upload.speed=57600
mega.bootloader.low_fuses=0xFF
mega.bootloader.high_fuses=0xDA
mega.bootloader.extended_fuses=0xF5
mega.bootloader.path=atmega
mega.bootloader.file=ATmegaBOOT_168_atmega1280.hex
mega.bootloader.unlock_bits=0x3F
mega.bootloader.lock_bits=0x0F
mega.build.mcu=atmega1280
mega.build.f_cpu=16000000L
mega.build.core=arduino
yeah, I saw both files... but which is it? 19.2k or 57.6k baud?
system
August 7, 2011, 12:12pm
#6
so... 19.2k bps?
No, BAUD_RATE (Hint: Makefile)
so 57.6kbps
mega: TARGET = atmega1280
mega: MCU_TARGET = atmega1280
mega: CFLAGS += '-DMAX_TIME_COUNT=F_CPU>>4' '-DNUM_LED_FLASHES=0' -DBAUD_RATE=57600
mega: AVR_FREQ = 16000000L
mega: LDSECTIONÂ = --section-start=.text=0x1F000
mega: $(PROGRAM)_atmega1280.hex
I'm getting this error message:
avrdude: stk500_getsync(): not in sync: resp=0x00
What does that mean?