Compile error with Mbed OS and QSPI

Hi, I am going to use Quad SPI interface with NUCLEO-H743ZI2 board.
So I looked examples and included the reference to the QSPI library:
#include “drivers/QSPI.h”
But then I try to compile code I am getting errors like
[Error] main.cpp@51,5: unknown type name ‘qspi_status_t’
[Error] main.cpp@54,14: use of undeclared identifier ‘qspi_device’
[Error] main.cpp@54,43: use of undeclared identifier ‘QSPI_CFG_BUS_QUAD’
etc.
Can someone explain what I need to do to be able to use QSPI.h in my code?
Thank you in advance!
Irek

Hello,

not sure, but I think it is disabled by default on all ST targets where is not an onboard connector or onboard SPI memory. On other targets it could be enabled via Mbed configuration

Try to add mbed_app.json

{
    "target_overrides": {
        "*": {
            "target.device_has_add": ["QSPI"]
        }
    }
}

BR, Jan

Problem solved. Thank you, JohnnyK !

Your recommendation to add “target.device_has_add”: [“QSPI”] helped!
Now I can compile my code.
Thank you very much!