新手上路
积分 43
金钱 43
注册时间 2013-11-19
在线时间 4 小时
5 金钱
之前连编译都通不过,看了一下提示,其实就是“flashconv.elf”这个文件无法自动生成,所以随便找个文件把名字修改为“flashconv.elf”,然后就编译通过并且无错误了:
Build started 27.10.2015 at 17:29:29
avr-gcc -x assembler-with-cpp -c -a=flashconv.asm.lst -mmcu=attiny25 -I. flashconv.asm -o flashconv.o
avr-gcc -x assembler-with-cpp -c -a=delay.asm.lst -mmcu=attiny25 -I. delay.asm -o delay.o
avr-gcc -mmcu=attiny25 -Wl -o flashconv.out *.o
avr-strip --strip-unneeded flashconv.out
avr-objcopy -O ihex -S flashconv.out rom.hex
Build succeeded with 0 Warnings...
但是一点击启动仿真,就会提示加载“flashconv.elf”出错:
The contents of the objectfile exceeds the maximum program memory of the device
Error loading object file D:\flash_5400HS\flashconv.elf
整个工程已经打包发上来了。这是一个老外的开源工程,实现美能达单反相机热靴转换。这个老外估计是高手,人眼debug无误,生成hex直接烧写就OK了。
现在想做点改动,但是对AVR不熟悉,所以希望能启动软仿真,单步调试一下
我来回答