mirror of
https://github.com/STMicroelectronics/STM32CubeF7.git
synced 2025-05-07 19:29:17 +08:00
121 lines
5.1 KiB
Plaintext
121 lines
5.1 KiB
Plaintext
/**
|
||
@page BSP Example on how to use the BSP drivers
|
||
|
||
@verbatim
|
||
******************************************************************************
|
||
* @file BSP/readme.txt
|
||
* @author MCD Application Team
|
||
* @brief Description of the BSP example.
|
||
******************************************************************************
|
||
*
|
||
* Copyright (c) 2016 STMicroelectronics. All rights reserved.
|
||
*
|
||
* This software component is licensed by ST under BSD 3-Clause license,
|
||
* the "License"; You may not use this file except in compliance with the
|
||
* License. You may obtain a copy of the License at:
|
||
* opensource.org/licenses/BSD-3-Clause
|
||
*
|
||
******************************************************************************
|
||
@endverbatim
|
||
|
||
@par Example Description
|
||
|
||
This example provides a description of how to use the different BSP drivers.
|
||
|
||
At the beginning of the main program the HAL_Init() function is called to reset
|
||
all the peripherals, initialize the Flash interface and the systick.
|
||
Then the SystemClock_Config() function is used to configure the system
|
||
clock (SYSCLK) to run at 200 MHz.
|
||
|
||
This example shows how to use the different functionalities of components
|
||
available on the board by switching between all tests using key button.
|
||
|
||
** Push the User button to start first Test.
|
||
Green Led (LD1) will blink between each test.Press user key to start another test:
|
||
|
||
** JOYSTICK **
|
||
Use the joystick button to move a pointer inside a rectangle
|
||
(up/down/right/left) and change the pointer color(select).
|
||
|
||
** Touchscreen **
|
||
Use touchscreen functionality to select or activate colored circle inside a rectangle.
|
||
A calibration is needed when using MB1046.
|
||
|
||
** LCD **
|
||
This example shows how to use the different LCD features to display string
|
||
with different fonts, to display different shapes and to draw a bitmap.
|
||
|
||
** SD **
|
||
This example shows how to erase, write and read the SD card and also
|
||
how to detect the presence of the card.
|
||
|
||
** EEPROM **
|
||
This example show how to read and write data in EEPROM I2C M24LR64 connected on STM327x6G-EVAL revB
|
||
* The I2C RF EEPROM memory (M24LR64) is available through the connector CN2
|
||
|
||
** NOR **
|
||
This example shows how to erase, write and read the NOR memory.
|
||
|
||
** SRAM **
|
||
This example shows how to erase, write and read the SRAM memory.
|
||
|
||
** SDRAM **
|
||
This example shows how to erase, write and read the SDRAM memory.
|
||
|
||
** LCD LOG **
|
||
This example show how to use the LCD log features.
|
||
|
||
@note The STM32F7xx devices can reach a maximum clock frequency of 216MHz but as this example 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
|
||
|
||
BSP, Board support package, DMA, Audio play, Headphone, Audio record, microphone, Touchscreen, Joystick,
|
||
LCD, SD Card, EEPROM, NOR, SRAM, SDRAM, LOG, QSPI
|
||
|
||
@Note<74>If the user code size exceeds the DTCM-RAM size or starts from internal cacheable memories (SRAM1 and SRAM2),that is shared between several processors,
|
||
<20><><EFBFBD><EFBFBD><EFBFBD>then it is highly recommended to enable the CPU cache and maintain its coherence at application level.
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>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
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> It is also possible to configure the MPU as "Write through", to guarantee the write access coherence.
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>In that case, the MPU must be configured as Cacheable/Bufferable/Not Shareable.
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Even though the user must manage the cache coherence for read accesses.
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Please refer to the AN4838 <20>Managing memory protection unit (MPU) in STM32 MCUs<55>
|
||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Please refer to the AN4839 <20>Level 1 cache on STM32F7 Series<65>
|
||
|
||
@par Directory contents
|
||
|
||
- BSP/Src/main.c Main program
|
||
- BSP/Src/system_stm32f7xx.c STM32F7xx system clock configuration file
|
||
- BSP/Src/stm32f7xx_it.c Interrupt handlers
|
||
- BSP/Src/joystick.c joystick feature
|
||
- BSP/Src/lcd.c LCD drawing features
|
||
- BSP/Src/log.c LCD Log firmware functions
|
||
- BSP/Src/sd.c SD features
|
||
- BSP/Src/eeprom.c EEPROM Read/Write features
|
||
- BSP/Inc/main.h Main program header file
|
||
- BSP/Inc/stm32f7xx_hal_conf.h HAL Configuration file
|
||
- BSP/Inc/stm32f7xx_it.h Interrupt handlers header file
|
||
- BSP/Inc/lcd_log_conf.h lcd_log configuration template file
|
||
- BSP/Inc/stlogo.h Image used for BSP example
|
||
|
||
@par Hardware and Software environment
|
||
|
||
- This example runs on STM32F756xx/STM32F746xx devices.
|
||
|
||
- This example has been tested with STMicroelectronics STM327x6G-EVAL revB
|
||
evaluation 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
|
||
- Run the example
|
||
|
||
* <h3><center>© COPYRIGHT STMicroelectronics</center></h3>
|
||
*/
|