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

General • Re: SPI baremetal

$
0
0
This is probably the culprit:

Code:

#define SPI_DELAY 10...__delay_us(SPI_DELAY);...
I have some code to communicate with an SPI flash, it's about the same thing. With breadboard-style wiring, I put in an even larger delay to avoid errors. I suppose you can trim the delay until there is comms error. Probably tweak the GPIO drive settings as well, but I have done so little SPI that I'll leave it to the experts here to offer proper bit banged SPI tips. :)

Statistics: Posted by katak255 — Fri Oct 24, 2025 4:05 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles