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  [ 3 posts ] 
Author Message
 Post subject: Can i run the getting started project in dataflash?
PostPosted: Tue Jan 13, 2009 1:52 pm 
Offline

Joined: Fri Dec 12, 2008 11:23 am
Posts: 8
Hi!
I have been running the Getting started project for at91sam9260-ek in sdram and it woks fine. When I compiled the project I get a file called: getting-started-project-at91sam9260-ek-at91sam9260-extflash.bin I wonder if anyone knows what file that is? I am lead to believe its is actually the same program but can be run from the dataflash memory? Is that correct or? Would be nice to have a program on the eval board that didn’t got erased every time I shut it down and has to be loaded with SAM-BA before I an run it.

_________________
Olo


Top
 Profile  
 
 Post subject: Re: Can i run the getting started project in dataflash?
PostPosted: Fri Jan 16, 2009 4:38 pm 
Offline

Joined: Tue Oct 30, 2007 3:39 pm
Posts: 54
Hello,

You can not boot directly from Dataflash with this program because the program size is bigger than the SRAM size.
As you may know the Dataflash Boot (i.e. included in the ROM Boot program) works as follow: when a valid code is founded in Dataflash, this code is copied in SRAM by the Dataflash Boot program, then this code is executed out of SRAM. As the program size is bigger than the SRAM size, the Dataflash boot can not be correctly executed.

If you want to have a program which is executed out of dataflash every time you run the board you should try to use the bootstrap (loaded in dataflash) + the sdram.bin file (loaded also in dataflash, loaded @ address 0x8400 which is the default application address in the bootstrap). In that case the boot sequence will be the following:
- the bootstrap is copied from dataflash to SRAM by the Dataflash Boot program.
- the bootstrap copy the application (i.e getting-started-project) from Dataflash to SDRAM.
- the application is executed out of SDRAM


Top
 Profile  
 
 Post subject: Re: Can i run the getting started project in dataflash?
PostPosted: Thu Jan 22, 2009 4:30 pm 
Offline

Joined: Fri Dec 12, 2008 11:23 am
Posts: 8
Excellent help!
Now it works fine. I just modified the JUMP_ADDR to 0x20000000 in the at91sam9260ek.h file in the bootstrap so my application could start.

Thanks a lot!

_________________
Olo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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: