Using SPI Port Question - Fanstel BT840

Mike Marks




I wonder if this is the correct place to seek help with a problem I am seeing.  I am trying to use the SPI port on a Fanstel BT840, and was hoping to use the spi_read() and spi_write() functions that are found in the header file spi.h in the directory zephyr/include/drivers/. These functions would be used to pass data between the Bluetooth and SPI ports on the Fanstel BT840. The Fanstel part has the Nordic nRF82540 as its core processor.


In my project’s main.c, I include <drivers/spi.h>.  I am then able to add ‘status = spi_read(spiDev, &spiConfig, &spi_rx);’, but run into exception errors when I try to step over this function. A Nordic FAE suggested that I might be taking a wrong approach, and should instead seek out examples that make use of the SPI port. Looking through the adxl372 example he suggested, it is not obvious how to read and write from the SPI port.


Zephyr is a new and very broad field to me, so I would appreciate any pointers to get going in the right direction.




Mike Marks

Utility Relay Company.



Join to automatically receive all group messages.