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

Can't mount FS on NAND

Hi all.
I'm trying to mount file system on NAND flash MT29F1G08ABADAH4. I'm using cortex m4.
Here are my NAND setting:

#define NAND0_ENABLE 1
#define NAND0_TYPE 0
#define NAND0_DRIVER 0
#define NAND0_DEV_NUM 0
#define NAND0_PAGE_SIZE 2112
#define NAND0_PAGE_COUNT 64
#define NAND0_BLOCK_COUNT 1024 // 128Mb
#define NAND0_PAGE_CACHE 8
#define NAND0_BLOCK_CACHE 16
#define NAND0_SW_ECC 1
#define NAND0_CACHE_SIZE 4
#define NAND0_CACHE_RELOC 0
#define NAND0_CACHE_ADDR 0x80000000
#define NAND0_FAT_JOURNAL 1
#define NAND0_DEFAULT_DRIVE 1

I've tried to use example from MDK 5.0:File System Component:System Routines:fmount:

void main (void) {

if (finit ("N:") != fsOK) {// error handling} if (fmount ("N:") != fsOK) {// error handling} // do smth funmount ("M:"); funinit ("M:");
}

So, i've got a problem:
finit("N0:") returnk OK, but fmount("N0:") fails with "fsMediaError" code

Can anybody help me?

Parents
  • Hi all
    I need help, guys.

    Yesterday I've got message from Keil's suport team:

    "in MDK 5 there is still no support for the K70 nand controller. This
    is no MemBus type driver. The whole Runtime Environment is not prepared for this.

    fsMediaError means there were problems during the initial access of the device, like it does
    not set the status bits correct. You probably should see one of the driver functions returning
    an error.

    But as said, at the moment MDK 5 does not support this and you would need to look at the legacy
    support / MDK-ARM 4 support for K70 NAND drivers."

    Did somebody use the legacy files? What about their usability?
    Or the best way is to use mdk 473?

Reply
  • Hi all
    I need help, guys.

    Yesterday I've got message from Keil's suport team:

    "in MDK 5 there is still no support for the K70 nand controller. This
    is no MemBus type driver. The whole Runtime Environment is not prepared for this.

    fsMediaError means there were problems during the initial access of the device, like it does
    not set the status bits correct. You probably should see one of the driver functions returning
    an error.

    But as said, at the moment MDK 5 does not support this and you would need to look at the legacy
    support / MDK-ARM 4 support for K70 NAND drivers."

    Did somebody use the legacy files? What about their usability?
    Or the best way is to use mdk 473?

Children
No data