SAMBA-2.10 nand settings for custom board on at91sam9g20-ek

Microchip in-system programming solution: SAM-BA

Moderators: nferre, fab

dipen238
Posts: 7
Joined: Fri Oct 15, 2010 12:07 pm

SAMBA-2.10 nand settings for custom board on at91sam9g20-ek

Wed Dec 15, 2010 3:57 pm

Hi,

I have custom board based on at91sam9g20-ek , I am using micron nand flash MT29F8G08AAAWPA . I am trying to access nand flash using SAMBA-2.10 utility but it shows bad blocks while erasing.
Here is the message,
-I- Nandflash ID is 0x2E90D32C
-I- Nandflash driver initialized
-I- pageSize : 0x1000 blockSize : 0x40000 blockNb : 0x1000 bus width : 8
-I- bufferAddr : 0x20003e34
-I- End of applet (command : 0 --- status : 0)

-I- SkipBlockNandFlash_EraseBlock: Block is BAD
-I- Found block #1 BAD, skip it

I am using input clock @ 18.40MHz. Do i need to change any settings in SAMBA-2.10 for nand flash ???
mtisza
Posts: 2
Joined: Wed Oct 13, 2010 2:36 pm

Re: SAMBA-2.10 nand settings for custom board on at91sam9g20-ek

Sun Dec 19, 2010 3:59 am

I had similar issues and still have some other unresolved issues with SDRAM. But for the NAND, we used a different part (I don't remember the details now), but the changes were to add the SDRAM in the list of recognized parts, AND to have the nand busy wait code delay for ~20useconds every time. It doesn't sound like I should have to, but until I get my hands on a prototype again it'll do.

I put print statements _AFTER_ the normal wait for busy pin high sequence. It printed how many times it looped before it was satisfied. In Sam-ba applets it printed a usually high number (60-80 ish), but in bootstrap it was always zero. I've checked configuration again and again, and I can't find anything wrong.

So the loop based time delays are staying in until I have a fix for it.

The symptom all along was that the Check??? code that checked if the block was marked bad, always returned bad.
dipen238
Posts: 7
Joined: Fri Oct 15, 2010 12:07 pm

Re: SAMBA-2.10 nand settings for custom board on at91sam9g20-ek

Mon Dec 20, 2010 6:35 am

Hi now I am able to erase the blocks , but it seems that it fails to identify the chip because my NAND Flash device id is not in Model list array.

So, What should i do ?
CptTitanic
Posts: 877
Joined: Sat Oct 30, 2010 6:04 pm

Re: SAMBA-2.10 nand settings for custom board on at91sam9g20-ek

Mon Dec 20, 2010 3:48 pm

>>So, What should i do ?

Add it to the list.
dipen238
Posts: 7
Joined: Fri Oct 15, 2010 12:07 pm

Re: SAMBA-2.10 nand settings for custom board on at91sam9g20-ek

Tue Dec 21, 2010 7:00 am

Thanks ...


I also added it to the list file and compile it again.
But i didnt get detected Flash.

i tried with 1Gb Nand of same manufacturer Micron and it is working with SAMBA-2.10.
I am modifying the source for my 8 Gb Nand Flash support .

So do i need it to recompile it whole or only NandFlash applet ?

Return to “SAM-BA”

Who is online

Users browsing this forum: No registered users and 1 guest