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  [ 4 posts ] 
Author Message
 Post subject: Boot from Nandflash
PostPosted: Fri Jun 24, 2011 12:19 pm 
Offline

Joined: Fri Jun 24, 2011 12:04 pm
Posts: 4
Hi all,

I am using AT91sam9263 board,using keil uvision4 for developng application.I am able to load my application(.bin file) in sdram through SAM-BA and see the result. I want to put it into nandflash to execute it on poweron.
What is procedure to load .bin file to nandflash?
Kindly share the procedure.Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Boot from Nandflash
PostPosted: Sat Jun 25, 2011 7:13 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
You'd use the AT91BootStrap code, which you'd put in the first block of NAND, and have it load your application into SDRAM from subsequent NAND blocks.

You use SAM-BA to "Send Boot File" to NAND block 0. RomBoot will copy this into SRAM and run it.

You would need to modify AT91BootStrap from it's uBoot loading task, so that it loads the application to the address you want in SDRAM/SRAM, and it deals with the length of code you want.

Anyway get the documentation for the AT91BootStrap/uBoot/Kernel model for staged loading, and read through it, and the code provided.


Top
 Profile  
 
 Post subject: Re: Boot from Nandflash
PostPosted: Mon Jun 27, 2011 12:00 pm 
Offline

Joined: Fri Jun 24, 2011 12:04 pm
Posts: 4
Thanks for your kind response cpttitanic, i am new to this field. I have "at91bootstrap-at91sam9263-ek" . Do i have to edit this prg and load. Do i have to edit boot.h.


Top
 Profile  
 
 Post subject: Re: Boot from Nandflash
PostPosted: Mon Jun 27, 2011 6:21 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Typically AT91BootStrap builds with GNU/GCC, it loads a 256KB executable image at 0x23F00000 in SDRAM, and runs it.

If your requirements are DIFFERENT, you will have to edit the file(s)

Look at IMG_ADDRESS, IMG_SIZE, and JUMP_ADDR in
Bootstrap-v1.16\board\at91sam9263ek\nandflash\at91sam9263ek.h

It is possible to build it with Keil. The EK has a more complicated boot example that works directly with Keil, than the standard 1.16 AT91BootStrap package.

Nominally you put your Boot loader in block 0 (0x00000), and the u-Boot in blocks 1 & 2 (0x20000)

Unless I'm mistaken you should be able to put a 72KB boot loader in an AT91SAM9263. This loads at 0x300000..0x312000 in SRAM from Block 0 of the NAND, the stack resides at 0x312000..0x314000


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 14 guests


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: