Hi,
Lately, I have connected serial radio link to the arduino uno. This radio serial is working 57600 and is working fine for remote control of the sketch. Now, I would like to make next steeps and enable send of the skech by radio link. I googled a a lite bit and find out that uno bootloader is working 115200 so the decrease the '-BAUD_RATE of the bootloader should be helped. Also, I read that the best places of the speed changes is Makefile.
So I set in Makefile:
atmega328_pro8: TARGET = atmega328_pro_8MHz
atmega328_pro8: MCU_TARGET = atmega328p
atmega328_pro8: CFLAGS += '-DLED_START_FLASHES=3' '-DBAUD_RATE=57600'
atmega328_pro8: AVR_FREQ = 8000000L
atmega328_pro8: LDSECTION = --section-start=.text=0x7e00
atmega328_pro8: $(PROGRAM)_atmega328_pro_8MHz.hex
atmega328_pro8: $(PROGRAM)_atmega328_pro_8MHz.lstatmega328_pro8_isp: atmega328_pro8
atmega328_pro8_isp: TARGET = atmega328_pro_8MHz
atmega328_pro8_isp: MCU_TARGET = atmega328p
atmega328_pro8_isp: HFUSE = DE # 512 byte boot
atmega328_pro8_isp: LFUSE = FF # Low power xtal (16MHz) 16KCK/14CK+65ms
atmega328_pro8_isp: EFUSE = 05 # 2.7V brownout
atmega328_pro8_isp: isp
Set in board.txt:
uno.name=Arduino Uno
uno.upload.protocol=stk500
uno.upload.maximum_size=32256
uno.upload.speed=57600
uno.bootloader.low_fuses=0xff
uno.bootloader.high_fuses=0xde
uno.bootloader.extended_fuses=0x05
uno.bootloader.path=optiboot
uno.bootloader.file=optiboot_atmega328.hex
uno.bootloader.unlock_bits=0x3F
uno.bootloader.lock_bits=0x0F
uno.build.mcu=atmega328p
uno.build.f_cpu=16000000L
uno.build.core=arduino
and made omake in the optiboot directory
F:\2_Darek\robot\arduino-0022\hardware\arduino\bootloaders\optiboot>......\tools\avr\utils\bin\make OS=windows ENV=ard
uino atmega328
../../../tools/avr/bin/avr-gcc -g -Wall -Os -fno-inline-small-functions -fno-split-wide-types -mshort-calls -mmcu=atmega
328p -DF_CPU=16000000L '-DLED_START_FLASHES=3' '-DBAUD_RATE=57600' -c -o optiboot.o optiboot.c
../../../tools/avr/bin/avr-gcc -g -Wall -Os -fno-inline-small-functions -fno-split-wide-types -mshort-calls -mmcu=atmega
328p -DF_CPU=16000000L '-DLED_START_FLASHES=3' '-DBAUD_RATE=57600' -Wl,--section-start=.text=0x7e00 -Wl,--section-start
=.version=0x7ffe -Wl,--relax -Wl,--gc-sections -nostartfiles -nostdlib -o optiboot_atmega328_2.elf optiboot.o
../../../tools/avr/bin/avr-size optiboot_atmega328_2.elf
text data bss dec hex filename
500 0 0 500 1f4 optiboot_atmega328_2.elf
../../../tools/avr/bin/avr-objcopy -j .text -j .data -j .version --set-section-flags .version=alloc,load -O ihex optiboo
t_atmega328_2.elf optiboot_atmega328_2.hex
......\tools\avr\bin\avr-objdump -h -S optiboot_atmega328_2.elf > optiboot_atmega328_2.lst
rm optiboot.o optiboot_atmega328_2.elf
after that I prepared arduino ISP related to the article. This working fine, and I haven't to added any reset resistor.
All I checked by recopiling bootloader for the same parameters and is working.
But when I decrease speed on the Makefile to the '-DBAUD_RATE=57600' and recompile, I can't send any skech to the arduino. I received: