FlashFS NAND K9F5608 not work

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?

Parents
  • You are right! Yhank you!

    But still does not work! I am unable to adjust the read commands, because this memory is divided into two regions and requires two different commands.

    K9F1G08:

    /* Write command 1 */
    WrCmd (NAND_CMD_READ1ST); // 0x00
    /* Set address */
    SetPgAddr (cfg->AddrCycles, row, cfg->PageSize);
    /* Write command 2 */
    WrCmd (NAND_CMD_READ2ND); // 0x30
    

    K9F5608:

    if(row <= 255) {
      /* Write command 1º half array */
      WrCmd (NAND_CMD_READ1HALF); // 0x00
    }
    else if(row <= 511) {
      /* Write command 2º half array */
      WrCmd (NAND_CMD_READ2HALF); // 0x01
    }
    else {
      /* Write command 2º spare array */
      WrCmd (NAND_CMD_READSPARE); // 0x50
    }
    /* Set address */
    SetPgAddr (cfg->AddrCycles, row, cfg->PageSize);
    

Reply
  • You are right! Yhank you!

    But still does not work! I am unable to adjust the read commands, because this memory is divided into two regions and requires two different commands.

    K9F1G08:

    /* Write command 1 */
    WrCmd (NAND_CMD_READ1ST); // 0x00
    /* Set address */
    SetPgAddr (cfg->AddrCycles, row, cfg->PageSize);
    /* Write command 2 */
    WrCmd (NAND_CMD_READ2ND); // 0x30
    

    K9F5608:

    if(row <= 255) {
      /* Write command 1º half array */
      WrCmd (NAND_CMD_READ1HALF); // 0x00
    }
    else if(row <= 511) {
      /* Write command 2º half array */
      WrCmd (NAND_CMD_READ2HALF); // 0x01
    }
    else {
      /* Write command 2º spare array */
      WrCmd (NAND_CMD_READSPARE); // 0x50
    }
    /* Set address */
    SetPgAddr (cfg->AddrCycles, row, cfg->PageSize);
    

Children
More questions in this forum