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

Mounting File-System on NAND problem

Hi, i have a board which includes a stm32f103re and a 256MB NAND, as you may know this MCU does not have a external memory controller peripheral, so i wrote the required NAND driver in GPIO level . the routines include: Init, Uninit, PageRead, PageWrite and BlockErase
All this functions seems working, i have successfully wrote,read on pages and erased blocks.
the problem is when i call finit("N0") function it returns 2, meaning an unsuccessful attempt.
what could be wrong? any idea?

Parents
  • Just to clarify my question, i'm using RL-FlashFs library and the documentation provided for this library states that for using Nand-Flash, developer must provide his code for accessing Nand flash,namely: Uninit, PageRead, PageWrite and BlockErase. (http://www.keil.com/support/man/docs/rlarm/rlarm_fs_usingnand.htm , http://www.keil.com/support/man/docs/rlarm/rlarm_fs_cfgnand.htm)

    The weird part is that i have provided those functions and each of them works fine individually, but when i use higher level functions for example finit("N0"), it return 2(an error).
    in fact it seems finit just invokes init and PageRead(5,0,2112) one time and returns 2.(i might be wrong but correct me if so), and as the source code is not open, i can't understand what's going on in the Rl-FlashFs library(i also have increased heap and stack but no success).
    please let me know if you have any suggestions.

Reply
  • Just to clarify my question, i'm using RL-FlashFs library and the documentation provided for this library states that for using Nand-Flash, developer must provide his code for accessing Nand flash,namely: Uninit, PageRead, PageWrite and BlockErase. (http://www.keil.com/support/man/docs/rlarm/rlarm_fs_usingnand.htm , http://www.keil.com/support/man/docs/rlarm/rlarm_fs_cfgnand.htm)

    The weird part is that i have provided those functions and each of them works fine individually, but when i use higher level functions for example finit("N0"), it return 2(an error).
    in fact it seems finit just invokes init and PageRead(5,0,2112) one time and returns 2.(i might be wrong but correct me if so), and as the source code is not open, i can't understand what's going on in the Rl-FlashFs library(i also have increased heap and stack but no success).
    please let me know if you have any suggestions.

Children
No data