I am facing the following error while compiling. Does anyone have an idea? Thanks a lot.
/Arduino/libraries/SparkFun_BMI270_Arduino_Library/src/SparkFun_BMI270_Arduino_Library.cpp: In static member function 'static int8_t BMI270::readRegistersSPI(uint8_t, uint8_t*, uint32_t, BMI270_InterfaceData*)':
/Arduino/libraries/SparkFun_BMI270_Arduino_Library/src/SparkFun_BMI270_Arduino_Library.cpp:1226:5: error: 'SPI' was not declared in this scope
SPI.beginTransaction(SPISettings(interfaceData->spiClockFrequency, MSBFIRST, SPI_MODE0));
The root cause is that EDGE does not have a SPI interface. There are 2 ways forward:
change the BMI270 library and remove all the SPI references OR
fool the system to make it look like there is a SPI interface.
Option 2 is easier and faster : In the apollo3 library folder (on my Ubuntu on) packages/SparkFun/hardware/apollo3/2.2.1/variants/SFE_EDGE, the file variant.h