Hi,
I did read several topics about this subject without finding a solution, so I hope that somebody will help me with this issue.
I am trying to use a boot loader for Arduinio Uno using other clock speed than the default 16MHz.
(MAC OSX 10.9.5 and Arduino IDE 1.6.8)
To keep it simple, this is one of the problem I am facing:
With an Arduino Uno loaded with the standard optiboot file I am using a standard boards.txt (see Original boards.txt) file ( this is a copy of the Uno one but renamed for my environment).
The boot loader file (optiboot_atmega328.hex) is created for a 16MHz speed and a baud rate of 115200 bps.
Burning an Arduino (with ArduinoISP) with this configuration works fine, and I am able to load and use a standard sketch such as the ASCIItable from the example without problem.
Now the I expect to start the Arduino with a lower speed; for that purpose I am just changing the low_fuse from 0xFE to 0x7E, which correspond to divides the clock by 8.
Burning the arduino is not a problem and I can crosscheck the fuse bits using the Nick Gammon utility Arduino fuse calculator (see below).
However I am UNABLE to load a script in the newly burned Arduino, I have already tried to change the cocomand.upload.speed=115200 to 14400bps (115200/8) as the upload speed without success (without burning the boot loader).
The error message is:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
So I believe there is an problem with the USB speed, but I don't know which one to use
I have same issue using a new boot file made for a 2MHz frequency (cocomand: AVR_FREQ = 2000000L)
So does someone have an explanation for this, or how can I solve this issue.
Thanks in advance
Robert
Original boards.txt
cocomand.name=CoComand
cocomand.vid.0=0x2341
cocomand.pid.0=0x0043
cocomand.vid.1=0x2341
cocomand.pid.1=0x0001
cocomand.vid.2=0x2A03
cocomand.pid.2=0x0043
cocomand.vid.3=0x2341
cocomand.pid.3=0x0243
cocomand.upload.tool=arduino:avrdude
cocomand.upload.protocol=arduino
cocomand.upload.maximum_size=32256
cocomand.upload.maximum_data_size=2048
cocomand.upload.speed=115200
cocomand.bootloader.tool=arduino:avrdude
cocomand.bootloader.low_fuses=0xFE
cocomand.bootloader.high_fuses=0xDE
cocomand.bootloader.extended_fuses=0x05
cocomand.bootloader.unlock_bits=0x3F
cocomand.bootloader.lock_bits=0x0F
cocomand.bootloader.file=optiboot_atmega328.hex
cocomand.build.mcu=atmega328p
cocomand.build.f_cpu=16000000L
cocomand.build.board=AVR_UNO
cocomand.build.core=arduino:arduino
cocomand.build.variant=arduino:standard
16MHz Makefile example
cocomand: TARGET = atmega328
cocomand: MCU_TARGET = atmega328p
cocomand: CFLAGS += '-DLED_START_FLASHES=3' '-DBAUD_RATE=115200'
cocomand: AVR_FREQ = 16000000L
cocomand: LDSECTIONS = -Wl,--section-start=.text=0x7e00 -Wl,--section-start=.version=0x7ffe
cocomand: $(PROGRAM)_atmega328.hex
cocomand: $(PROGRAM)_atmega328.lst
2MHz Makefile example
cocomand: TARGET = atmega328
cocomand: MCU_TARGET = atmega328p
cocomand: CFLAGS += '-DLED_START_FLASHES=3' '-DBAUD_RATE=19200'
cocomand: AVR_FREQ = 2000000L
cocomand: LDSECTIONS = -Wl,--section-start=.text=0x7e00 -Wl,--section-start=.version=0x7ffe
cocomand: $(PROGRAM)_atmega328_2MHz_19Kbps.hex
cocomand: $(PROGRAM)_atmega328_2MHz_19Kbps.lst
Fuse calculator
Atmega fuse calculator.
Written by Nick Gammon.
Version 1.11
Compiled on Apr 10 2016 at 18:18:24 with Arduino IDE 10608.
Attempting to enter programming mode ...
Entered programming mode OK.
Signature = 0x1E 0x95 0x0F
Processor = ATmega328P
Flash memory size = 32768
LFuse = 0x7E
HFuse = 0xDE
EFuse = 0xFD
Lock byte = 0xCF
Clock calibration = 0x99
External Reset Disable.................. [ ]
Debug Wire Enable....................... [ ]
Enable Serial (ICSP) Programming........ [X]
Watchdog Timer Always On................ [ ]
Preserve EEPROM through chip erase...... [ ]
Boot into bootloader.................... [X]
Divide clock by 8....................... [X]
Clock output............................ [ ]
Bootloader size: 512 bytes.
Start-up time: SUT0: [ ] SUT1: [ ] (see datasheet)
Clock source: low-power crystal.
Brownout detection at: 2.7V.
