2015-12-21 06:04 PM
Dear all ST staff,
I found a small bug in latest CubeF7_V1.3.0/HALDriver_V1.0.3. Bug found at HAL_SD_GetCardStatus() onstm32f7xx_hal_sd.c
.
--- b/stm32f7xx_hal_sd.c
+++ a/stm32f7xx_hal_sd.c
@@ -2103,9 +2103,9 @@
{
HAL_SD_ErrorTypedef errorstate = SD_OK;
uint32_t tmp = 0;
- uint32_t sd_status[16];
+ uint8_t sd_status[64];
- errorstate = HAL_SD_SendSDStatus(hsd, sd_status);
+ errorstate = HAL_SD_SendSDStatus(hsd, (uint32_t*)sd_status);
if (errorstate != SD_OK)
{
''sd_status[]'' array should be parse by ''uint8_t'',but currently code parse as ''uint32_t''.
I noticed this bug when I implement read SDCard status register function in disk_ioctl().
Plz fix until next release.
Best regards,
Nemui.
Solved! Go to Solution.
2015-12-23 06:07 AM
Hi nemui.trinomius,
The issue is forwarded to our development team.Thank you for your feedback.-Shahrzad-2015-12-23 06:07 AM
Hi nemui.trinomius,
The issue is forwarded to our development team.Thank you for your feedback.-Shahrzad-