i am working on a project where i need to connect a sensor to an rsl10 with SPI. I was able to set up the right pins with the CMSIS driver and a think that the initialisation works.
To test the connection i hooked up the CS-Signal to an oscilloscope: Befor the initialisation the signal is floating, then when initialised the signal is high (SPI inactive). After the initialisation i set the SPI connection to “activ” in the code and the signal coresondingly goes low.
But there is where the issues start: I then i try to receive data with
spi0->Receive(sensor_data, 12);. This should read data from SPI0, then go into the defined callback function and set the CS back to high. But it seems like it never enters the callback function and hence is also unable to set the CS back to high.
I have talked to experts form my university but we were not able to figure out why it wont work properly. Now i really hope that someone who is an exprt with the rsl10 can help me to get the SPI interface working.
To really see how i implemented it so far i attached the my project file (KEIL), as well as the main application file.
I hope i have worded my issue understandably, will gladly answer questions to clarify things and really hope that someone out there can help me.
Best regards, Hannes
app.c (10,8 KB)
Kaffetasse.Target_1.cprj (3,9 KB)