2016-05-28 07:40 AM
2016-05-28 08:34 AM
It is impossible for me to answer any topic of this forum... :(
''Sign into forum'' on upper right hand side, and then reply to posts.2016-05-28 01:27 PM
Hi clive1,
thanks for that hint. A few minutes ago I got an ''unhandled error'' when I try to log in. After a few tries it work for me... To my µSD problem. Do I have to add // SD init HAL_SD_ErrorTypedef resSd = HAL_SD_Init(&hsd1, &SDCardInfo1); resSd = HAL_SD_WideBusOperation_Config(&hsd1, SDMMC_BUS_WIDE_4B); because I can't find any of these function calls in the created initialization code. Both of the commands returning error 3 back -> Timeout... The SD clock is internal set to 48 MHz and the prescaler for SD is set to 18 => (48 MHz)/(18 + 2) => 2.4 MHz I think this is a good frequency to test a debugging system. I do not know why this is a big problem. The other code is working really good, so the last thing is the µSD card.2016-06-03 12:18 AM
Hi debegr,
Wonder if you successfully solve the issue?I have ran into the same situation where f_mount returns FR_INVALID_DRIVE.I am using STM32F7 chip with SW4STM32.2016-06-04 01:43 AM
hi tan.she_yung,
oh glad, I am not the only one. Well, I think since the last few bugs in CubeMX it is not impossible, that there is an error in the generated code. There is still the error with the F7 microcontrollers, that the SCMMC clock can't be enabled in CubeMX. My currently generated code is based on the CubeMX 4.9.0 and I do not know what the problem is. Where do you put your test code? In the fatfs.c or in the main.c? There are a few sheets and papers from ST and also from Elm Chan how to test and work with the FatFS but with exactly this code I am not able to write or read files from my SD card. Hope we can together get this working! Would be very helpful. Please stay in contact! You can also write me private.2016-06-05 08:25 AM
Hi,
do you try this https://my.st.com/c964d235 ? Petr