bugAVR C Runtime Library - Bugs: bug #30475, SPM_PAGESIZE incorrect in...

 
 

bug #30475: SPM_PAGESIZE incorrect in io90pwm3b.h and io90pwm2b.h

Submitted by:  Matt Anderson <manderson>
Submitted on:  Sun 18 Jul 2010 06:13:50 PM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: FixedPercent Complete: 100%
Assigned to: Anitha Boyapati <aboyapati>Open/Closed: Closed
Release: 1.6.7Fixed Release: 1.6.1

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 21 Sep 2010 12:10:35 PM UTC, comment #1:

>> The API Usage example for <avr/boot.h> implies that SPM_PAGESIZE is defined in bytes, not words.


Yes.

>> However the SPM_PAGESIZE defines the flash page size in words instead of bytes for the at90pwm3b and at90pwm2b part.


Comparing other device header files with corresponding datasheets shows that SPM_PAGESIZE represents number of bytes per page. However in the case of io90pwm2b/3b, SPM_PAGESIZE was probably given in words as 32.

I have corrected it to 64. Patch attached for review.

(file #21515)

Anitha Boyapati <aboyapati>In charge of this item.
Sun 18 Jul 2010 06:13:50 PM UTC, original submission:

The API Usage example for <avr/boot.h> implies that SPM_PAGESIZE is defined in bytes, not words.

However the SPM_PAGESIZE defines the flash page size in words instead of bytes for the at90pwm3b and at90pwm2b part.

According to the AT90PWM2/3/2B/3B datasheet, Section 24.7.13 Boot Loader Parameters (pg 278) the number of bytes in a page is 64.

Matt Anderson <manderson>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #21516:  bug30475.patch added by aboyapati (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by aboyapati (Updated the item)
  • -unavailable- added by manderson (Submitted the item)
  •  

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

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 22 Sep 2010 04:58:15 AM UTCaboyapatiStatusIn Progress=>Fixed
      Percent Complete0%=>100%
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>1.6.1
    Tue 21 Sep 2010 12:46:19 PM UTCaboyapatiAttached File-=>Added bug30475.patch, #21516
    Tue 21 Sep 2010 12:45:53 PM UTCaboyapatiAttached File#21515=>Removed
    Tue 21 Sep 2010 12:10:35 PM UTCaboyapatiAttached File-=>Added bug30457.patch, #21515
      StatusNone=>In Progress
      Assigned toNone=>aboyapati

    Back to the top


    Powered by Savane 3.1-cleanup1