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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  Johannes Bauer <joebauer>
Submitted:  Tue 08 Jun 2010 03:45:48 PM UTC
   
 
Category:  Library Severity:  3 - Normal
Priority:  5 - Normal Item Group:  libc code
Status:  Fixed Assigned to:  joerg_wunsch
Percent Complete:  0% Open/Closed:  Closed
Release:  1.6.7 Fixed Release:  1.6.2

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>
Group administrator
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.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-08 joerg_wunsch StatusNone Fixed
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
        Fixed ReleaseNone 1.6.2

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code