Tue 11 Jun 2013 03:32:16 PM UTC, original submission:
Version: Version 5.11-Patch #7610
Environment: Windows VistaSP2
Appears that the Windows environment variables in the form of %variable% do not work consistently with AVRDUDE.
Example: using %temp%
Specific issue: Reading contents of chip works but writing binary to the chip fails with a parsing error.
Manual Workaround: Removing the drive letter "C:" from the %temp% resolution allows the command to complete without error.
Desired behavior: for command files, consistent parsing of the %path% variable is required
>echo %temp%
C:\Users\owner\AppData\Local\Temp
>
WORKS ========================
>avrdude -c arduino -P com9 -p ATMEGA328P -b 19200 -U eeprom:r:%temp%\backup_eeprom.bin:r
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e950f
avrdude: reading eeprom memory:
Reading | ################################################## | 100% 6.57s
avrdude: writing output file "C:\Users\owner\AppData\Local\Temp\backup_eeprom.bin"
avrdude: safemode: Fuses OK
avrdude done. Thank you.
DOES NOT WORK=========================
>avrdude -c arduino -P com9 -p ATMEGA328P -b 19200 -U eeprom:w:%temp%\backup_eeprom.bin
avrdude: invalid file format '\Users\owner\AppData\Local\Temp\backup_eeprom.bin' in update specifier
avrdude: error parsing update operation 'eeprom:w:C:\Users\owner\AppData\Local\Temp\backup_eeprom.bin'
WORKS==========================
>avrdude -c arduino -P com9 -p ATMEGA328P -b 19200 -U eeprom:w:\Users\owner\AppData\Local\Temp\backup_eeprom.bin
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x1e950f
avrdude: reading input file "\Users\owner\AppData\Local\Temp\backup_eeprom.bin"
avrdude: input file \Users\owner\AppData\Local\Temp\backup_eeprom.bin auto detected as raw binary
avrdude: writing eeprom (1024 bytes):
Writing | ################################################## | 100% 52.92s
avrdude: 1024 bytes of eeprom written
avrdude: verifying eeprom memory against \Users\owner\AppData\Local\Temp\backup_eeprom.bin:
avrdude: load data eeprom data from input file \Users\owner\AppData\Local\Temp\backup_eeprom.bin:
avrdude: input file \Users\owner\AppData\Local\Temp\backup_eeprom.bin auto detected as raw binary
avrdude: input file \Users\owner\AppData\Local\Temp\backup_eeprom.bin contains 1024 bytes
avrdude: reading on-chip eeprom data:
Reading | ################################################## | 100% 6.58s
avrdude: verifying ...
avrdude: 1024 bytes of eeprom verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
|