rt-thread/bsp/stm32/stm32f091-st-nucleo
Meco Man eda1ef3b7c [stm32] add nano attach config for CI 2023-12-25 08:20:58 +08:00
..
.ci/attachconfig [stm32] add nano attach config for CI 2023-12-25 08:20:58 +08:00
applications [bsp][stm32][nano] support nano version 2023-12-03 21:25:00 +08:00
board [bsp][stm32][nano] support nano version 2023-12-03 21:25:00 +08:00
figures [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00
.config [project] update mdk/iar project and config. 2023-10-08 11:21:00 +08:00
.gitignore [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00
Kconfig [bsp][stm32] add board identification macros 2023-12-24 17:01:41 +08:00
README.md update documentation (#5674) 2022-03-14 21:18:14 +08:00
README_zh.md Update BSP README with EN Version. 2020-09-09 18:22:26 +08:00
SConscript [bsp/stm32]change str(Dir('#')) to GetCurrentDir() 2019-02-14 15:55:51 +08:00
SConstruct [bsp]stm32工程生成路径在源码目录 2023-07-03 15:20:57 +08:00
project.ewd [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00
project.ewp [project] update mdk/iar project and config. 2023-10-08 11:21:00 +08:00
project.eww [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00
project.uvopt [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00
project.uvoptx 更新 stm32 工程,nxp 工程 2020-12-28 15:02:17 +08:00
project.uvprojx [project] update mdk/iar project and config. 2023-10-08 11:21:00 +08:00
rtconfig.h [project] update mdk/iar project and config. 2023-10-08 11:21:00 +08:00
rtconfig.py [scons][iar] 将IAR的PLATFORM字段由iar调整为iccarm 2022-06-09 07:01:59 +08:00
template.ewd [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00
template.ewp [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00
template.eww [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00
template.uvgui.zylx [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00
template.uvoptx [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00
template.uvprojx [bsp][stm32] rename stm32/stm32f091-nucleo to stm32/stm32f091-st-nucleo 2019-01-03 09:14:01 +08:00

README.md

STM32F091-Nucleo BSP Introduction

中文页 |

Introduction

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

The document is covered in three parts:

  • STM32F091RC-Nucleo 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.

STM32F091RC-Nucleo Resources Introduction

The STM32F091RC-Nucleo is a development board that contains a ARM Cortex-M0. The maximum main frequency is 48 MHz, and it has a wealth of on-board resources that can take full advantage of the STM32F091's chip performance.

board

The mainly-used resources of this board are shown as follows:

  • MCU: STM32F091, Main Frequency 48MHz, 256KB FLASH, 32KB RAM
  • External RAM: None
  • External FLASH: None
  • Common peripherals -Button: one, user (has the wake-up feature, PC13)
  • Common-used interfaces: USB, Arduino interface, etc.
  • Debug interface: Standard SWD interface.

For more details about this board, please refer to ST official.

Peripheral Condition

Each peripheral supporting condition for this BSP is as follows:

On-board Peripherals Support Remark
ST-LINK Virtual Serial Port Support Using USART2
On-chip Peripherals Support Remark
GPIO Support PA0, PA1... PC15 ---> PIN: 0, 1...64
UART Support USART1/2
SPI Support SPI1
I2C Support
TIMER Support
ADC Support
RTC Support Support for external crystal oscillator and internal low-speed clocks
PWM Support
FLASH Support
IWGSupport

Quickly Get Started

This BSP provides MDK4, MDK5, and IAR projects for developers and it supports the GCC development environment. Here's an example of the MDK5 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.uvprojx file, to open the MDK5 project, compile and download the project to the board.

By default, the executable file will be downloaded to the board by the simulator, which is connected to PC via the USB cable.

Running Results

Once the project is successfully downloaded, the system runs automatically.

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

 \ | /
- RT -     Thread Operating System
 / | \     4.0.0 build Dec 21 2018
 2006 - 2018 Copyright by rt-thread team
msh >

Advanced Features

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

  1. Open the env tool under BSP;
  2. Enter menuconfig command to configure the project, then save and exit;
  3. Enter pkgs --update command to update the package;
  4. Enter scons --target=mdk4/mdk5/iar command to regenerate the project.

Learn how to use RT-Thread Env, click Here.