Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVR project Makefile needs updating. #3

Open
RobertTatoian opened this issue Nov 12, 2019 · 0 comments
Open

AVR project Makefile needs updating. #3

RobertTatoian opened this issue Nov 12, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@RobertTatoian
Copy link
Owner

Problem

The Makefile generated when calling avr-project throws an error when calling avr-size.

Current Behaviour

When make is called in a project directory the source files are compiled, however avr-size throws an error regarding the arguments passed to it.

/usr/local/CrossPack-AVR-20170210/bin/avr-gcc -Wall -Os -DF_CPU=8000000 -mmcu=attiny85 -c main.c -o main.o
/usr/local/CrossPack-AVR-20170210/bin/avr-gcc -Wall -Os -DF_CPU=8000000 -mmcu=attiny85 -o main.elf main.o
rm -f main.hex
/usr/local/CrossPack-AVR-20170210/bin/avr-objcopy -j .text -j .data -O ihex main.elf main.hex
/usr/local/CrossPack-AVR-20170210/bin/avr-size --format=avr --mcu=attiny85 main.elf
/usr/local/CrossPack-AVR-20170210/bin/avr-size: invalid argument to --format: avr
Usage: /usr/local/CrossPack-AVR-20170210/bin/avr-size [option(s)] [file(s)]
 Displays the sizes of sections inside binary files
 If no input file(s) are specified, a.out is assumed
 The options are:
  -A|-B|-G  --format={sysv|berkeley|gnu}  Select output style (default is berkeley)
  -o|-d|-x  --radix={8|10|16}         Display numbers in octal, decimal or hex
  -t        --totals                  Display the total sizes (Berkeley only)
            --common                  Display total size for *COM* syms
            --target=<bfdname>        Set the binary file format
            @<file>                   Read options from <file>
  -h        --help                    Display this information
`  -v        --version                 Display the program's version`

/usr/local/CrossPack-AVR-20170210/bin/avr-size: supported targets: elf32-avr elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin
make: *** [main.hex] Error 1

Desired Behaviour

When make is called in a project directory the source files are compiled and no errors are thrown.

@RobertTatoian RobertTatoian added the bug Something isn't working label Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant