<div dir="ltr"><div class="gmail_default" style="font-size:small">Hello,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">First of all really sorry for the long delay, I am preparing for a robotics competition</div><div class="gmail_default" style="font-size:small">and it eats up most of my free time.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I finally got a logic analyzer and tested the SPI driver using it. And as expected the</div><div class="gmail_default" style="font-size:small">waveforms weren't right. To understand the device better and also to narrow down</div><div class="gmail_default" style="font-size:small">the problem I decided to write a simple polled driver. This driver can be found</div><div class="gmail_default" style="font-size:small">here</div><div class="gmail_default" style="font-size:small"><a href="https://github.com/gs-niteesh/rtems/blob/8a75a2f5eb6b4eb852da9563b53b6c021463a8c7/bsps/arm/beagle/spi/simple-spi.c">https://github.com/gs-niteesh/rtems/blob/8a75a2f5eb6b4eb852da9563b53b6c021463a8c7/bsps/arm/beagle/spi/simple-spi.c</a><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Commit: <a href="https://github.com/gs-niteesh/rtems/commit/8a75a2f5eb6b4eb852da9563b53b6c021463a8c7">https://github.com/gs-niteesh/rtems/commit/8a75a2f5eb6b4eb852da9563b53b6c021463a8c7</a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This way I was able to get my first byte pushed but the succeeding bytes time out. I</div><div class="gmail_default" style="font-size:small">added the time out to make sure the pushed data is transferred before getting overwritten</div><div class="gmail_default" style="font-size:small">by the succeeding bytes. I also checked other drivers to make sure adding a timeout is</div><div class="gmail_default" style="font-size:small">necessary.</div><div class="gmail_default" style="font-size:small">On removing the timeout I was able to get all my bytes pushed successfully.</div><div class="gmail_default" style="font-size:small">This was verified using the logic analyzer. But on using the timeout I face the mentioned</div><div class="gmail_default" style="font-size:small">problem. I even tried decreasing the time but still, I face the same issue.</div><div class="gmail_default" style="font-size:small">What could be causing the problem? Is there any other way to debug this?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small">Niteesh.</div><div class="gmail_default" style="font-size:small"><br></div></div>