开源改变世界

运行 make grbl.hex 时出错 #89

推推 grbl 2年前 (2023-01-21) 163次浏览

关闭
mcanes 打开了这个问题 2012 年 4 月 18 日 · 1条评论
关闭

运行 make grbl.hex 时出错#89

mcanes 打开了这个问题 2012 年 4 月 18 日 · 1条评论

注释

运行 make grbl.hex 时出错 #89

运行 make clean;make grbl.hex 我遇到了这个错误:

$ make grbl.hex
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c main.c -o main.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c motion_control.c -o motion_control.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c gcode.c -o gcode.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c spindle_control.c -o spindle_control.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c serial.c -o serial.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c protocol.c -o protocol.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c stepper.c -o stepper.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c eeprom.c -o eeprom.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c settings.c -o settings.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c planner.c -o planner.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c nuts_bolts.c -o nuts_bolts.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c limits.c -o limits.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -c print.c -o print.o
avr-gcc -Wall -Os -DF_CPU=16000000 -mmcu=atmega328p -I. -ffunction-sections -o main.elf main.o motion_control.o gcode.o spindle_control.o serial.o protocol.o stepper.o eeprom.o settings.o planner.o nuts_bolts.o limits.o print.o -lm -Wl ,–gc-sections
rm -f grbl.hex
avr-objcopy -j .text -j .data -O ihex main.elf grbl.hex
avr-size –mcu=atmega328p main.elf
avr-size: 无法识别option ‘–mcu=atmega328p’
Usage: avr-size [option(s)] [file(s)]
显示二进制文件中各部分的大小
如果未指定输入文件,则假定为 a.out
选项是:
-A|-B –format={sysv|berkeley} 选择输出样式(默认为 berkeley)
-o|-d|-x –radix={8|10|16} 以八进制、十进制或十六进制显示数字
-t –totals 显示总大小(仅限伯克利)
–common 显示COM syms的总大小
– -target= 设置二进制文件格式
@ Read options from
-h –help Display this information
-v –version Display the program’s version

avr-size:支持的目标:elf32-avr elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex
make:*** [grbl.hex] 错误 1

avrdude 信息
avrdude 版本 5.11.1
$ avr-size –version
GNU size (GNU Binutils) 2.22.0.20120323

我能做什么?

运行 make grbl.hex 时出错 #89
作者

固定在主人身上。对不起!

喜欢 (0)