USBMSDHost.h cannot find FATFileSystem.h

Hi

When I use both frameworks RTOS and FILESYSTEM, FATFileSystem.h cannot be found when compiling USBMSDHost.h.

It is no problem however to find FATFileSystem.h from main.cpp, at least if I don’t include USBMSDHost.h.

This should be simple to reproduce. Just start with project example mbed-filesystem and include USBMSDHost.h.

Using VSCode. My setup:
[env:disco_f769ni]
platform = ststm32
framework = mbed
board = disco_f769ni
build_flags =
-DPIO_FRAMEWORK_MBED_PRESENT
-DPIO_FRAMEWORK_MBED_FILESYSTEM_PRESENT
-D PIO_FRAMEWORK_MBED_RTOS_PRESENT

Have tried different ways to help finding the filesystem\fat folder, like lib_deps, build_flag -I without success…

/Anders