QSPI

所属分类:其他
开发工具:C/C++
文件大小:549KB
下载次数:3
上传日期:2018-09-04 17:54:51
上 传 者lssee
说明:  stm32 qpsi source example

文件列表:
QSPI (0, 2018-05-14)
QSPI\QSPI_perfs (0, 2018-05-14)
QSPI\QSPI_perfs\EWARM (0, 2018-05-14)
QSPI\QSPI_perfs\EWARM\Project.ewd (44807, 2018-05-14)
QSPI\QSPI_perfs\EWARM\Project.ewp (41053, 2018-05-14)
QSPI\QSPI_perfs\EWARM\Project.eww (504, 2018-05-14)
QSPI\QSPI_perfs\EWARM\startup_stm32f746xx.s (29123, 2018-05-14)
QSPI\QSPI_perfs\EWARM\stm32f746xx_QSPI_flash.icf (2454, 2018-05-14)
QSPI\QSPI_perfs\Inc (0, 2018-05-14)
QSPI\QSPI_perfs\Inc\icon_M.h (266648, 2018-05-14)
QSPI\QSPI_perfs\Inc\icon_S.h (194161, 2018-05-14)
QSPI\QSPI_perfs\Inc\icon_T.h (182155, 2018-05-14)
QSPI\QSPI_perfs\Inc\img1.h (1696576, 2018-05-14)
QSPI\QSPI_perfs\Inc\img2.h (1681067, 2018-05-14)
QSPI\QSPI_perfs\Inc\img3.h (1641164, 2018-05-14)
QSPI\QSPI_perfs\Inc\img4.h (1692191, 2018-05-14)
QSPI\QSPI_perfs\Inc\img5.h (1696287, 2018-05-14)
QSPI\QSPI_perfs\Inc\img6.h (1691499, 2018-05-14)
QSPI\QSPI_perfs\Inc\lcd_log_conf.h (5236, 2018-05-14)
QSPI\QSPI_perfs\Inc\main.h (3723, 2018-05-14)
QSPI\QSPI_perfs\Inc\stm32f7xx_hal_conf.h (16485, 2018-05-14)
QSPI\QSPI_perfs\Inc\stm32f7xx_it.h (3074, 2018-05-14)
QSPI\QSPI_perfs\MDK-ARM (0, 2018-05-14)
QSPI\QSPI_perfs\MDK-ARM\Project.uvoptx (24822, 2018-05-14)
QSPI\QSPI_perfs\MDK-ARM\Project.uvprojx (25313, 2018-05-14)
QSPI\QSPI_perfs\MDK-ARM\startup_stm32f746xx.s (32639, 2018-05-14)
QSPI\QSPI_perfs\MDK-ARM\STM32746G-DISCOVERY (0, 2018-05-14)
QSPI\QSPI_perfs\MDK-ARM\STM32746G-DISCOVERY\STM32746G-DISCOVERY.sct (570, 2018-05-14)
QSPI\QSPI_perfs\Src (0, 2018-05-14)
QSPI\QSPI_perfs\Src\main.c (20395, 2018-05-14)
QSPI\QSPI_perfs\Src\main_images.c (250, 2018-05-14)
QSPI\QSPI_perfs\Src\stm32f7xx_hal_msp.c (4456, 2018-05-14)
QSPI\QSPI_perfs\Src\stm32f7xx_it.c (6064, 2018-05-14)
QSPI\QSPI_perfs\Src\system_stm32f7xx.c (15126, 2018-05-14)
QSPI\QSPI_perfs\SW4STM32 (0, 2018-05-14)
QSPI\QSPI_perfs\SW4STM32\startup_stm32f746xx.s (27566, 2018-05-14)
QSPI\QSPI_perfs\SW4STM32\STM32746G-DISCOVERY (0, 2018-05-14)
QSPI\QSPI_perfs\SW4STM32\STM32746G-DISCOVERY\.cproject (12156, 2018-05-14)
QSPI\QSPI_perfs\SW4STM32\STM32746G-DISCOVERY\.project (7945, 2018-05-14)
... ...

/** @page QSPI_perfs Displays pictures from QSPI flash memory and data transfer performance @verbatim ****************************************************************************** * @file QSPI/QSPI_perfs/readme.txt * @author MCD Application Team * @brief Description of the QSPI performance measurement application. ****************************************************************************** * * Copyright (c) 2016 STMicroelectronics International N.V. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted, provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of STMicroelectronics nor the names of other * contributors to this software may be used to endorse or promote products * derived from this software without specific written permission. * 4. This software, including modifications and/or derivative works of this * software, must execute solely and exclusively on microcontroller or * microprocessor devices manufactured by or for STMicroelectronics. * 5. Redistribution and use of this software other than as permitted under * this license is void and will automatically terminate your rights under * this license. * * THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY * RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT * SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************** @endverbatim @par Application Description This application describes how to display pictures stored on QSPI flash memory on LCD and measures data transfer performance between QSPI flash and SDRAM memory. The application uses DMA2D to render several animated layers on LCD. All pictures and icons are stored in QSPI flash memory. The DMA2D is used to transfer pictures from QSPI flash memory to SDRAM memory. During this transfer, the transfer time is measured, then the transfer speed is calculated and displayed on LCD. The application needs pictures flashed in QSPI flash memory to work, if using EWARM toolchain, the internal flash and QSPI flash programming is done by tool, but if using MDK-ARM or SW4STM32 toolchains, these tools can't flash QSPI flash. So, in this case ST-link utility has to be used to flash these memories (see details below). @note the system clock (SYSCLK) is configured to run at 200 MHz. 50 MHz are provided at the output PLL divided by PLL_Q. This frequency permits to reach the 25 MHz clock frequency needed for SD operation and in line with microSD specification. @note Care must be taken when using HAL_Delay(), this function provides accurate delay (in milliseconds) based on variable incremented in SysTick ISR. This implies that if HAL_Delay() is called from a peripheral ISR process, then the SysTick interrupt must have higher priority (numerically lower) than the peripheral interrupt. Otherwise the caller ISR process will be blocked. To change the SysTick interrupt priority you have to use HAL_NVIC_SetPriority() function. @note The application needs to ensure that the SysTick time base is always set to 1 millisecond to have correct HAL operation. @note The STM32F7xx devices can reach a maximum clock frequency of 216MHz but as this application uses SDRAM, the system clock is limited to 200MHz. Indeed proper functioning of the SDRAM is only guaranteed at a maximum system clock frequency of 200MHz. @par Keywords Memory, QSPI, Performance, LCD, Pictures, Data transfer, SDRAM, @NoteIf the user code size exceeds the DTCM-RAM size or starts from internal cacheable memories (SRAM1 and SRAM2),that is shared between several processors, then it is highly recommended to enable the CPU cache and maintain its coherence at application level. In case of constraints it is possible to configure the MPU as "Write through/not shareable" to guarantee the cache coherence at write access but the user has to ensure the cache maintenance at read access though. The address and the size of cacheable buffers (shared between CPU and other masters) must be properly updated to be aligned to cache line size (32 bytes). @Note It is recommended to enable the cache and maintain its coherence, but depending on the use case It is also possible to configure the MPU as "Write through", to guarantee the write access coherence. In that case, the MPU must be configured as Cacheable/Bufferable/Not Shareable. Even though the user must manage the cache coherence for read accesses. Please refer to the AN4838 “Managing memory protection unit (MPU) in STM32 MCUs” Please refer to the AN4839 “Level 1 cache on STM32F7 Series” @par Directory contents - QSPI/QSPI_perfs/Inc/main.h Main configuration file - QSPI/QSPI_perfs/Inc/stm32f7xx_it.h Interrupt handlers header file - QSPI/QSPI_perfs/Inc/stm32f7xx_hal_conf.h HAL Configuration file - QSPI/QSPI_perfs/Inc/icon_S.h Icon bitmap definition in ARGB4444 format - QSPI/QSPI_perfs/Inc/icon_T.h Icon bitmap definition in ARGB4444 format - QSPI/QSPI_perfs/Inc/icon_M.h Icon bitmap definition in ARGB4444 format - QSPI/QSPI_perfs/Inc/img1.h Picture bitmap definition in RGB565 format - QSPI/QSPI_perfs/Inc/img2.h Picture bitmap definition in RGB565 format - QSPI/QSPI_perfs/Inc/img3.h Picture bitmap definition in RGB565 format - QSPI/QSPI_perfs/Inc/img4.h Picture bitmap definition in RGB565 format - QSPI/QSPI_perfs/Inc/img5.h Picture bitmap definition in RGB565 format - QSPI/QSPI_perfs/Inc/img6.h Picture bitmap definition in RGB565 format - QSPI/QSPI_perfs/Src/main.c Main program - QSPI/QSPI_perfs/Src/main_images.c pictures inclusion - QSPI/QSPI_perfs/Src/stm32f7xx_it.c Interrupt handlers - QSPI/QSPI_perfs/Src/system_stm32f7xx.c STM32F7xx system clock configuration file @par Hardware and Software environment - This application runs on STM32F7xx devices. - This application has been tested with STMicroelectronics STM32746G-DISCOVERY boards and can be easily tailored to any other supported device and development board. @par How to use it ? In order to make the program work, you must do the following : - Open your preferred toolchain - Rebuild all files and load your image into target memory - if MDK-ARM or SW4STM32 toolchain used : - Open STM32 ST-Link Utility V3.7, click on "External Loader" from the bar menu then check "N25Q128A_STM32F746G-DISCO" box - Connect the STM32746G-DISCOVERY board to PC with USB cable through CN14 - Use generated hex file with STM32 ST-Link Utility to program both internal Flash and external QSPI memory - Run the application @note The application needs pictures flashed in QSPI flash memory to work, if using EWARM or MDK-ARM toolchain, the internal flash and QSPI flash programming is done by tool, but when referring to SW4STM32 toolchain, ST-link utility has to be used to flash these memories. *

© COPYRIGHT STMicroelectronics

*/

近期下载者

相关文件


收藏者