Failed to include “SPIFBlockDevice.h” in MbedOS 6

[Fatal Error] main.cpp@4,10: ‘SPIFBlockDevice.h’ file not found
[ERROR] .\main.cpp:4:10: fatal error: ‘SPIFBlockDevice.h’ file not found
#include “SPIFBlockDevice.h”
^~~~~~~~~~~~~~~~~~~
1 error generated.

Hello,

I do not know your target, but this API is component and when it is not set in targets.json for your target, then you need to add this by your self via mbed_app.json

    "components_add": [ "SPIF" ]

BR, Jan

2 Likes

{
“target_overrides”: {
“*”: {
“target.components_add”: [“SPIF”]
}
}
}