Thank you so much for the useful tutorial. Is there a same tutorial for activation of microphone for stm32f746 Discovery board? If not, I would appreciate if you provide it. Many thanks.
I Have a similar card: STM32L496G-DISCO and tried this tutorial. Pretty mutch everything is the same but there is some small differences. Under "Plattform settings" there is no uSD-Detect. This seems to be routed to a i2C chip. (Is this nessecary to have). The DMA settings is also a little bit different. Under SDMMC1 the DMA for TX and RX buffer is "Normal". The command f_mount and f_mkfs returns ok but the f_open, f_read etc gives an error in return. Any ideas on what to do? // GH
Try to work without DMA at all. Disable Use of DMA template from the FATFS options as well. Worked for me, except if you also need FREERTOS then DMA is a must!
Awesome video, well explained, great pace (not too fast),, clear and concise voice, very understandable for us novices :). Your code (a) just formatted the SD card and (b) wrote one line of data to it. How do you write many lines of data, say every 5-seconds from a temperature sensor without having to format the SD card every-time? Can you check for a file name in existence before have to format?
Hello there, glad it was helpful ! For technical questions we really recommend you check out our community of experts and other developers at community.st.com
Hello Mr. Fillon, I tried to transfer the example to the STM32H743 Nucleo Board. Unfortunately I don't succeed. When executing f_mkfs, the response FR_NOT_READY comes. Unfortunately, I haven't found a single tutorial on how to do this for this board. Can you perhaps make a tutorial for this board on how to configure the SDMMC mode correctly? Many greetings, Holger
@@BJH-fm1pf same issue, I tried also to port the SD examples for the stm32h735 (i'm using this one) but without success I tried also to opena post on the comunity forum but no success also there did you find a way to fix this ?
@@vidica94 Yes, I did find it. The logic on SD Card Detect signal was reversed. I modified the BSP_PlatformIsDetected() function and inserted status = !status; under USER CODE BEGIN 1.
Hi, that's great. The example works. How do I implement this with TouchGFX? I set everything the same and mount the SD card (f_mount), but the next command is no longer executed (f_mkfs) and the system stops working.
Newer CubeMX replaces FatFs with FileX. Formatting with FileX is not as straight-forward as it is with FatFs, you have to specify sector count and bytes-per-sector. To be able to do that, you have to query the SD card about its size
Great video. Nicely explained. What does one have to do to write data say every 5-seconds without formatting and recreating the file? i.e. append data...
Firstly, thank you guys very much for the really helpful tutorial. Secondly, for you guys, who don't success with this tutorial, try to use another micro sd card. For me, I used stm32f7508 discovery board, which is very similar to stm32f746, with micro sd card from Intenso it doesn't work at all but for no name micro sd card it works like a charm! Last but not least, could you guys please give more explainations for the configuration parameters because working is good but understanding is perfect. Lastly, sorry for my bad English :)
@@stmicroelectronics hello yes, i might check it out. I'm a visual learner so I like youtube videos so much. I watch these videos and take notes. Thanks for making these
I am having bad problems to write in micro SD card, i saw a lot of videos an anyone works, i did with arduino and working well. I am thinking that STM32 is a no good microcontroller, i am giving up of it because don´t have a good support. If anybody can help me. I have the code that i copy from controllerstech and not work, i used stm32f10c8t6 and a board that is sell for arduino to use SD CARS. In Arduino i wasted 1 minute to write in sd card an in STM32 i am wasting more than one week, very bad microcontroller
Hello, Sorry to hear about it ... Visit our online community to find answers to your technical questions and share ideas with your developers and ST experts : community.st.com
In case someone still having troubles with the H7. These steps worked out for me: -activate SDMMC in 4Bit wide bus -For MDMA Controller activate Chanel for sdmmc streams and make shure MDMA interrupt is active for sdmmc -integrate FatFs Library NOTE: Parameters in Unmount-Function for SDCard are in the wrong order. When working with FreeRtos and TouchGFX-> for Fatfs deactivate FS-Reeantrant and activate for FreeRTOS. Than before you are able to work with sd card-> disable D-Cache and enable when done
Hello! Thanks for your positive feedback. We've shared it with our colleague Nicolas. Regarding your question, the issue you are facing is normal because the L412 does not have SDMMC. You would have instead to consider one of the following parts: L431, L433, L443, L451, L452, L462, L471, L475, L476, L486, L496, , L4A6, L4P5, L4Q5, L4R5, L4S5, L4S7, L4S9.
Hi, thanks for your comment, our engineers do their very best to create this content and we do consider it to be important to have the people who know technically what they are talking about to do these videos. That said, we have received this type of comment in the past and we are trying to figure out ways to improve the situation.
@Adnan, there is nothing called Britain accent. ST has employees all over the world and one should therefore exercise patience and the minimum necessary skill to understand the possible different accents that those employees use
@@adnansayder2148 , since this is a pre-recorded presentation, my suggestion is to use the trick of slowing down the playback, this way you can follow along more efficiently. At least that is the trick I have learnt and used over the years anytime I need to follow a presentation in a language I am not very "comfortable" with. Please note I did not mean any disrespect. HTH
how to change file name for ex : DATA1.TXT , DATA2.TXT . NOT İN WHİLE LOOP ACTUALY İN MAİN LOOP I WANT RESET STM32 AND I CHACK FİLE NAME İF I HAVE SAME FİLE NAME I WANT NEW FİLE NAME CAN YOU HELP ME ?