Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

General • Re: Is SPI Slave (on Pico2) still fubar'ed?

$
0
0
I can't confirm anything since I haven't yet received my Pico2, but the information you provide scares me a little - I'm in the beginning phase of a project where either Pico or Pico2 will have to be the SPI slave (Pi4 or Pi5 being the master) and I've got the first buffers sent - with problems, but I'm currently debugging the problems.

Is there a write-up of the original problem somewhere so I could read it like a civilized person and not hit it headfirst? :)

My program's current status - maybe a symptom of the problem you mention - the peripheral can hear the master loud and clear (test case: master sends buffers of "ABABABABA"). But the master can hear the peripheral only at the start of their session (2 buffers containing "ababababab" interleaved by a buffer of null, after that - endless buffers of null).

Example from bus master:

Code:

controller run 0 rx 50 B: abababababababababababababababababababababababababcontroller run 1 rx 50 B: controller run 2 rx 50 B: bababababababababababababababababababababababababacontroller run 3 rx 50 B: controller run 4 rx 50 B: controller run 5 rx 50 B: 
Example from peripheral:

Code:

peripheral run 0 rx 50 B: ABABABABABABABABABABABABABABABABABABABABABABABABABperipheral run 1 rx 50 B: ABABABABABABABABABABABABABABABABABABABABABABABABABperipheral run 2 rx 50 B: ABABABABABABABABABABABABABABABABABABABABABABABABABperipheral run 3 rx 50 B: ABABABABABABABABABABABABABABABABABABABABABABABABABperipheral run 4 rx 50 B: ABABABABABABABABABABABABABABABABABABABABABABABABABperipheral run 5 rx 50 B: ABABABABABABABABABABABABABABABABABABABABABABABABAB
(currently I just think my polarity and phase settings differ)

Statistics: Posted by diastrikos — Tue Aug 20, 2024 8:36 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles