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

Filesystem: How to check if FAT drive is initialzed or not?

Hi,

Re: MDK-ARM CM3 Middleware FileSystem. FAT Drive on a NAND Flash ("N0:").

I'm looking for a method to check, wether a FAT drive is initialized or not! I must check, wether finit() had already been called or not.

I could not find a sufficient "high"-level Utility Routine. Thus I considered about using IO Control Interface Routines. Therfore I first had to get an id:
fs_ioc_get_id("N0:") returns drv_id = 1 on an uninitialized(!) drive which causes further fs_ioc-functions to crash.

Do anyone have an idea, how to check wether a (nonremovable NAND Flash) FAT drive is initialized or not?

Best regards
Matz

Parents
  • Hi Vladimir,

    thanks, this will work of corse. But in my case finit is done by another (third party) modul not providing a separat status variable.
    I do not believe that it should be impossible to query the state (is finit?) directly from the file system middleware itself. Unfortunately it seems to be so.
    Or does someone else have a solution?

    Best regards.
    Matz

Reply
  • Hi Vladimir,

    thanks, this will work of corse. But in my case finit is done by another (third party) modul not providing a separat status variable.
    I do not believe that it should be impossible to query the state (is finit?) directly from the file system middleware itself. Unfortunately it seems to be so.
    Or does someone else have a solution?

    Best regards.
    Matz

Children