Pages: [1]   Go Down
Author Topic: trying to upload using max232 with 19200 BAUD [solved]  (Read 343 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
Newbie
*
Karma: 0
Posts: 34
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello
I am trying to create a new upload option to use my MAX232CPE chip with an atmega328 on a breadboard.
If I connect RX<->TX and run the Serial Monitor I find that the maximum speed it will work at is a lot less than the bootloader upload speed.
I created a new entry in boards.txt to use 19200 and am trying to create a corresponding bootloader to match the speed. I am getting the error in the attachment below.
This is what I have added to boards.txt
Code:
unoMAX.name=Arduino Uno Via MAX232
unoMAX.upload.protocol=arduino
unoMAX.upload.maximum_size=32256
unoMAX.upload.speed=19200 <----------------------------------- changed here
unoMAX.bootloader.low_fuses=0xff
unoMAX.bootloader.high_fuses=0xde
unoMAX.bootloader.extended_fuses=0x05
unoMAX.bootloader.path=optiboot
unoMAX.bootloader.file=optiboot_atmega328MAX.hex  <----- changed here
unoMAX.bootloader.unlock_bits=0x3F
unoMAX.bootloader.lock_bits=0x0F
unoMAX.build.mcu=atmega328p
unoMAX.build.f_cpu=16000000L
unoMAX.build.core=arduino
unoMAX.build.variant=standard

This is what I have added to the Makefile
Code:
atmega328MAX: TARGET = atmega328
atmega328MAX: MCU_TARGET = atmega328p
atmega328MAX: CFLAGS += '-DLED_START_FLASHES=3' '-DBAUD_RATE=19200'   <----- changed here
atmega328MAX: AVR_FREQ = 16000000L
atmega328MAX: LDSECTIONS  = -Wl,--section-start=.text=0x7e00 -Wl,--section-start=.version=0x7ffe
atmega328MAX: $(PROGRAM)_atmega328MAX.hex   <----- changed here
atmega328MAX: $(PROGRAM)_atmega328MAX.lst     <----- changed here

I want to create a new entry rather than change the existing one so I can still use my 'real' arduino as normal.
I am guessing that I have missed something somewhere ...

All help gratefully accepted.
Thanks
Mrs Z

[EDIT] I am using 1.0.4


* Capture.JPG (93.9 KB, 965x234 - viewed 13 times.)
« Last Edit: April 14, 2013, 03:09:34 pm by Zaplady » Logged

Pages: [1]   Go Up
Jump to: