Go to file
james 55f1858411 更新 Day1/note.md 2024-09-16 15:48:54 +08:00
.ci/attachconfig init 2024-07-22 20:00:29 +08:00
Day1 更新 Day1/note.md 2024-09-16 15:48:54 +08:00
Day2 day3按键灭灯 2024-07-25 00:37:35 +08:00
Day3 day3 ipc md 2024-07-31 15:00:10 +08:00
Day4 day4 驱动 2024-07-31 17:30:28 +08:00
Day5 取消sd card +吐槽 2024-08-01 00:57:44 +08:00
applications 云端给开发板发送指令然后实现小灯翻转 2024-07-31 00:35:11 +08:00
board 创建目录,挂载块设备"font"到 DFS 目录/fal/test中,尝试写文件(未成功) 2024-07-31 01:29:16 +08:00
dayandnight 取消sd card +吐槽 2024-08-01 00:57:44 +08:00
figures init 2024-07-22 20:00:29 +08:00
libraries 温湿度上传 2024-07-29 11:17:10 +08:00
rt-thread init 2024-07-22 20:00:29 +08:00
.config 取消sd card +吐槽 2024-08-01 00:57:44 +08:00
.gitignore init 2024-07-22 20:00:29 +08:00
Kconfig init 2024-07-22 20:00:29 +08:00
README.md init 2024-07-22 20:00:29 +08:00
README_EN.md init 2024-07-22 20:00:29 +08:00
SConscript init 2024-07-22 20:00:29 +08:00
SConstruct init 2024-07-22 20:00:29 +08:00
project.ewd init 2024-07-22 20:00:29 +08:00
project.ewp init 2024-07-22 20:00:29 +08:00
project.eww init 2024-07-22 20:00:29 +08:00
project.uvoptx init 2024-07-22 20:00:29 +08:00
project.uvprojx init 2024-07-22 20:00:29 +08:00
rtconfig.h 取消sd card +吐槽 2024-08-01 00:57:44 +08:00
rtconfig.py init 2024-07-22 20:00:29 +08:00
template.ewp init 2024-07-22 20:00:29 +08:00
template.eww init 2024-07-22 20:00:29 +08:00
template.uvoptx init 2024-07-22 20:00:29 +08:00
template.uvprojx init 2024-07-22 20:00:29 +08:00
vscode.code-workspace day3按键灭灯 2024-07-25 00:37:35 +08:00

README_EN.md

STM32F407 RT-Thread Spark Board BSP Introduction

Overview

This document is a description of the BSP (Board Support Package) provided by the RT-Thread development team for the STM32F407 RT-Thread Spark Board.

The main contents are as follows:

  • Introduction of Development Board Resources
  • BSP Quick Start
  • Advanced Usage

By reading Quick Start Section, developers can quickly get started with the BSP and run RT-Thread on the board. In the Advanced Usage Section, more advanced features will be introduced to help developers utilize RT-Thread to drive more on-board resources.

Spark-1 Introduction

The STM32F407 is a development board based on the ARM Cortex-M4 core from RT-THREAD, with a maximum main frequency of 168Mhz. The board has a wealth of on-board resources, which can fully utilize the performance of the STM32F407 chip.

The appearance of the board is shown in the figure below:

board

The development board commonly used on-board resources as follows:

  • MCU: STM32F407ZGT6, 168MHz, 1024KB FLASH, 192KB RAM.
  • External FLASH: W25Q128 (SPI, 16MB)
  • Common Peripherals
    • LEDs: 2, LED_R (red, PF12), LED_B (green, PF11)
    • Keys, 4, KEY_UP (both wake-up function, PIN: PC5), KEY_DOWN (PIN: PC1), KEY_LEFT (PIN: PC0), KEY_RIGHT (PIN: PC4)
  • Common interfaces: USB to serial port, SD card interface, USB SLAVE, USB HOST
  • Debugging interface, standard ST-LINK

For more details about the board, please refer to the official document Introduction to STM32 Spark-1 Development Board.

Peripheral Support

The BSP currently supports the following peripherals:

Onboard peripherals Support note
USB to Serial(COM1) Support
COM2 Support Conflicts with Ethernet and PWM. Use CubeMX to reconfigure the UART2 pin if you want to use this peripheral.
COM3 Support
On-chip peripherals Supoort Note
UART Support UART1/2/3
SPI Support SPI1/2/3
ADC Support
RTC Support Support external crystal and internal low-speed clock
WDT Support

Instructions for Use

The instructions for use are divided into two sections as follows:

  • Quick Start

    This section is intended for newcomers to RT-Thread. Follow the simple steps to get the RT-Thread operating system running on the board and see the results.

  • Advanced Usage

    This section is for developers who want to use more of the board's resources with the RT-Thread operating system. By using the ENV tool to configure the BSP, you can enable more on-board resources and realize more advanced functions.

Quick Start

This BSP provides developers with MDK5 and IAR projects and supports GCC development environment. The following is an example of how to get the system up and running using the MDK5 development environment.

Hardware Connection

Connect the board to the PC with a cable and turn on the power switch.

Compile and Download

Double click the project.uvprojx file to open the MDK5 project, compile and download the program to the development board.

The default configuration of the project is to use JLink to download the program. On the basis of connecting the development board via JLink, click the Download button to download the program to the development board.

Running Result

After successfully downloading the program, the system will run automatically. Observe the running effect of the LED on the development board, where the red LED is always on, the green LED will blink periodically.

Connect the corresponding serial port of the development board to PC, open the corresponding serial port (115200-8-1-N) in the terminal tool, and reset the device, you can see the output information of RT-Thread.


 \ | /
- RT -     Thread Operating System
 / | \     5.0.1 build Jul  4 2023 07:49:10
 2006 - 2022 Copyright by RT-Thread team
msh >

Advanced Usage

This BSP only enables GPIO and Serial1 by default. If you want to use more advanced functions such as SD card, Flash, etc., you need to configure the BSP by using ENV utility, the steps are as below:

  1. Open the env utility under bsp.

  2. Input menuconfig command to configure the project, save and exit after configuration.

  3. Enter the pkgs --update command to update the package.

  4. Enter the scons --target=mdk5/iar command to regenerate the project.

For a more detailed description of this chapter, please refer to [STM32 Series BSP Peripheral Driver Tutorial](... /docs/STM32 Series BSP Peripheral Driver Tutorial.md).

Notes

Not available at this time

Connection

Maintainer: