Hi,
I am trying to use SPI to get data from a sensor. In nRF 5 SDK V11, I got it to work by setting the SS pin in the config struct of the initialization function.
Now, instead of declaring the chip select in the config structure, I want to use a GPIO pin to achieve the same. I think I am configuring everything correctly but I am not reading the right values. I am getting some garbage values. Here's my main file
SPI initialization function now looks like this
The bmaInit() function involves writing data through SPI and so I pulled it low and back high.
Should be pretty straightforward but I can't seem to get it to work. I read different garbage values in every loop. Am I missing something? I feel there's a problem with timing or with reading the buffers. Appreciate any help! Thanks.