NandFlash read/write error 0x0000000f - AT91SAM92161S

Microchip in-system programming solution: SAM-BA

Moderators: nferre, fab

btarm
Posts: 2
Joined: Mon Jan 25, 2010 7:44 pm

NandFlash read/write error 0x0000000f - AT91SAM92161S

Mon Jan 25, 2010 8:14 pm

Hello,

I have been using SAM-BA 2.9 w/SP1 on an AT91SAM9261S RevB device . I am able to detect the device (Chip ID : 0x019703a0) and program the DataFlash EEPROM on board with the COM port.

I have been able to program/read large areas of the external SDRAM, so I don't believe it's anything to do with the connection speed or interface cable.

When it comes to the NandFlash the Init and BadBlockList works ok but any read/write to the Flash causes an error in the applet.

-E- Can't send data (0x0000000f)

I get this same message with GetFile or SendFile. Am I missing a step here?

Here is the Initialization message, which appears to find the correct sized NAND (16MByte).

-I- === Initialize the NAND access ===
-I- NANDFLASH::Init (trace level : 0)
-I- Loading applet isp-nandflash-at91sam9261.bin at address 0x20000000
-I- Memory Size : 0x1000000 bytes
-I- Buffer address : 0x20003AB8
-I- Buffer size: 0x4000 bytes
-I- Applet initialization done


Here is the log from an attempted program.

-I- Send File u-boot.bin at address 0x4000
GENERIC::SendFile u-boot.bin at address 0x4000
-I- File size : 0x2C800 byte(s)
-I- Start Time : 21-Jan-10 : 13:25:06
-I- Writing: 0x4000 bytes at 0x4000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x8000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x4000 bytes at 0xC000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x4000 bytes at 0x10000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x14000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x18000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x4000 bytes at 0x1C000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x4000 bytes at 0x20000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x24000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x28000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x4000 bytes at 0x2C000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x4000 bytes at 0x30000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x34000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x38000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x4000 bytes at 0x3C000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x4000 bytes at 0x40000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x44000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x48000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x4000 bytes at 0x4C000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x4000 bytes at 0x50000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x54000 (buffer addr : 0x20003AB8)
-I- 0x0 bytes written by applet
-I- Writing: 0x4000 bytes at 0x58000 (buffer addr : 0x20003AB8)
-I- 0x4000 bytes written by applet
-I- Writing: 0x800 bytes at 0x5C000 (buffer addr : 0x20003AB8)
-E- Can't send data (0x0000000f)


Thanks for any assistance. I have been unable to find a similar message on this forum.

Regards,
btarm
Posts: 2
Joined: Mon Jan 25, 2010 7:44 pm

Re: NandFlash read/write error 0x0000000f - AT91SAM92161S

Mon Jan 25, 2010 10:32 pm

Apparently the answer lies with the buffer size. The applet requires full blocks of data so you have to pad the images.

The operation is completing after writing a tcl script to pad the binary to 16384 Bytes.

Cheers,

Return to “SAM-BA”

Who is online

Users browsing this forum: No registered users and 1 guest