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: Load bootloader into NandFlash
PostPosted: Mon May 10, 2010 1:26 pm 
Offline

Joined: Thu Apr 30, 2009 9:47 am
Posts: 8
Hi,
I use AT92sam9160-EK developing kit and have a small boot loader file that I am trying to load in to NandFlash via samba tool.

I do the following via samba tool.
I enable the Nandflash and write the boot file into Nandflash,
i can see the .bin file in SDRam but not in Nandflash.

the following response I get from the processor.

Init Nandflash:


-I- NANDFLASH::Init (trace level : 5)
-I- Loading applet isp-nandflash-at91sam9260.bin at address 0x20000000
-I- Memory Size : 0x10000000 bytes
-I- Buffer address : 0x200047E4
-I- Buffer size: 0x20000 bytes
-I- Applet initialization done

Write file to NandFlash:

-I- Send File C:/Projects/Dameca WinGM ARM/FirstBootLoader/BootLoader.bin at address 0x0
GENERIC::SendFile C:/Projects/Dameca WinGM ARM/FirstBootLoader/BootLoader.bin at address 0x0
-I- File size : 0x99C byte(s)
-I- Writing: 0x99C bytes at 0x0 (buffer addr : 0x200047E4)
-I- 0x99C bytes written by applet

When i Hardware reset the system I can't find the .bin file in the Memory Display in samba tool.
I have hugged the scope to the CS pin and it seems write the file to the Nandfalsh, but can’t verify that the code is located in the Nadflash otherwise.

Any help will be appreciated.


Top
 Profile  
 
 Post subject: Re: Load bootloader into NandFlash
PostPosted: Mon May 10, 2010 7:05 pm 
Offline

Joined: Wed Jan 09, 2008 5:09 pm
Posts: 186
Location: Mounds View, MN
Item 1, the boot file has to have a special vector set in order to boot properly. This is done automatically by the "Send Boot File" command in Sam-ba. Also, I don't think Sam-Ba can view NAND Flash because it is not random access, but I could be wrong. It can download or compare to a file, but you have to use a modified boot file withthe special vector set to compare it against.

_________________
Tim Barr
Multitech 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 2 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: