Hello,
I am attempting to use SPI and I just wanted to trial the transceiver option however I am not having any luck. I have tried it three ways but as you’ll see I’ve made no progress.
Firstly, utilizing the SPI sample from NCS playground I imported it all into my ncs/v1.7.1/nrf/samples/ folder and I then opened it in VSCode. I ran it and I obtained errors. Assuming that I built it incorrectly I tried running west through command line and I obtained the same two errors as shown below:
Therefore, I removed CONFIG_DEPRECATED_ZEPHYR_INT_TYPES=y and CONFIG_SPI_1=y and ran the build again, this time successfully.
Unfortunately, the outcome wasn’t the one I was predicting, I shorted the MISO and MOSI lines to have a loop-back but on the RX line I get ff, which I assume is the initial dummy value sent? Can someone please explain why this is occurring and what can be done to remedy this, I want to read the TX that is being sent.
The code utilized is linked here: https://github.com/sigurdnev/ncs-playground/tree/master/samples/spi_test
Below is also my prj.conf before and after the changes for the build as well as the code found in main of spi_test.
Regards,
DM