rt-thread/bsp/stm32/stm32mp157a-st-discovery
thread-liu 219012d75e [update] stm32mp1 wifi sdio. 2021-04-08 15:17:53 +08:00
..
.settings [update] stm32mp157a-dk1 bsp 2020-09-04 10:24:58 +08:00
applications remove return 2021-03-28 22:42:37 +08:00
board [update] stm32mp1 wifi sdio. 2021-04-08 15:17:53 +08:00
figures [add] stm32mp1 bsp 2020-06-20 14:12:43 +08:00
tools [add] openamp for stm32mp157-dk1 2020-09-23 13:42:28 +08:00
.config [update] stm32mp1 .config file, enable CONFIG_RT_LIBC_USING_TIME default. 2021-03-22 14:12:34 +08:00
.cproject [add] openamp for stm32mp157-dk1 2020-09-23 13:42:28 +08:00
.gitignore [add] stm32mp1 bsp 2020-06-20 14:12:43 +08:00
.project [update] stm32mp157a-dk1 bsp 2020-09-04 10:24:58 +08:00
EventRecorderStub.scvd [update] stm32mp157a-dk1 bsp 2020-09-04 10:24:58 +08:00
Kconfig [add] stm32mp1 bsp 2020-06-20 14:12:43 +08:00
README.md update 2021-01-08 11:20:46 +08:00
README_zh.md [update] add english README.md 2020-07-23 10:26:52 +08:00
SConscript [add] stm32mp1 bsp 2020-06-20 14:12:43 +08:00
SConstruct [add] stm32mp1 bsp 2020-06-20 14:12:43 +08:00
project.ewd [add] stm32mp1 bsp 2020-06-20 14:12:43 +08:00
project.ewp [update] sdio wifi. 2021-03-01 15:57:10 +08:00
project.eww [add] stm32mp1 bsp 2020-06-20 14:12:43 +08:00
project.uvopt [update] stm32mp157a-dk1 bsp 2020-09-04 10:24:58 +08:00
project.uvoptx 更新 stm32 工程,nxp 工程 2020-12-28 15:02:17 +08:00
project.uvprojx 更新 stm32 工程,nxp 工程 2020-12-28 15:02:17 +08:00
rtconfig.h [add] openamp for stm32mp157-dk1 2020-09-23 13:42:28 +08:00
rtconfig.py [update] stm32mp1 link 2020-06-20 16:39:32 +08:00
template.ewp [add] openamp for stm32mp157-dk1 2020-09-23 13:42:28 +08:00
template.eww [add] stm32mp1 bsp 2020-06-20 14:12:43 +08:00
template.uvopt [update] stm32mp157a-dk1 bsp 2020-09-04 10:24:58 +08:00
template.uvoptx [update] stm32mp1 mdk link script file. 2020-12-17 10:27:51 +08:00
template.uvprojx [update] stm32mp1 mdk link script file. 2020-12-17 10:27:51 +08:00

README.md

STM32MP157A-DK1 BSP Introduction

中文页 |

Introduction

This document records the execution instruction of the BSP (board support package) provided by the RT-Thread development team for the STM32MP157A-DK1 development board.

The document is covered in three parts:

  • STM32MP157A-DK1 Board Resources Introduction

  • Quickly Get Started

  • Advanced Features

By reading the Quickly Get Started section developers can quickly get their hands on this BSP and run RT-Thread on the board. More advanced features will be introduced in the Advanced Features section to help developers take advantage of RT-Thread to drive more on-board resources.

STM32MP157A-DK1 Board Resources Introduction

The STM32MP157A-DK1 is a development board based on a dual Cortex-A7 and Cortex-M4 core. The Cortex-A7 core operates at 800 MHZ and the Cortex-M4 operates at 209MHZ. There is no Flash inside the STM32MP157A.

board

The mainly-used on-board resources are shown as follows:

  • MCU : STM32MP157AACx
  • Common peripherals:
    • 4 LEDs: LD4(PA14), LD6(PA13), LD7(PH7), LD8(PD11)
    • 4 Buttons: WAKE_UP, RESET (NRST), USER1(PA14), USER2 (PA13)
  • Common-used interface: USB, SD card, Ethernet, MIPI, USB HOST, Audio, HDMI, Arduino.
  • Debug interface: Standard JTAG/SWD.

For more details about this board, please refer to the ST official documentation: STM32MP157A-DK1 Development board introduction

Peripheral Condition

Each peripheral supporting condition for this BSP is as follows:

On-board Peripheral Support Remark
USB TO UART YES
PWR YES
RCC YES
SD Card (SDMMC) NO
ETH NO
AUDIO NO
On-chip Peripheral Drivers Support Remark
GPIO YES GPIOA-GPIOK, GPIOZ
UART YES UART4 (ST-Link)
EXTI YES
SPI YES
TIM YES
LPTIM YES
I2C YES Software
ADC YES
DAC YES
WWDG YES

Execution Instruction

Quickly Get Started

This BSP provides IAR projects for developers. Here's an example of the IAR development environment, to introduce how to run the system.

Hardware Connection

Use a USB cable to connect the development board to the PC and turn on the power switch.

Compile And Download

Double-click the project.eww file, to open the IAR project, compile and download the program to the board.

By default, the project uses ST_LINK simulator to download the program, when the ST_LINK connects the board, clicking the download button can download the program to the board.

Running Results

After the program is successfully downloaded, the system runs automatically. Observe the running results of the LED on the development board, the blue LD8 will flash periodically.

Connect the serial port of the board to PC, communicate with it via a serial terminal tool (115200-8-1-N). Restart the board and the startup information of RT-Thread will be observed:

 \ | /
- RT -     Thread Operating System
 / | \     3.1.1 build Nov 19 2018
 2006 - 2018 Copyright by rt-thread team
msh >

Advanced Features

This BSP only enables GPIO and serial port 4 by default. If need more advanced features, you need to configure the BSP with RT-Thread Env tools, as follows:

  • Open the Env tool under this BSP;
  • Enter the menuconfig command to configure the project, then save and exit;
  • Enter the pkgs --update command to update the packages;
  • Enter the scons --target=iar command to regenerate the project.

Notes

  • Before downloading the program, set the board to the mode of "Engineering Mode". The BOOT switch sets to BOOT0=0 and BOOT2=1, as shown below:

    boot

  • If need to reburn the program, please reset the development board.

Contact Information

accendant: