Go Down

Topic: trying to upload using max232 with 19200 BAUD [solved] (Read 375 times) previous topic - next topic

Zaplady

Apr 14, 2013, 11:07 am Last Edit: Apr 14, 2013, 10:09 pm by Zaplady Reason: 1
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: [Select]

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: [Select]

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

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy