bugAVR Downloader/UploaDEr - Bugs: bug #39230, error parsing update

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #39230: error parsing update

Submitter:  None
Submitted:  Tue 11 Jun 2013 03:32:16 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid Privacy:  Public
Assigned to:  joerg_wunsch Originator Name:  M. Ray Burnette
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Programmer hardware: 
Device type: 

Tue 11 Jun 2013 03:45:16 PM UTC, comment #1: 

This is documented: if your filename (in particular on
Windows operating systems) contains a colon, the
full form of the -U option is mandatory, i.e. all four
subcomponents (<memory area>:<operation>:<filename>:<format>)
must be present.

This is the only way to disambiguate between the colon that
is part of the filename, and the colons that divide the
various subcomponents of the -U option.

The shortened form(s) of the -U option only work with
filenames that don't contain colons.

(Besides, %temp% must be resolved by the shell/command
processor calling AVRDUDE.)

Joerg Wunsch <joerg_wunsch>
Group administrator
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.


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-11 joerg_wunsch StatusNone Invalid
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code