使用 avrdude 和 Codeblock 编程时出现错误消息
Error Message while programming using avrdude and Codeblock
我正在为 AVR 设置代码块。我能够编译和构建。但是在使用 avrdude 时,我看到了很多 stderr 消息。谁能说出可能是什么原因?然而,程序被正确写入控制器。
我的 post 代码块中的构建配置是
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
您在 stderr 中看到输出是因为 avrdude 输出到 stderr。如果你想抑制非错误输出然后将 -qq
传递给 avrdude.
我正在为 AVR 设置代码块。我能够编译和构建。但是在使用 avrdude 时,我看到了很多 stderr 消息。谁能说出可能是什么原因?然而,程序被正确写入控制器。
我的 post 代码块中的构建配置是 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
您在 stderr 中看到输出是因为 avrdude 输出到 stderr。如果你想抑制非错误输出然后将 -qq
传递给 avrdude.