patchAVR C Runtime Library - Patches: patch #9163, New eeprom write block function...

 
 

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

patch #9163: New eeprom write block function for xmega

Submitter:  Pitchumani <pitchumani>
Submitted:  Wed 16 Nov 2016 01:04:34 PM UTC
   
 
Category:  None Priority:  7 - High
Status:  Done Privacy:  Public
Assigned to:  pitchumani Open/Closed:  Closed

Tue 29 Nov 2016 11:30:35 AM UTC, comment #1: 
Pitchumani <pitchumani>
Group Member
Wed 16 Nov 2016 01:04:34 PM UTC, original submission:  

Xmega's eeprom shall be programmed byte and page-wise. Current eeprom write block function loads one byte to eeprom at a time. Though it uses page_erase_and_write command, it doesn't write page-wise.

Attached patch adds new eeprom_write_block function for xmega (written in C) that loads eeprom with maximum of E2PAGESIZE at a time.

This patch also adds a function named ccp_write_io to write into CCProtected (CCP) IO registers.

Tested the function with ATxmega128A1 explained board. Seems to work fine.

I tried comparing the cycle count only with simulator. New function shows better results for writing more than 2 bytes.

Pitchumani <pitchumani>
Group Member

 

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

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pitchumani (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-29 pitchumani StatusReady For Test Done
        Open/ClosedOpen Closed
    2016-11-16 pitchumani Attached File- Added eeprom-write-block-xmega.patch, #38989

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code