[En-Nut-Discussion] Using upper 64k of flash

Adrian Thearle athearle at tpg.com.au
Wed Dec 4 00:31:18 CET 2002


I am also having problems with this

Would you be able to send me a diff file for the changes u had to make
to get it to work?

Thankyou

Ads



-----Original Message-----
From: en-nut-discussion-admin at egnite.de
[mailto:en-nut-discussion-admin at egnite.de] On Behalf Of Lars Haack
Sent: Tuesday, 3 December 2002 6:37 AM
To: en-nut-discussion at egnite.de
Subject: [En-Nut-Discussion] Using upper 64k of flash


Hi,

I had problems using the upper 64k of the built-in flash in my projects
based on NutOS, but I think it is not releated to NutOS itself. It has
not been a problem with the programmer (uisp) like mentioned in other
threads. I found out that everything works fine if the load address of
the initialized data that is copied to the RAM lays below 64k ( see
data_load_start and data_load_end in the MAP-file). If it exceeds this
limit the software crashes. This is the case with the AVRGCC Release of
June 2002 and also the new WinAVR release from November 2002 found on
AVRFreaks. As a workaround I modified the linkerscript avr3.x in a way
that the load address of the .data segment is always lower than the
.text segment. I inserted a new section text2 thats address is higher
than the address of section text und moved all references to the
segments .text to this new section. After these changes even the
projects with larger code work fine. This is of course only a workaround
I have to use until someone can explain to me what I am doing wrong or
what changes have to be made to the startup-code gcrt1.S. I appreciate
to hear any comments on this issue.

Regards
  Lars

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo/en-nut-discussion




More information about the En-Nut-Discussion mailing list