Azure FileX sd driver issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-09 2:30 AM
Hello ST community,
I believe there is an issue with the code generated by CubeMX for the fx_stm32_sd_driver.
Config used :
- STM32CubeIDE : 1.10.1
- STM32U5 Cube Package : 1.1.1
- STM32CubeMX : 6.6.1
In CubeMX, when I set the "FX Driver Initializes the SD IP" flag to true, the generated code wont compile as the MX_SDMMC1_SD_Init is generated static in the main, so the code below in fx_stm32_sd_driver.c is irrelevant...
#if (FX_STM32_SD_INIT == 1)
extern void MX_SDMMC1_SD_Init(void);
#endif
One solution is to remove the static keyword but every time CubeMX generates code, it comes back and it's kind of unpractical.
Could you please fix that in a future package update ?
Thanks,
Clement
Solved! Go to Solution.
- Labels:
-
AzureRTOS
-
SDIO-SDMMC
-
STM32U5 series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-09 9:18 AM
Hi @CGuil.1
Cpuld you please under the "Project Manager" panel, navigate to "Advanced settings" and uncheck the "visibility static" Option for the MX_SDMMC1_SD_Init()
regards
Haithem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-09 9:18 AM
Hi @CGuil.1
Cpuld you please under the "Project Manager" panel, navigate to "Advanced settings" and uncheck the "visibility static" Option for the MX_SDMMC1_SD_Init()
regards
Haithem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-14 7:01 AM
Hello Haithem,
Thanks for the answer, that works perfectly !
Best regards,
Clement
