Hey all.
I have a project and i have been wanting to change the speed of the clock for the bootloader.
Inside the make file of any of the bootloaders there is a line for frequency
This one is specifically for manipulating the Leonardo Diskloader.
MCU = atmega32u4
AVR_FREQ = 16000000L
So this can be easily changed in any text editor.
Now, when i go into my terminal and run 'make' on that folder i get plenty of error when attempting to recompile the bootloader.
First: This command gets autorun
avr-gcc -Isrc/. -g -Wall -Os -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO_MODEL_PID=0x0034 -ffunction-sections -gdwarf-2 -fdata-sections -fno-split-wide-types -c src/./DiskLoader.cpp -MD -o build/./DiskLoader.o
Errors:
cc1plus: error: unrecognized command line option "-fno-split-wide-types"
unknown MCU 'atmega32u4' specified
and finally
src/./DiskLoader.cpp:1: warning: -ffunction-sections may affect debugging on some targets
make: *** [build/./DiskLoader.o] Error 1
has anyone had success doing something like this?