Load bootloader into NandFlash

This forum is for users of Atmel's SAM Series and who are interested in using WinCE OS.

Moderator: nferre

Rasmus77
Posts: 8
Joined: Thu Apr 30, 2009 9:47 am

Load bootloader into NandFlash

Mon May 10, 2010 1:26 pm

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.
falingtrea
Location: Mounds View, MN
Posts: 209
Joined: Wed Jan 09, 2008 5:09 pm

Re: Load bootloader into NandFlash

Mon May 10, 2010 7:05 pm

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.

Return to “WinCE”

Who is online

Users browsing this forum: No registered users and 2 guests