ff.h no such file or directory

Hi, 

I am working with nRF5340 and nRF Connect v2.7.0. When I try the mass sample it works fine. When I take the code to my custom project, I have 

ff.h no such file or directory

I have seen other threads that speak of the issue and the fact that there are issue witrh out of tree build, but I didn't found any solution to this. I assume it is because the files containing the code are not sourced to app directly, but linked like this : 

zephyr_link_libraries(MassStorageLib)

The MassStorageLib contain the files mass_storage.c and mass_storage.h that are mostly inspired by the working sample. 

How can I make it work ? As a subsidiary question, is it the recommended way to make a mass storage out of the nRf5340? 

Thank you for your help

Related