Error] main.cpp@5,0: #289: no instance of constructor "mbed::QSPIFBlockDevice::QSPIFBlockDevice" matches the argument list
[ERROR] "./qspif-blockdevice/QSPIFBlockDevice.h", line 129: Warning: #1300-D: ~QSPIFBlockDevice inherits implicit virtual
"./qspif-blockdevice/QSPIFBlockDevice.h", line 91: Warning: #611-D: overloaded virtual function "BlockDevice::get_erase_size" is only partially overridden in class "mbed::QSPIFBlockDevice"
".\main.cpp", line 5: Error: #289: no instance of constructor "mbed::QSPIFBlockDevice::QSPIFBlockDevice" matches the argument list
argument types are: (PinName, PinName, PinName, PinName, PinName, PinName, int, int)
.\main.cpp: 2 warnings, 1 error
WORKAROUND - If the 0 is changed to QSPIF_POLARITY_MODE_0, then it works.
The example code in the readme makes the call to the constructor with a 0 value for the polarity.
This results in the error
WORKAROUND - If the 0 is changed to QSPIF_POLARITY_MODE_0, then it works.
The best solution would be to get the integer 0 or 1 to be successful when passed to the constructor.