Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 9 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
1 Answer
6 years, 9 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.