| поискавой системы для электроныых деталей |
|
STM32F479 датащи(PDF) 81 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM32F479 датащи(HTML) 81 Page - STMicroelectronics |
|
81 / 91 page ![]() DocID029237 Rev 2 81/91 AN4861 LTDC application examples 89 6.2.6 FMC SDRAM configuration The external SDRAM must be configured as it contains the LTDC framebuffer. To configure the FMC_SDRAM and the SDRAM memory device mounted on the STM32746G-Discovery board, the user can use either STM32CubeMX or use the existing BSP driver. To configure the FMC_SDRAM using the BSP driver follow the steps described below: 1. Add the following files to the project: BSP stm32746g_discovery_sdram.c and stm32746g_discovery_sdram.h. Include the stm32f7xx_hal_sdram.h in the main.c file. Add the stm32f7xx_hal_sdram.c and stm32f7xx_ll_fmc.c HAL drivers to the project 2. Enable the SDRAM module in the stm32f7xx_hal_conf.h file by uncommenting the SDRAM module definition. Include the stm32f7xx_hal_sdram.h file in the main.c file. 3. Call the BSP_SDRAM_Init() function in the main() function. 6.2.7 MPU and cache configuration As illustrated in Section 4.6, the MPU attributes should be correctly configured in order to prevent graphical performance issues related to the Cortex®-M7 speculative read accesses and cache maintenance. This section describes an example of MPU attribute configuration with respect to the STM32F746G-DISCO board hardware configuration. The MPU memory attributes can be easily configured with STM32CubeMX. A code example of MPU configuration generated using STM32CubeMX is described at the end of this section. MPU configuration example: FMC_SDRAM In this configuration example, the double framebuffer technique is used; the frontbuffer is placed in the SDRAM bank1 while the backbuffer is placed in the SDRAM bank2 with respect to the SDRAM bandwidth optimization described in Section 4.5.3: Optimizing the LTDC framebuffer fetching from SDRAM. The following MPU regions are created (FMC without sawp): • Region0: defines the SDRAM memory size 8 MByte • Region1: defines the frontbuffer 256 Kbyte (16 bpp x 480 x 272), it overlaps region0 • Region2: defines the backbuffer 256 Kbyte (16 bpp x 480 x 272), it overlaps region0 Figure 52 illustrates the MPU configuration of the SDRAM region. |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |