Pages: [1]   Go Down
Author Topic: [solved] due extended SPI problem  (Read 710 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: September 24, 2013, 02:57:53 pm by MichaelBot » Logged

Forum Administrator
Milano, Italy
Offline Offline
Sr. Member
*****
Karma: 23
Posts: 292
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

MichaelBot,

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

Logged

C.

Forum Administrator
Milano, Italy
Offline Offline
Sr. Member
*****
Karma: 23
Posts: 292
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?


* SPI.cpp (3.82 KB - downloaded 42 times.)
* SPI_Class.h (1.85 KB - downloaded 34 times.)
Logged

C.

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Christian,

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

thanks for the fast response and fix !

kudos & gracie
« Last Edit: September 24, 2013, 02:31:58 pm by MichaelBot » Logged

Forum Administrator
Milano, Italy
Offline Offline
Sr. Member
*****
Karma: 23
Posts: 292
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


And also pushed for 1.5.5:

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

hope this is the last bug in SPI class.  smiley-neutral

Thank you!
Logged

C.

Pages: [1]   Go Up
Jump to: