79446931

Date: 2025-02-18 01:32:08
Score: 1
Natty:
Report link

After abandoning the project for a while and redoing the electrical architecture of my board, I found the issue.

Part of the code for the SDIO / FATFS was being auto-generated by the STM32CubeIDE (handy tool, but not bug free).

When setting up the FATFS, it was requiring me to use a "Card Detected" pin. For my board, this pin collides with the SDIO D3 pin. So, I was forcing one of the SD Card data pins to ground (although operaitng it in 1 bit). Thus, I was getting intermittent behavior.

I removed this part of the code + removed totally this card detected pin, subtituting it by a software logic and leaaving the GPIO uninitialized. Now, it works like a charm!

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Matheus Felipe