AVR Downloader/UploaDEr - Patches: patch #6141, accept binary format immediate...
You are not allowed to post comments on this tracker with your current authentication level.
patch #6141: accept binary format immediate values
Submitter: | None | ||
Submitted: | Sun 05 Aug 2007 10:06:01 PM UTC | ||
Category: | None | Priority: | 5 - Normal |
Status: | Done | Privacy: | Public |
Assigned to: | joerg_wunsch | Originator Email: | -email is unavailable- |
Open/Closed: | Closed |
Attached Files
file #13600: acceptBinaryFormatImmediateValues added by None (518B - application/octet-stream)
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
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 4 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2007-10-29 | joerg_wunsch | Open/Closed | Open | Closed | |
2007-10-29 | joerg_wunsch | Status | None | Done | |
Assigned to | None | joerg_wunsch | |||
2007-08-05 | None | Attached File | - | Added acceptBinaryFormatImmediateValues, #13600 |
Powered by Savane 3.13-bb6a.
Corresponding source code
i would like it if avrdude let me do this:
avrdude -c stk500v2 -P /dev/ttyS0 -p attiny85 -U efuse:w:0b11111111:m -U hfuse:w:0b11011111:m -U lfuse:w:0b01100010:m
but strtoul does not understand the '0b' prefix, so i propose that we change one line in fileio_imm() in fileio.c. instead of this:
b = strtoul (p, &e, 0);
we should do this:
b = (strncmp (p, "0b", 2)) ? strtoul (p, &e, 0) : strtoul (p+2, &e, 2); /* check for binary formated (0b10101001) strings */
i tested this and it seems to work great. i have attached a patch file. to patch, cd to avrdude-5.4 and do 'patch fileio.c acceptBinaryFormatImmediateValues'
-- ky