Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to enble both Flash0 and Flash1 together in AT91SAM3U
PostPosted: Tue Mar 30, 2010 11:02 am 
Offline

Joined: Tue Mar 30, 2010 10:34 am
Posts: 1
Hello everyone

I am facing problem in storing the firmware binary file (> 128KB) in flash.
What modification in linker script file (flash.lds) are required to distribute the firmware file data in flash0 and flash1?
Since Flash0 and Flash1 are not at consecutive memory addresses, so how can i store a firmware binary file (size of file is more than 128KB) in flash.

Please Reply, If anyone faced such type of problem...


Top
 Profile  
 
 Post subject: Re: How to enble both Flash0 and Flash1 together in AT91SAM3U
PostPosted: Fri Apr 02, 2010 3:03 pm 
Offline

Joined: Thu Feb 25, 2010 5:02 pm
Posts: 88
One way would be to make sure the Flash1 area is defined in the linker file...

Then in your code locate some of your functions to this segment.

e.g. with Crossworks I would place funtions with the following syntax, your compiler should have a "section" keyword to do this.

Source code (assumes "flash1" is defined for Flash1 area):

void foobar1(void) __attribute__ ((section(".flash1")));
void foobar2(void) __attribute__ ((section(".flash1")));
...etc...

_________________
Duane P. Fridley, IEEE CSDP
Viable Bytes, Inc.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: