Nano 33 BLE SPI Issues

Hello everyone,

Newbie, first post. I've been researching this problem for months and still cannot find a solution. Any library using SPI will fail to compile due to the following errors:

error: 'class arduino::MbedSPI' has no member named 'setDataMode'

error: 'class arduino::MbedSPI' has no member named 'setBitOrder'

error: 'class arduino::MbedSPI' has no member named 'setClockDivider'

Everything I read in the forums tells me that this should have been fixed with core version 1.1.1. I have version 1.1.4 installed and I've also followed the tips in the "common problems" posts.

I'm at my wits end. If I can't get this fixed soon I'll need to scrap this board and go with another, which is a shame since it has some really nice features in a compact design. I'd appreciate any advice or help.

Sparky

I have Nano 33 BLE working successfully with MAX31865and ADS1118 ICs.
Use SPI.beginTransaction instead of the function you mentioned.
That is what I call in setup():

SPI.begin();
  SPI.beginTransaction(SPISettings(1000000, MSBFIRST, SPI_MODE1));
  delay(100);
  SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE1));
  delay(100);

Then somewhere else:
    chipSelect();
    SPI.transfer(0x80);  // write addres of Config rgister
    SPI.transfer(configRegister.reg);
    setCS_High();
2 Likes