본문 바로가기

Eureka/Compile Error

[Solution] AVR build Error "avr-size: invalid option -- 'C'"

AVR 빌드시 Makefile 에서 해당라인을 사용할때 나는 에러이다.

@avr-size -C --mcu=${MCU} ${TARGET}


에러사항은 다음과 같았다.

avr-size: invalid option -- 'C'
Usage: 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     --format={sysv|berkeley}  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


해결방법은 아래와 같이 수정해준다.
@avr-size -A ${TARGET}
#@avr-size -C --mcu=${MCU} ${TARGET}