AVR Downloader/UploaDEr - Bugs: bug #29264, avrdude upload to xmega using...
You are not allowed to post comments on this tracker with your current authentication level.
bug #29264: avrdude upload to xmega using stk500 protocol using byte addresses rather than word addresses
Submitter: | giuliano carlini <gorillacoder> | ||
Submitted: | Fri 19 Mar 2010 06:26:58 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Priority: | 1 - Later | Item Group: | None |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | giuliano carlini |
Open/Closed: | Open | Release: | None |
Programmer hardware: | Device type: |
Sun 10 Mar 2013 08:12:45 PM UTC, comment #5: |
Michael Dreher <nospam2000> |
Thu 19 Apr 2012 01:45:02 PM UTC, comment #4: Sorry, STK500v1 is not a priority to me right now.
|
Joerg Wunsch <joerg_wunsch> |
Fri 19 Mar 2010 07:58:15 AM UTC, comment #3: Thanks for the logfile. I just realized Arduino is still using
|
Joerg Wunsch <joerg_wunsch> |
Fri 19 Mar 2010 07:14:05 AM UTC, comment #2: attached are the input arduino sketch and the resulting avrdude trace.
|
giuliano carlini <gorillacoder> |
Fri 19 Mar 2010 06:35:17 AM UTC, comment #1: Could you please attach a communication trace file? (Output
|
Joerg Wunsch <joerg_wunsch> |
Fri 19 Mar 2010 06:26:58 AM UTC, original submission:
STK500 'U" command takes a word address. Indeed, avrdude seems to be passing word addresses to the arduino bootloader for atmega chips. However, avrdude seems to be passing byte addresses for xmega28a1. |
giuliano carlini <gorillacoder> |
Depends on the following items: None found
Items that depend on this one: None found
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 |
---|---|---|---|---|---|
2013-03-10 | nospam2000 | Carbon-Copy | - | Added nospam2000 | |
2012-04-19 | joerg_wunsch | Priority | 5 - Normal | 1 - Later | |
2010-03-19 | gorillacoder | Attached File | - | Added xmegaTest0.pde, #19981 | |
Attached File | - | Added avrdude-29264.log, #19982 |
Powered by Savane 3.13-f8d8.
Corresponding source code
When the opcodes AVR_OP_LOADPAGE_LO and AVR_OP_READ_LO are not defined in avrdude.conf for the mem type flash for this device, it uses a_div=1 (byte addressing) instead of a_div=2 (word addressing). So this be easily fixed in avrdude.conf.
From stk500.c stk500_paged_write():
if ((m->op[AVR_OP_LOADPAGE_LO]) || (m->op[AVR_OP_READ_LO]))
a_div = 2;
else
a_div = 1;
Copy and adapt the definitions from ATmega2560.