Go Down

Topic: [solved] due extended SPI problem (Read 815 times) previous topic - next topic

Sep 24, 2013, 10:02 am Last Edit: Sep 24, 2013, 09:57 pm by MichaelBot Reason: 1
Hi,

I discovered a problem with the extended SPI library:

Using more than one begin(CS) of the three predefined pins (4, 10, 52),
completely stopps any SPI communication.
If end(CS) is used before an other begin(CS) with a different pin it works.

Not sure if this is the intended use?
I thought they can be used in parallel, as shown in the extended SPI reference.

IDE: nightly build for mac downloaded 23.sept

cmaglie

MichaelBot,

I'm looking into this, thanks for the bug report.

C.

cmaglie

MichaelBot,

maybe I've found a regression, may you check if replacing

libraries/SPI/arch/sam/SPI.cpp
libraries/SPI/arch/sam/SPI_Class.h

in you arduino installation, with the one attached to this post solves your issue?

C.

#3
Sep 24, 2013, 09:26 pm Last Edit: Sep 24, 2013, 09:31 pm by MichaelBot Reason: 1
Hi Christian,

yep :) this solves the problem (saleae & hameg & me proved)

thanks for the fast response and fix !

kudos & gracie

cmaglie


And also pushed for 1.5.5:

https://github.com/arduino/Arduino/commit/b0dc3174225ff1fb7f86dbfbd63f38d27843cab1

hope this is the last bug in SPI class.  :|

Thank you!
C.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy