Interresting SPI Problem
Posted: Tue May 05, 2020 9:13 am
Hello!
I hope anybody has a solution for me. Following the Problem.
I am using SPI to readout an ADC. For this I wrote separate c/h file to use in a test program. In this test program everything works fine. Additional used components are WiFi, ADC and a GPIO.
When I use the same c/h files in my firmware project SPI doesn't work. When looking at the bus with a logic analyzer I see that just the clock is toggling but nothing an MOSI/MISO and also the CS doesn't toggle (I assume this is the main reason why it doesn't work).
Together: It is the same hardware where the same software (concerning SPI) is running and one time it works and the other one not.
Does anybody have an idea what might be the problem? Any interference in the API? On Google I didn't find any hints...
I hope anybody has a solution for me. Following the Problem.
I am using SPI to readout an ADC. For this I wrote separate c/h file to use in a test program. In this test program everything works fine. Additional used components are WiFi, ADC and a GPIO.
When I use the same c/h files in my firmware project SPI doesn't work. When looking at the bus with a logic analyzer I see that just the clock is toggling but nothing an MOSI/MISO and also the CS doesn't toggle (I assume this is the main reason why it doesn't work).
Together: It is the same hardware where the same software (concerning SPI) is running and one time it works and the other one not.
Does anybody have an idea what might be the problem? Any interference in the API? On Google I didn't find any hints...