login | sign up | forgot password?

AT91SAM9263

Back to questions' list

NAND programming on the AT91SAM9263-EK

by mdinescu, posted on January 28, 2008

Hi! I was wondering what are the steps to put code in the NAND flash on the AT91SAM9263-EK board. Basically I'd like to store my app in the NAND flash so that is doesn't get lost when I power cycle the board.

So far I figured out how to store my program in SRAM, SDRAM and DataFlash. And I could accomplish my goal by putting the code in the DataFlash but in the final product there won't be a DataFlash present. So I turned to the NAND flash.

So, is anyone out there that has had this issue before? and how did you fix it?

Disclaimer: I have not used the NAND flash on this board, I am just talking about what I would do in this situation.

According to the datasheet, the NAND flash is not populated on the board, so that will be the first step. Next, you need to set up the memory controller of the MCU for NAND flash with the hardware configuration of the board. You probably need to set up the address at which you want to talk with the flash.

by ec, posted on January 28, 2008


ec, Thanks for your input. However, since you haven't used the board I have to bring some clarification.

First of all, the AT91SAM9263-EK board does feature a 256Mb NAND flash that is populated on the board. (There is also the possibility to have a secondary NAND and a NOR memory on the board, but they are not populated).

Second, the question was related to storing the firmware in NAND flash to prevent it from being erased when the board is power-cycled. My question was what is the correct process of putting code in the NAND flash, and what other steps do I need to take to have the board boot from the NAND flash at power-up. (i.e. do I have to set some jumpers? what is the address where the boot-loader code should reside in the NAND flash? is there some requirement for compiling the code so that is can be put in NAND flash?)

Ultimately I was trying to figure out what tool I should use to program the NAND flash. I've tried SAM-BA 2.6 GUI which has pre-programmed scripts for the NAND flash of the AT91SAM9263-EK board but even though it says it programmed the flash, I can't make it boot and start the application..

Again, thanks for the input and if you have answers to any of these questions, I'd be truly grateful!! This is driving me crazy and ATMEL support is virtually USELESS!!

by mdinescu, posted on January 29, 2008


ok, my experience is with the at91rm9200 but from what I saw it is very similar.

I looked at the at91sam9263 datasheet on pages 95. According to the text, your code must be either called boot.bin in a formatted fat12/16/32 file system or it must have 6 valid vector at the start of the program and the size of the program as the seventh vector.

Does it help?

by ec, posted on February 3, 2008



Please login to reply.

You must log in or register to rate documents!

Forgot your password? click here


close this window