This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Zig-Saw Puzzle. Cant put the pieces of Flash file system on Nand

Do i have to enable the "Flash Drive" along with the "Nand Flash" in the file_Config.c (Flash Configuration File) to implement flash file system on parallel nand flash?

So what is a sector on parallel nand chip? is it a block or a group of block or pages?
I have to make the FS_FlashDev.h file but the documentation speak about "sector".

#define FLASH_DEVICE
   DSB(0x10000, 0x000000),     /* Sector Size 64kB */ \ 
   DSB(0x10000, 0x010000),     /* Sector Size 64kB */ \ 
#define SF_NSECT    32 //-> is this the total number of sectors?

Parents
  • The ALE (A24), CLE(A25) and the !OE (P4.24) signals now toggle. But the CS1 (chip select)(P4.31) pin does not toggle. It remains high.

    All the pins are configured as "Plain output" mode (neither pull-up nor pull down) and "Normal Mode" (Open Drain mode disabled). No external Pull-up resistors connected.

    #define EMC_NAND_BASE  (0x80000000 + 0x1000000 * NAND0_HW_CS)    //NAND0_HW_CS = 0x01
    #define EMC_ALE_ADDR    0x01000000
    #define EMC_CLE_ADDR    0x02000000
    
    #define EMC_DATA8 *((volatile U8 *)(EMC_NAND_BASE))
    #define EMC_ADDR8 *((volatile U8 *)(EMC_NAND_BASE + EMC_ALE_ADDR))
    #define EMC_CMD8  *((volatile U8 *)(EMC_NAND_BASE + EMC_CLE_ADDR))
    

    When i try to read the Flash memory ID, i get 0x90909090. (i.e. 1001 binary -> 2 highs 2 lows)
    And when i try to read the page, 8bytes at a time, i get 0x30 (i.e. 0011 binary -> 2 highs 2 lows).
    Unable to figure out.

Reply
  • The ALE (A24), CLE(A25) and the !OE (P4.24) signals now toggle. But the CS1 (chip select)(P4.31) pin does not toggle. It remains high.

    All the pins are configured as "Plain output" mode (neither pull-up nor pull down) and "Normal Mode" (Open Drain mode disabled). No external Pull-up resistors connected.

    #define EMC_NAND_BASE  (0x80000000 + 0x1000000 * NAND0_HW_CS)    //NAND0_HW_CS = 0x01
    #define EMC_ALE_ADDR    0x01000000
    #define EMC_CLE_ADDR    0x02000000
    
    #define EMC_DATA8 *((volatile U8 *)(EMC_NAND_BASE))
    #define EMC_ADDR8 *((volatile U8 *)(EMC_NAND_BASE + EMC_ALE_ADDR))
    #define EMC_CMD8  *((volatile U8 *)(EMC_NAND_BASE + EMC_CLE_ADDR))
    

    When i try to read the Flash memory ID, i get 0x90909090. (i.e. 1001 binary -> 2 highs 2 lows)
    And when i try to read the page, 8bytes at a time, i get 0x30 (i.e. 0011 binary -> 2 highs 2 lows).
    Unable to figure out.

Children