使用avrdude和Codeblock编程时出现错误信息

时间:2015-08-10 18:13:01

标签: codeblocks avr-gcc

我正在为AVR设置代码块。我能够编译和构建。但是在使用avrdude时,我看到很多stderr消息。任何人都可以说出原因是什么?然而,该程序被正确写入控制器。

我在代码块中的后期构建配置是 avr-objcopy -O ihex -j .text -j .data $(TARGET_OUTPUT_FILE)$(TARGET_OUTPUT_FILE).hex

以下是错误详情:

    Launching tool 'Serial Programmer': C:\Atmega\programmers\avrdude.exe -C"C:\Atmega\programmers\avrdude.conf" -pm328p -carduino -PCOM2 -b115200 -Uflash:w:EmbeddedProject2.elf.hex (in C:\Atmega\Projects\Codeblock Projects\EmbeddedProject2\bin\Debug)
stderr> 
stderr> avrdude.exe: AVR device initialized and ready to accept instructions
stderr> 
stderr> Reading | ################################################## | 100% 0.00s
stderr> 
stderr> avrdude.exe: Device signature = 0x1e950f
stderr> avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
stderr>              To disable this feature, specify the -D option.
stderr> avrdude.exe: erasing chip
stderr> avrdude.exe: reading input file "EmbeddedProject2.elf.hex"
stderr> avrdude.exe: input file EmbeddedProject2.elf.hex auto detected as Intel Hex
stderr> avrdude.exe: writing flash (11674 bytes):
stderr> 
stderr> Writing | 
stderr> ##
stderr> ##
stderr> #
stderr> ##
stderr> ###
stderr> #
stderr> ##
stderr> ###
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> ##
stderr> ##
stderr> #
stderr> ##
stderr> #
stderr> ##
stderr> ###
stderr> ###
stderr> ###
stderr> ##
stderr> #
stderr> ##
stderr> #
stderr> ## | 100% 1.90s
stderr> 
stderr> avrdude.exe: 11674 bytes of flash written
stderr> avrdude.exe: verifying flash memory against EmbeddedProject2.elf.hex:
stderr> avrdude.exe: load data flash data from input file EmbeddedProject2.elf.hex:
stderr> avrdude.exe: input file EmbeddedProject2.elf.hex auto detected as Intel Hex
stderr> avrdude.exe: input file EmbeddedProject2.elf.hex contains 11674 bytes
stderr> avrdude.exe: reading on-chip flash data:
stderr> 
stderr> Reading | ##
stderr> #
stderr> #
stderr> ####
stderr> ###
stderr> ##
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> ##
stderr> #
stderr> ##
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> #
stderr> ##
stderr> #
stderr> #
stderr> #
stderr> #
stderr> ### | 100% 1.51s
stderr> 
stderr> avrdude.exe: verifying ...
stderr> avrdude.exe: 11674 bytes of flash verified
stderr> 
stderr> avrdude.exe done.  Thank you.
stderr> 
Tool execution terminated with status 0

1 个答案:

答案 0 :(得分:1)

你在stderr中看到输出,因为avrdude输出到stderr。如果要抑制非错误输出,请将-qq传递给avrdude。