Go Down

Topic: Bootloader Make file error - help needed (Read 1 time) previous topic - next topic


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.

Code: [Select]

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

Code: [Select]
cc1plus: error: unrecognized command line option "-fno-split-wide-types"
Code: [Select]
unknown MCU 'atmega32u4' specified

and finally
Code: [Select]

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?


Well, I can say it compiles here. Can't test more.

Maybe your version of avr-gcc is a bit outdated.
• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!


Hmm, i have attempted on OSX Lion, and Windows 7

I believe there is a conflict between avrdude and arduino's avrdude
i changed the environment variables to point to arduino's version and still the same issue

any suggestions would help.
i typically don't get errors when building make files for other avr projects


attempting in Cygwin produces this

Code: [Select]

$ make
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
process_begin: CreateProcess(NULL, avr-gcc -Isrc/. -g -Wall -Os -mmcu=atmega32u4                                -DF_CPU=16000000L -DARDUINO_MODEL_PID=0x0034 -ffunction-sections -gdwarf-2 -fda                               ta-sections -fno-split-wide-types -c src/./DiskLoader.cpp -MD -o build/./DiskLoa                               der.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [build/./DiskLoader.o] Error 2

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!

via Egeo 16
Torino, 10131