Beagle SPI driver update

Niteesh G. S. niteesh.gs at gmail.com
Wed Oct 14 17:09:03 UTC 2020


Hello,

Update: I got the condition in the while loop wrong. After fixing this it
works now.
I'll try to post a working patch of the SPI driver as soon as possible.

Thanks,
Niteesh

On Wed, Oct 14, 2020 at 12:39 PM Niteesh G. S. <niteesh.gs at gmail.com> wrote:

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


More information about the devel mailing list