I am attempting to port my Mbed Studio project over to platformio. When I try to build the project using PlatformIO, I get these errors:
Compiling .pio/build/nucleo_h743zi/FrameworkMbeddrivers/source/BusInOut.o
/home/drfay/.platformio/packages/framework-mbed/features/storage/system_storage/SystemStorage.cpp: In static member function 'static mbed::BlockDevice* mbed::BlockDevice::get_default_instance()':
/home/drfay/.platformio/packages/framework-mbed/features/storage/system_storage/SystemStorage.cpp:94:9: error: 'MBED_CONF_SPIF_DRIVER_SPI_MOSI' was not declared in this scope; did you mean 'MBED_CONF_APP_LORA_SPI_MOSI'?
94 | MBED_CONF_SPIF_DRIVER_SPI_MOSI,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MBED_CONF_APP_LORA_SPI_MOSI
Compiling .pio/build/nucleo_h743zi/FrameworkMbeddrivers/source/BusOut.o
Compiling .pio/build/nucleo_h743zi/FrameworkMbeddrivers/source/CAN.o
/home/drfay/.platformio/packages/framework-mbed/features/storage/system_storage/SystemStorage.cpp:95:9: error: 'MBED_CONF_SPIF_DRIVER_SPI_MISO' was not declared in this scope; did you mean 'MBED_CONF_APP_LORA_SPI_MISO'?
95 | MBED_CONF_SPIF_DRIVER_SPI_MISO,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MBED_CONF_APP_LORA_SPI_MISO
/home/drfay/.platformio/packages/framework-mbed/features/storage/system_storage/SystemStorage.cpp:96:9: error: 'MBED_CONF_SPIF_DRIVER_SPI_CLK' was not declared in this scope; did you mean 'MBED_CONF_DRIVERS_QSPI_CSN'?
96 | MBED_CONF_SPIF_DRIVER_SPI_CLK,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MBED_CONF_DRIVERS_QSPI_CSN
Compiling .pio/build/nucleo_h743zi/FrameworkMbeddrivers/source/DigitalIn.o
/home/drfay/.platformio/packages/framework-mbed/features/storage/system_storage/SystemStorage.cpp:97:9: error: 'MBED_CONF_SPIF_DRIVER_SPI_CS' was not declared in this scope; did you mean 'MBED_CONF_DRIVERS_QSPI_CSN'?
97 | MBED_CONF_SPIF_DRIVER_SPI_CS,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| MBED_CONF_DRIVERS_QSPI_CSN
Compiling .pio/build/nucleo_h743zi/FrameworkMbeddrivers/source/DigitalInOut.o
/home/drfay/.platformio/packages/framework-mbed/features/storage/system_storage/SystemStorage.cpp:98:9: error: 'MBED_CONF_SPIF_DRIVER_SPI_FREQ' was not declared in this scope
98 | MBED_CONF_SPIF_DRIVER_SPI_FREQ
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compiling .pio/build/nucleo_h743zi/FrameworkMbeddrivers/source/DigitalOut.o
*** [.pio/build/nucleo_h743zi/FrameworkMbedfeatures/storage/system_storage/SystemStorage.o] Error 1
When I investigate further, it appears that the mbed_config.h generated by PlatformIO is not generating macros to define these items. Mbed CLI, on the other hand does create an mbed_config.h with these items defined.
Any help would be greatly appreciated.
Thanks,
-Dan Fay