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

 
 

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

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

Submitter:  Matt Anderson <manderson>
Submitted:  Sun 18 Jul 2010 06:13:50 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  Fixed Assigned to:  aboyapati
Percent Complete:  100% Open/Closed:  Closed
Release:  1.6.7 Fixed Release:  1.6.1

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

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
  • -email is unavailable- added by aboyapati (Updated the item)
  • -email is unavailable- added by manderson (Submitted the item)
  •  

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-09-22 aboyapati StatusIn Progress Fixed
        Percent Complete0% 100%
        Open/ClosedOpen Closed
        Fixed ReleaseNone 1.6.1
    2010-09-21 aboyapati Attached File- Added bug30475.patch, #21516
    2010-09-21 aboyapati Attached File#21515 Removed
    2010-09-21 aboyapati Attached File- Added bug30457.patch, #21515
        StatusNone In Progress
        Assigned toNone aboyapati

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code