Enthernet Code
DIIDevHeads IoT Integration Server
•Created by Dtynin on 8/19/2024 in #firmware-and-baremetal
How to fix "Failed to initialize SD card -ENODEV" error on AVR128DA48 using SPI?
Hey @Dtynin It sounds like you've covered most of the basics, but the
-ENODEV
error suggests that the SPI
device may not be recognized correctly. re-check that the SD
card module is powered properly and that the chip select
line is correctly configured. It might also help to slow down the SPI
clock speed to ensure reliable communication. Also, confirm that the SD
card is compatible with the SPI
mode and consider using a different SD
card if possible to ensure proper initialization sequences in your code or using an SD
card library optimized for the AVR128DA48
might also resolve the issue.2 replies