Report
1 year, 6 months ago.

mbed-os5 includes user configurable header file. Why do you include those file?

I'm using FatFs module since before mbed system was not available.
FatFs is very useful library and now it becomes standard in mbed-os5.
My understanding is ffconf.h file is a user defined configuration file.
If I need to set it up for my own purpose, I can modify the file according my specification.
Now I cannot modify the file in the Mbed Web online system (I don't want to use off-line compiler).
<Question>
1) Why does mbed-os5 include a configuration file?
2) How to modify the condition?

I tried to put "Compile Macro" but never success.
e.g.
Right now, I would like to modify follows in ffconf.h file.

#define FF_USE_CHMOD    0 // set to 1
#define FF_FS_RPATH     1 // set to 2
Comment on this question

1 Answer

1 year, 6 months ago.

Hi Kenji,

Thanks for raising the question. Using user-provided config files creates a barrier for new mbed-os users, since they would need to provide all the necessary user files before the library could compile.

Instead, mbed-os has its own json-based config system:
https://os.mbed.com/docs/v5.7/tools/configuring-tools.html

Unfortunately the FAT filesystem's config isn't yet integrated into mbed-os's config system. We're currently working to clean up the filesystem integration, so you can expect this to be fixed by next release.

The best workaround I can think of is to import this url:
https://github.com/ARMmbed/mbed (not mbed-os)

This will give you access to source that you can modify, however it will be significantly slower.

Related issue being tracked: https://github.com/ARMmbed/mbed-os/issues/6253

posted by Christopher Haster 02 Mar 2018