Home/Support/Support Forum/SPI, SPIinit bug found a solution
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

SPI, SPIinit bug found a solution

+1 vote
Problem encountered - solution found

Problem :
SPI on serial port C, first debug session after power-up, the SPI did not return the correct data when using the SPIWrRd function. Download code again, SPI works as expected.

Solution :
after calling SPIinit() - make a call to

SPIRead( msg, 10 ); // read dummy data

Now the SPIWrRd is returning correct data. I did not bother debug this deeper once I found a solution, but it looks specific to the SPIWrRd function - a bug or an omission in the SPIinit procedure. Not sure how to report this to digi, so I posted it here :[
asked Sep 30 in Rabbit Software by Henrik New to the Community (9 points)

Please log in or register to answer this question.

...