bugAVR 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

Submitted by:  giuliano carlini <gorillacoder>
Submitted on:  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:

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.

Michael Dreher <nospam2000>
Thu 19 Apr 2012 01:45:02 PM UTC, comment #4:

Sorry, STK500v1 is not a priority to me right now.

Again, if anyone wants to supply patches, they're welcome.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Fri 19 Mar 2010 07:58:15 AM UTC, comment #3:

Thanks for the logfile. I just realized Arduino is still using
STK500v1 (it's probably the last consumer of that protocol :). I
don't think anybody did anything lately here (except for fixing the
Arduino reset), so if it works with Xmegas at all, it's purely as a
side-effect from other changes introduced to the generic code.

Patches would be very welcome. I think I've got some STK500v1
firmware still lying around somewhere, so I might be able to test it
on a real STK500 for comparison.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Fri 19 Mar 2010 07:14:05 AM UTC, comment #2:

attached are the input arduino sketch and the resulting avrdude trace.

Thanks.

(file #19981, file #19982)

giuliano carlini <gorillacoder>
Fri 19 Mar 2010 06:35:17 AM UTC, comment #1:

Could you please attach a communication trace file? (Output
from avrdude -vvvv, captured in a text file.)

Joerg Wunsch <joerg_wunsch>
Project Administrator
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>

 

Attached Files
file #19982:  avrdude-29264.log added by gorillacoder (63KiB - application/octet-stream)
file #19981:  xmegaTest0.pde added by gorillacoder (805B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

     

     

    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 Priority5 - Normal => 1 - Later
    2010-03-19 gorillacoder Attached File- => Added xmegaTest0.pde, #19981
        Attached File- => Added avrdude-29264.log, #19982

    Back to the top


    Powered by Savane 3.3