# Unable to initialize file system

**URL:** <https://forums.digi.com/t/unable-to-initialize-file-system/12500>\
**Category:** NET+OS\
**Tags:** file, system\
**Created:** [February 7, 2014, 11:44am UTC](https://forums.digi.com/t/unable-to-initialize-file-system/12500 "2014-02-07T11:44:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiaxins](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jiaxins](https://forums.digi.com/u/jiaxins)\
**Post date:** [February 7, 2014, 11:44am UTC](https://forums.digi.com/t/unable-to-initialize-file-system/12500/1 "2014-02-07T11:44:33Z")

</div>

Hi,

I’m working on an ConnectME application.

It did not have file system, now I try to include file system.

But when it boot up, it show message:

netosStartup(): Unable to initialize file system

And the ConnectME mudule is died.

What is this problem?  
And how to fixed this?

Thanks

Jiaxin

---

<div class="post-metadata">

**Author:** ![Campbell](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Campbell](https://forums.digi.com/u/Campbell)\
**Post date:** [February 7, 2014, 11:51am UTC](https://forums.digi.com/t/unable-to-initialize-file-system/12500/2 "2014-02-07T11:51:20Z")

</div>

You’ll need to enable the filesystem under your C:  
etos75\src\bsp\platforms\connectme directory bsp\_fs.h file. Set it to ENABLE as it shows below, the default is FALSE.

/_ad_

- Set this constant to TRUE to include the native file system in C library.
- 
- @since 6.0
- @external
- @category BSP:BSP\_Configuration  
_ad_/  
#define BSP\_INCLUDE\_FILESYSTEM\_FOR\_CLIBRARY ENABLE

---

<div class="post-metadata">

**Author:** ![Campbell](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Campbell](https://forums.digi.com/u/Campbell)\
**Post date:** [February 7, 2014, 12:02pm UTC](https://forums.digi.com/t/unable-to-initialize-file-system/12500/3 "2014-02-07T12:02:28Z")

</div>

Also make sure the following library is in your path;

The BSP\_INCLUDE\_FILESYSTEM\_FOR\_CLIBRARY #define constant in bsp\_fs.h must be set  
to TRUE to have the BSP to mount the default RAM and Flash volumes.  
If you turn on this flag you must also be sure to link the filesys library  
in your application makefile by adding the line

$(NETOS\_LIBPATH)/[bgcolor=red]libfilesys.a[/bgcolor]

to the APP\_LIBS list.

---

<div class="post-metadata">

**Author:** ![jiaxins](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jiaxins](https://forums.digi.com/u/jiaxins)\
**Post date:** [February 13, 2014, 2:20pm UTC](https://forums.digi.com/t/unable-to-initialize-file-system/12500/4 "2014-02-13T14:20:13Z")

</div>

Sorry, the question is not clear.

My situation is:

The application firmware is OK, it success for other ConnectME module, only this module have the file system problem, and this module works good with other application, only fail in this file system application.

So, my question is, why this module do not work with file system?

Thanks

Jiaxin

---

<div class="post-metadata">

**Author:** ![Campbell](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Campbell](https://forums.digi.com/u/Campbell)\
**Post date:** [February 13, 2014, 2:57pm UTC](https://forums.digi.com/t/unable-to-initialize-file-system/12500/5 "2014-02-13T14:57:21Z")

</div>

Which application are you running? Did you try all of the example programs that use the file system or are you using your own? You should try the example apps with filesystem first and make sure that you have all the latest patches. If this doesn’t work it could be a hardware issue.

---

<div class="post-metadata">

**Author:** ![dakotas\_dad](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@dakotas\_dad](https://forums.digi.com/u/dakotas_dad)\
**Post date:** [February 14, 2014, 7:36am UTC](https://forums.digi.com/t/unable-to-initialize-file-system/12500/6 "2014-02-14T07:36:48Z")

</div>

At system startup, netosStartup (bsproot.c) calls filesystem\_init(bsp\customize\startfilesystem.c). filesystem\_init calls naClib\_fs\_init (src\bsp\common\clib\_fs\_intf.c). All of these are part of the bsp and thus are shipped in source form. You should be able to debug into naClib\_fs\_init. That may help give an indication on what is not working correctly.

---

<div class="post-metadata">

**Author:** ![jiaxins](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jiaxins](https://forums.digi.com/u/jiaxins)\
**Post date:** [February 19, 2014, 11:01am UTC](https://forums.digi.com/t/unable-to-initialize-file-system/12500/7 "2014-02-19T11:01:32Z")

</div>

I tried the filesystem example, it fail. all other application is OK.  
I guess may be it’s hardware issue.

Thanks a lot.

Jiaxin
