Thanks again unix_guy for all of your work on this project!
I do have a question about your nandwrite routine. I get the following output when executed (to save space, I only include the start and end of input):
----------------------------------------------
File: nandwrite.c, (Jan 7 2007, 20:12:21)
Manufacturer code: 0x00000098
Size code: 0x00000076
Extra code: 0x000000A5
error at sector 0x00000000at word #00000000
org is 0x02000002 nand byte is 0x00000000
error at sector 0x00000000at word #00000001
org is 0x00004000 nand byte is 0x00000000
error at sector 0x00000000at word #00000002
org is 0x08000000 nand byte is 0x00000000
error at sector 0x00000000at word #00000003
org is 0x02000000 nand byte is 0x00000000
error at sector 0x00000000at word #00000006
org is 0x00050000 nand byte is 0x00000000
error at sector 0x00000000at word #00000007
org is 0x00005000 nand byte is 0x00000000
error at sector 0x00000000at word #00000008
org is 0x20000000 nand byte is 0x00000000
error at sector 0x00000000at word #00000009
org is 0x22001002 nand byte is 0x00000000
error at sector 0x00000000at word #0000000E
org is 0x20001000 nand byte is 0x00000000
error at sector 0x00000000at word #0000000F
org is 0x08010400 nand byte is 0x00000000
error at sector 0x00000000at word #00000010
org is 0xA0001000 nand byte is 0x00000000
.
.
.
org is 0x40000000 nand byte is 0x00000000
error at sector 0x00000000at word #00000078
org is 0x44000000 nand byte is 0x00000000
error at sector 0x00000000at word #0000007B
org is 0x00200000 nand byte is 0x00000000
error at sector 0x00000000at word #0000007F
org is 0x04000000 nand byte is 0x00000000
length is 0xFFFFFF85
over and out.
test complete..
----------------------------------------------
The NAND (Olympus 64 MB xD card, #200842) seems to ID OK, but looks like it is not being written to correctly. The JuiceBox cartridge test reads the card OK as well. I know you mentioned "You may have to send out an additional address byte for larger xd cards", but from the Flash 101 tutorial, I believe my 64MB card should be similar to a 16MB card ("...NAND offers a monolithic 2-Gbit die or can support up to four stacked die, allowing an 8-Gbit device in the same TSOP-1 package...). From this, I would think the 16 and 64 would have similar address scheme, but I'm not sure. Do I need to send and extra address byte, and if so, how (sorry, I couldn't really tell from the tutorial)?
Thanks!
-David