We use cookies to provide our visitors with an optimal site experience. View our privacy notice and cookie notice to learn more about how we use cookies and how to manage your settings. By proceeding on our website you consent to the use of cookies.
Hello,
I’m building a data logger with a Raspberry Pi Pico and SPI SD card storage. Logging starts fine, but after several hours the file write process stalls and no new data is saved.
Power remains stable and the MCU does not crash.
Questions:
Should I investigate filesystem handling first or SPI communication reliability?
Can voltage dips during SD write current peaks cause silent failures?
On the PCB, is it better to place the SD socket very close to the MCU SPI pins?
Short SPI traces (especially SCK)
Tight routing over solid ground
Avoid routing near switching regulators or noisy digital lines
Add small series resistors, if edges are sharp