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

General • Re: Pico 2 - Multicore code, possible conflict SPI/DMA

$
0
0
Because my display and SD card reader are on the same board, they use the same MISO and MOSI pins, so if I send the whole buffer through SPI, I block those pins.
This is not ideal, cannot separate them?
I'm playing with spinlocks, but it seems that SPI is truly slow.
How slow?
The only way is using separate module of card reader. I spent few hours on experimenting with spinlocks to realize I should find a other solution to play music, e.g. MP3 file as const uint8_t[]. Sd cards just randomly stop working.

I thought SPI is so slow because before ans after every chunk I changed CS pin status to avoid problem while loading data from sd :P

Statistics: Posted by YamiFive — Sat May 03, 2025 8:50 pm



Viewing all articles
Browse latest Browse all 8051

Trending Articles