SAM-BA 16-bit NAND access

Microchip in-system programming solution: SAM-BA

Moderators: nferre, fab

rbb
Contact:
Location: Boulder, CO
Posts: 2
Joined: Mon Apr 02, 2007 7:07 pm

SAM-BA 16-bit NAND access

Mon Apr 02, 2007 9:10 pm

Hi All,

We've designed a board very similar to the AT91SAM9261-EK. One of the main differences is that we're using at 16 bit wide flash instead of an 8-bit wide flash. We are using a Micron MT29F2G08AACWP Flash part.

Below is a snippet of what happens when I get to the NAND Flash init step of the WindCE_demo.ppt procedure in SAM-BA (which works on the EK demo board).

(AT91-ISP v1.8) 1 % NANDFLASH::Init
-I- Enable the address range of CS3 in HMATRIX user interface
-I- Configure SMC CS3
-I- Clock PIOC
-I- Configure Ready/Busy signal
-I- Configure pull-up
-I-Enable PC0=SMOE line PC1=SMWE, A21=CLE, A22=ALE
-I- Enable NandFlash
-I- Initialize SDRAM
-I- Configure PIOC as peripheral (D16/D31)
-I- Init MATRIX to support CS1 for SDRAM
-I- Init SDRAM
-I- 1. A minimum pause of 200us is provided to precede any signal toggle
-I- 2. A Precharge All command is issued to the SDRAM
-I- *pSDRAM = 0;
-I- 3. Eight Auto-refresh are provided
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- 4. A mode register cycle is issued to program the SDRAM parameters
-I- *(pSDRAM+0x20) = 0;
-I- 5. Write refresh rate into SDRAMC refresh timer COUNT register
-I- 6. A Normal Mode Command is provided, 3 clocks after tMRD is set
-I- *pSDRAM = 0;
-I- End of Init_SDRAM_48
-I- ReadId
-I- NandFlash ID : 0x0000
-E- Manufacturer not supported...

I get the same result above, regardless of weather I change line 128 of NANDFLASH.tcl - as shown below.

# Original Demo board lines
#TCL_Write_Int $target(handle) [expr $AT91C_SMC_READMODE | AT91C_SMC_WRITEMODE | $AT91C_SMC_NWAITM_NWAIT_DISABLE | \
# $AT91C_SMC_DBW_WIDTH_EIGTH_BITS |
$AT91C_SM_TDF] $AT91C_SMC_CTRL3 dummy_err

# Modified lines, in attempt to perform 16-bit NAND flash access
TCL_Write_Int $target(handle) [expr $AT91C_SMC_READMODE | $AT91C_SMC_WRITEMODE | $AT91C_SMC_NWAITM_NWAIT_DISABLE | \
$AT91C_SM_TDF] $AT91C_SMC_CTRL3 dummy_err

(Note: some of the \ line continuation and # comment markers may not look right in this posting because of the wrapping that occurs in the web form.)

Is there something else that I'm missing? Any suggestions would be appreciated.

Thanks,
Russ
rbb
Contact:
Location: Boulder, CO
Posts: 2
Joined: Mon Apr 02, 2007 7:07 pm

Not 16 Bit

Mon Apr 02, 2007 10:01 pm

I mistakenly noted that the part we are using is 16-bit. It is actually 8-bit. Just like that part on the Demo board. As far as I can tell the Micron part we're using should be compatible.

So, I've reverted to 8-bit accesses in the NANDFLASH.tcl file.

I've also checked CE, ALE, WE and RE, which all look OK.

Russ
dirk
Contact:
Location: Krefeld, Germany
Posts: 5
Joined: Fri Jan 25, 2008 2:41 pm

Fri Jan 25, 2008 2:57 pm

Hello,

have you checked out, that your SDRAM is working correctly?

Even if initialization has been done successfully it might not work at all.
SAM-BA needs this memory to execute a small code which reads the ID and with non working SDRAM you might get anything here.

Return to “SAM-BA”

Who is online

Users browsing this forum: No registered users and 2 guests