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

Submitted by:  None
Submitted on:  Tue 11 Jun 2013 03:32:16 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Name: M. Ray Burnette
Originator Email: -unavailable-Open/Closed: Closed
Release: NoneProgrammer 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>
Project AdministratorIn charge of this item.
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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 Jun 2013 03:45:16 PM UTCjoerg_wunschStatusNone=>Invalid
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1