Pages: [1]   Go Down
Author Topic: Bootloader Make file error - help needed  (Read 793 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 96
Why is it so?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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:
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:
Code:
cc1plus: error: unrecognized command line option "-fno-split-wide-types"
Code:
unknown MCU 'atmega32u4' specified

and finally
Code:
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?
Logged

"The old Europe"
Offline Offline
Edison Member
*
Karma: 1
Posts: 2005
Bootloaders suck!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Maybe your version of avr-gcc is a bit outdated.
Logged

• 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!

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 96
Why is it so?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 96
Why is it so?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

attempting in Cygwin produces this

Code:
$ 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

Logged

Pages: [1]   Go Up
Jump to: