2024-05-01 03:33 PM
Hi, All
my file system is working with the eval board of STM32U575I-EV.
However, run the same software with NUCLEO-U575ZI-Q, file system doesn't work.
I found that SDIO DETECT is changed to PD5 NUCLEO-U575ZI-Q which was PF3 on STM32U575I-EV.
How can I change the SD card pin definiton in IOC? Thanks in advance.
Best Regards
Victor
Solved! Go to Solution.
2024-05-06 04:24 PM - edited 2024-05-06 04:24 PM
I have no clue what you are doing, did you generate the new code in CubeMX ?
did you check main.h file
#define SDCARD_DETECT_Pin GPIO_PIN_0
#define SDCARD_DETECT_GPIO_Port GPIOI
2024-05-01 04:43 PM - edited 2024-05-01 05:03 PM
look for
fatfs_platform.h
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_hal.h"
/* Defines ------------------------------------------------------------------*/
#define SD_PRESENT ((uint8_t)0x01) /* also in bsp_driver_sd.h */
#define SD_NOT_PRESENT ((uint8_t)0x00) /* also in bsp_driver_sd.h */
#define SD_DETECT_PIN GPIO_PIN_5
#define SD_DETECT_GPIO_PORT GPIOD
/* Prototypes ---------------------------------------------------------------*/
uint8_t BSP_PlatformIsDetected(void);
2024-05-03 02:29 PM
Hi, NNapi
Thank you for quick response. I appreciate it very much.
However, my source code don't has fatfs_patform.h. I also search the source code and cannot find the definiton of SD_DETECT_PIN in my package. please advice.
Thanks in advance.
Victor
2024-05-04 02:20 PM
do search for PF3 , it is defined somewhere and change to PD5
2024-05-06 11:32 AM
I searched the whole project, but no PF3 string found.
Does anyone use Fx_File_Edit_Standalone example as baseline for file system? This works for another version of Eval board, but with NUCLEO-U575ZI board, I have to change SDIO DETECT to PD5 from PF3.
Thanks in advance.
2024-05-06 04:24 PM - edited 2024-05-06 04:24 PM
I have no clue what you are doing, did you generate the new code in CubeMX ?
did you check main.h file
#define SDCARD_DETECT_Pin GPIO_PIN_0
#define SDCARD_DETECT_GPIO_Port GPIOI