bugAVR C Runtime Library - Bugs: bug #30085, memcpy_P on XMega does not clr...

 
 

bug #30085: memcpy_P on XMega does not clr NVM.CMD before copy

Submitted by:  Johannes Bauer <joebauer>
Submitted on:  Tue 08 Jun 2010 03:45:48 PM UTC  
 
Category: LibrarySeverity: 3 - Normal
Priority: 5 - NormalItem Group: libc code
Status: FixedPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed
Release: 1.6.7Fixed Release: 1.6.2

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 08 Jun 2010 08:14:58 PM UTC, comment #1:

As it would have to be documented anyway, and it affects all
the functions from <avr/pgmspace.h> (not just memcpy_P() only),
I decided to add this as a requirement for Xmega devices to
the initial part of this file's documentation.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Tue 08 Jun 2010 03:45:48 PM UTC, original submission:

Hi there,

I've had some trouble today with the XMega. I used memcpy_P, which usually worked just fine, except for a certain part of my code where it suddenly produced garbled output. Tracing the source of the problem I noticed that on the ATxmega I use the NVM.CMD register and set it to reading the calibration row (0x02). However, since I did not return it to NOP (0x00), subsequent calls to memcpy_P lead to a wrong result, since the behaviour of lpm has changed with a changed NVM.CMD.

I suggest on the XMega to set NVM.CMD to zero in the beginning of memcpy or include this in the docs, as it might cost someone else roughly a day in debugging time :-/

Regards,
Johannes

Johannes Bauer <joebauer>

 

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

Attach File(s):
   
   
Comment:
   

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 joebauer (Submitted the item)
  •  

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

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 08 Jun 2010 08:14:58 PM UTCjoerg_wunschStatusNone=>Fixed
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>1.6.2

    Back to the top


    Powered by Savane 3.1-cleanup1