FatFs_uSD_Standalone Example for STM32G474E_EVAL board
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-19 1:17 AM
Hello,
I'm new to this community and I'm trying to learn from different examples that are available online. I have STM32G474E-EVAL1 board and I want to include the sd card in one of my projects. So I founded the FatFs_uSD_Standalone Example that was originally for the STM32G474E-EVAL board. I was able to compile it successfully and tried to run it in the debug mode on my EVAL1 board but it fails in the 'SD_GoIdleState(void)' function. Is there any particular reason that the code wouldn't run properly on my EVAL1 board ? I've checked that the sd connector does receive 3.3 V.
Thanks in advance
- Labels:
-
STM32G4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-19 6:14 AM - edited ‎2025-02-19 7:42 AM
Hi @Ana ,
In fact, the STM32G474E-EVAL1 is recommended to be used for the motor control configuration board
This information is already mentioned below:
When comparing the obsolete STM32G474E-EVAL Board REV B-04 with the STM32G474E-EVAL1 board, we found that the uSD chip select pin does not fit. Therefore, the uSD chip select pin (PF8) must be fitted on the STM32G474E-EVAL1 Board.
Thank you.
ELABI.1
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-19 6:24 AM
@Ana wrote:Is there any particular reason that the code wouldn't run properly on my EVAL1 board ?
Check the schematics - are all the IOs required by the example free & available on the EVAL1 board ?
@Ana wrote:I've checked that the sd connector does receive 3.3 V.
and what about all the other pins used by the SD-Card?
@Ana wrote:it fails in the 'SD_GoIdleState(void)' function.
What debugging have you done to find how & why it "fails" ?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-20 1:55 AM
Hi,
Thank you so much for the reference, this board schematic is exactly what I was looking for (found on MXCube, the names of the files are a little bit confusing:
Both of them are B04 revisions and the part number in both of the files is the obsolete STM32G474E-EVAL.)
I'll update here if this helped to solve the problem.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-02-20 2:02 AM
Hi Andrew,
Thank you for the answer, I hope that the first reference will help to solve the problem. About your second reference - I have mistakenly checked the wrong board schematics, so I'll check again all the pins. About your third reference - I entered with the debugger into the hippest function and checked where and when exactly the ERROR CODE was updated, this actually happened when the SD card didn't return answer' so I suppose it's really more of a hardware problem.
I'll update here when I'll be able to fix the problem.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-09 4:45 AM
Hi,
In addition to your previous answer, On the obsolete STM32G474E-EVAL Board REV B-04 uSD CS pin is fitted and there is resistor R135 in place, how do I know what kind of a resistor I need to choose in order to make the uSD chip select pin (PF8) fitted on the STM32G474E-EVAL1 board ?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-09 10:34 AM - edited ‎2025-03-09 10:36 AM
Hi,
>how do I know what kind of a resistor -
as you can see in the -eval circuit, its 0R = NULL ohm. So use solder or a small piece of wire...thats it.
