Hi,
I'm having trouble configuring the NAND K9F5608U in FlashFS. The File_Config.c file has no configuration options for this memory. If I am not wrong, the setting should be:
Page size = 16384 + 512 bytes Block size = 32 pages Devise size = 2048 blocks
I have done work NAND K9F1G08U but my hardware requires K9F5608U (I'm using a LPC2478).
Some help?
Dont you have example codes for nand flash interface with LPC2478? have you tried executing those codes?
For memory K9F1G08 has examples and works. This memory has 2 commands for reading and 4 address cycles.
WrCmd (NAND_CMD_READ1ST); // 0x00 SetPgAddr (cfg->AddrCycles, row, cfg->PageSize); // 4 cycles WrCmd (NAND_CMD_READ2ND); // 0x30 WaitReady(); // busy
The memory I'm using is K9F5608, this does not have specific examples for LPC2478. This memory has only 1 read command and 3 address cycles.
WrCmd (NAND_CMD_READ1HALF); // 0x00 or 0x01 (1º half or 2º half) SetPgAddr (cfg->AddrCycles, row, cfg->PageSize); // 3 cycles WaitReady(); // busy
I can run the commands read id, read status, reset.. However the commands for reading and writing the page does not work correctly. For example, in reading the page the first byte read is always equal to the last data byte from the previous command, the others are always 0xFF.
The write command can not say it works because it does not work the command to read the data..