 Hello, and welcome to this presentation. My name is Badr Dean, and in this video, we'll learn how to cache the bitmaps stored in an SD card. In this first part, we'll see how to set up the SDMMC peripheral and add FrataFS file system to the SDM32F746 TADGFX template. I will start by TADGFX designer, which is a GUI builder that lets you easily build the visual appearance of your graphics application. Here, I have to select application name and use SDM32F746 SD cache bitmaps. On the application template, I'll click Change and select SDM32F746 discovery kit template. Here, we see we have two different versions, one that does support SDM32 Cubemax project and one that does not. I'll select the one that supports SDM32 Cubemax to easily add SDMMC configuration. I click Select, and then in the UI template, I click Change, and I will select any application template from here. For example, today, I will use the Animation Texture Mapper and then click Select. Then, I'll click Create, and now TADGFX will download the template from the server. Now, I have the application template available on my desk. I'll click Generate Code, and then click on Browse to the TADGFX files. Click here, and then here, I have my TADGFX files. I go up by one level here, and I find my SDM32 Cubemax file, this IUC file. I'll double-click on it. Here, I have my SDM32 Cubemax open. Now, we need to enable the peripheral that's connected to the SD card. If we look at the user manual of the SDM32F746 discovery board, we see that SD or microSD connector is connected to SDMMC1 peripheral. And if we look at the schematic, we see that the 4-bit or 4 pins are connected to the SD card. So I go back to SDM32 Cubemax, go Connectivity, select SDMMC1, and then select SD4BitsYBush. Then we'll enable the SDMMC1 global interrupt, and then we go to DMA Settings, and we enable the DMA channels for TX and RX. This helps to offload this CPU. OK, then if I go back to the schematic of the SDM32F746, we see here that the microSD uses a GPIO for detect signal. And this pin has to be set up as input with pull up. So this microSD detect pin is connected to PC13, as we can see here. So microSD detect is connected to PC13. I go back to SDM32 Cubemax project, and we select PC13, and we set it up to GPIO input. We still need to enable the pull up, the internal pull up for PC13. We go to System Core, GPIO. We go to PC13, and here in GPIO pull up pull down configuration, we select pull up. OK, now we are done with SDMMC configuration. We go to Clock Configuration tab, and we see here that the clock is above what the spec says. If I check the data sheet of the SDM32F746, we see here that the clock frequency for the SDMMC peripheral has to be lower than 50 MHz. So we see here that the SDMMC clock is 200. So I'll select the PLL48 clock, and then here I'll divide this clock by 8. And here we have the SDMMC clock set up to 50 MHz. Next, we want to use a file system to allow us to do file operations, such as open a file, read a file, or write a file. So we'll go to Middleware and FatFS. So here we'll use FatFS on SD card. And then for the detect signal, we use PC13. And now I'll save my SDM32Q MX project and click on Generate Code. So the code is successfully generated. I'll click Open Project. Thank you for joining me in this video. And we hope that you enjoyed learning how to set up the SDMMC peripheral and add FatFS file system to the SDM32F746.gfx template. And the second part of this video, we see how to set up the bitmap cache and how to cache the bitmaps stored in an SD card.