Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug #49387] ATXmega32E5 Flash section address wrong #435

Closed
avrs-admin opened this issue Dec 10, 2021 · 2 comments
Closed

[bug #49387] ATXmega32E5 Flash section address wrong #435

avrs-admin opened this issue Dec 10, 2021 · 2 comments
Labels
invalid This doesn't seem right

Comments

@avrs-admin
Copy link

Georges Palauqui g.palauqui@gptechinno.com
Wed 19 Oct 2016 08:14:01 PM UTC
Device type: x32e5

Current avrdude.conf.in gives for ATxmega32e5 :
memory "apptable"
size = 0x1000;
offset = 0x00807000;
page_size = 0x80;
readsize = 0x100;
;
memory "boot"
size = 0x1000;
offset = 0x00808000;
page_size = 0x80;
readsize = 0x100;
;
But according to datasheet (http://www.atmel.com/Images/Atmel-8153-8-and-16-bit-AVR-Microcontroller-XMEGA-E-ATxmega8E5-ATxmega16E5-ATxmega32E5_Datasheet.pdf page 12 figure 8.1) it should be :
memory "apptable"
size = 0x800;
offset = 0x00803800;
page_size = 0x80;
readsize = 0x80;
;

memory "boot"
size = 0x800;
offset = 0x00804000;
page_size = 0x80;
readsize = 0x80;
;
Both Size and Offset are wrong.

This issue was migrated from https://savannah.nongnu.org/bugs/?49387

@mcuee
Copy link
Collaborator

mcuee commented May 29, 2022

@MCUdude
Copy link
Collaborator

MCUdude commented Jun 19, 2022

For reference, I've attached the ATxmega32E5.atdf file, which is used by Microchip Studio when working with the 32E5. I can only assume that this file has the correct content. All these files can be downloaded from Microchip Packs Repository.

ATxmega32E5.atdf.zip

From ATxmega32E5.atdf:

<memory-segment start="0x07000" size="0x1000" type="flash" rw="RW" exec="1" name="APPTABLE_SECTION" pagesize="128"/>

<property name="APPTABLE_SECTION_OFFSET" value="0x00807000"/>



<memory-segment start="0x08000" size="0x1000" type="flash" rw="RW" exec="1" name="BOOT_SECTION" pagesize="128"/>

<property name="BOOT_SECTION_OFFSET" value="0x00808000"/>

I'm closing this issue because OP may have read from a datasheet that had the memory addresses incorrectly defined. If this was a real problem, the latest ATxmega32E5.adtf would reflect OP's suggested changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants