Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
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

Changes to FatFS configuration file ffconf.h without changing the nRF5 SDK

Hi DevZone,

I need to change some defines in the ffconf.h file used by nRF5 SDK to set configurations for FatFS to enable use of f_findnext(), f_findfirst(), etc.

Is it possible to do this without changing the SDK? We are not versioning the Nordic SDK, and therefore, collaborators are dependent on the project working with a stock SDK.

I have tried including my own ffconf.h with a #pragma once  before the ffconf.h from the SDK is included, but without luck so far.

Any advice is appreciated.

Br. Casper

Parents
  • Hi,

    I would have just copied the sdk/external/fatfs folder, to e.g. sdk/path_to_my_application_project/fatfs, and the changed the project include directories to point to the "modified" fatfs folder instead. Or, create a new folder in the sdk/external folder, called fatfs_<project_name_or_something>, with the modified "fatfs" files that your project application uses instead..

Reply
  • Hi,

    I would have just copied the sdk/external/fatfs folder, to e.g. sdk/path_to_my_application_project/fatfs, and the changed the project include directories to point to the "modified" fatfs folder instead. Or, create a new folder in the sdk/external folder, called fatfs_<project_name_or_something>, with the modified "fatfs" files that your project application uses instead..

Children
Related