Jump to content


Photo

Silent SPI?


  • Please log in to reply
4 replies to this topic

#1 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:35 PM

Is it possible to use the SPI interface without the verbose output in the console?


also


How do I wait for SPI to finish the last command?



#2 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:35 PM

you can edit libraries/SPI/SPI.cpp, remove or comment all printf.

or you can direct your log to /dev/null, for example: 
./spi_test > /dev/null

what do you mean "How do I wait for SPI to finish the last command"?



#3 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:35 PM

you can edit libraries/SPI/SPI.cpp, remove or comment all printf.

or you can direct your log to /dev/null, for example: 
./spi_test > /dev/null

what do you mean "How do I wait for SPI to finish the last command"?
 

I found the printf statements last night.

When I first started working with the SPI I was doing it wrong and it would cause some timing issues. Now that I have an understanding of what the developers did it is working as it should. Except for the speed reported by SPI, but thats for the developers to worry about.



#4 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 13 February 2015 - 04:36 PM

I already commented out the SPI.cpp debug messages, compiled again and still showing, how its possible?



#5 alcom

alcom

    Member

  • Members
  • PipPip
  • 12 posts

Posted 12 March 2015 - 12:01 AM

Hello Jim,

 

Had the same problem a few weeks ago, 

 

I was able to fix it, check out the link

 

http://forum.linkspr...s-slows-system/

 

Thanks

 

 

 

 

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users