rt-thread-official/bsp/stm32/stm32f103-100ask-pro
CXSforHPU bb91502465
[drivers] Specifies the name of the drivers driver file
https://github.com/RT-Thread/rt-thread/pull/9420
2024-09-13 17:40:40 -04:00
..
.ci/attachconfig [ci][bsp] add strict mode 2024-01-10 18:08:09 +08:00
applications [bsp][stm32][nano] support nano version 2023-12-03 21:25:00 +08:00
board [drivers] Specifies the name of the drivers driver file 2024-09-13 17:40:40 -04:00
figures [bsp][stm32][drv_adc.c]: change the bsp name of 100ask to be consistent with other bsp and commit a bug for drv_adc,c (#6068) 2022-06-14 14:17:22 +08:00
.config [bsp][stm32]fix stm32f103 default console uart name 2024-04-11 18:49:10 -04:00
Kconfig bsp中option env语句替换为新语句,并同步更新了source "$xxx"语句 2024-06-20 14:40:42 +08:00
README.md [BSP][stm32f103-100ask-pro]add ext_sram driver to stm32f103-100ask-pro 2024-05-29 20:19:46 +08:00
SConscript [bsp][stm32][drv_adc.c]: change the bsp name of 100ask to be consistent with other bsp and commit a bug for drv_adc,c (#6068) 2022-06-14 14:17:22 +08:00
SConstruct [bsp]stm32工程生成路径在源码目录 2023-07-03 15:20:57 +08:00
project.ewp [bsp] update projects 2024-03-21 11:23:29 +08:00
project.eww [bsp][stm32][drv_adc.c]: change the bsp name of 100ask to be consistent with other bsp and commit a bug for drv_adc,c (#6068) 2022-06-14 14:17:22 +08:00
project.uvoptx [bsp][stm32][drv_adc.c]: change the bsp name of 100ask to be consistent with other bsp and commit a bug for drv_adc,c (#6068) 2022-06-14 14:17:22 +08:00
project.uvprojx [bsp] update projects 2024-03-21 11:23:29 +08:00
rtconfig.h [bsp][stm32]fix stm32f103 default console uart name 2024-04-11 18:49:10 -04:00
rtconfig.py [iar] PLATFOMR更正为'iccarm' 2022-09-29 20:58:34 -04:00
template.ewp [bsp][stm32][drv_adc.c]: change the bsp name of 100ask to be consistent with other bsp and commit a bug for drv_adc,c (#6068) 2022-06-14 14:17:22 +08:00
template.eww [bsp][stm32][drv_adc.c]: change the bsp name of 100ask to be consistent with other bsp and commit a bug for drv_adc,c (#6068) 2022-06-14 14:17:22 +08:00
template.uvoptx [bsp][stm32][drv_adc.c]: change the bsp name of 100ask to be consistent with other bsp and commit a bug for drv_adc,c (#6068) 2022-06-14 14:17:22 +08:00
template.uvprojx [bsp][stm32][drv_adc.c]: change the bsp name of 100ask to be consistent with other bsp and commit a bug for drv_adc,c (#6068) 2022-06-14 14:17:22 +08:00

README.md

百问网STM32F103 PRO开发板BSP说明

简介

本文档是为百问网STM32F103 Pro开发板提供的BSP(板级支持包)说明。

主要内容如下:

  • 开发板资源介绍

  • BSP快速上手

  • 进阶使用方法

通过阅读快速上手章节开发者可以快速的上手该BSP将RT-Thread运行在开发板上。在进阶使用指南章节将会介绍更多高级功能帮助开发者利用RT-Thread驱动更多板载资源。

开发板介绍

STM32F103 Pro开发板是百问网推出的一块基于ARM Cortex-M3内核的开发板最高主频为72MHz该开发板具有丰富的板载资源可以充分地发挥STM32F103ZET6这块处理器的性能。

开发板外观如下图所示:

board

该开发板常用板载资源如下:

  • MCU: STM32F103ZET6主频72MHz512KB FLASH64KB RAM
  • 外部RAM : IS62WV51216BLLSRAM1MB
  • 外部FLASH: W25Q64SPI8MB
  • 常用外设:
    • 按键4个KEY1兼具唤醒功能PA0KEY2PG15KEY3PC13KEY4PE3
    • LED1个RGB灯红灯PB0绿灯PB1蓝灯PB5
  • 常用接口USB转串口
  • 调试接口SWD

开发板更多详细信息请参考百问网100AK STM32F103 PRO开发板介绍

外设支持

本BSP目前对外设的支持情况如下

板载外设 支持情况 备注
USB转串口 支持 UART1
RGB LED 支持 红灯PB0, TIM3 CH3绿灯PB1, TIM3 CH4蓝灯PB5, TIM3 CH2
电位器 支持 ADC1/2/3 CH10
SPI FLASH 支持 W25Q64
EEPROM 支持 软件i2c1
SRAM 支持 IS62WV51216BLL
片上外设 支持情况 备注
GPIO 支持 PA0, PA1... PK15 ---> PIN: 0, 1...176
UART 支持 UART1/2/3
SPI 支持 SPI1/2
ADC 支持 ADC1/2/3
TIM 支持 TIM2/3/4
PWM 支持 TIM3 CH2/3/4
CAN 支持 CAN1

使用说明

使用说明分为如下两个章节:

  • 快速上手

    本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。

  • 进阶使用

    本章节是为需要在 RT-Thread 操作系统上使用更多开发板资源的开发者准备的。通过使用 ENV 工具对 BSP 进行配置,可以开启更多板载资源,实现更多高级功能。

快速上手

本 BSP 为开发者提供 MDK5 和 IAR 工程,并且支持 GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。

硬件连接

使用ST-Link调试下载器连接开发板的SWD接口使用数据线连接开发板的调试串口再将ST-Link和数据线的另一端连接到PC打开电源开关。

编译下载

双击 project.uvprojx 文件,打开 MDK5 工程,编译并下载程序到开发板。

工程默认配置使用 ST-Link 下载程序,在通过 ST-Link 连接开发板的基础上,点击下载按钮即可下载程序到开发板

运行结果

下载程序成功之后,系统会自动运行,观察开发板上 LED 的运行效果,其中一个 LED 会周期性闪烁。

连接开发板对应串口到 PC , 在终端工具里打开相应的串口115200-8-1-N复位设备后可以看到 RT-Thread 的输出信息:

 \ | /
- RT -     Thread Operating System
 / | \     4.1.1 build May 30 2022 17:15:31
 2006 - 2022 Copyright by RT-Thread team
msh />

进阶使用

此 BSP 默认只开启了 GPIO 和 串口1 的功能,如果需使用 ADC、Flash 等更多高级功能,需要利用 ENV 工具对BSP 进行配置,步骤如下:

  1. 在 bsp 下打开 env 工具。

  2. 输入menuconfig命令配置工程,配置好之后保存退出。

  3. 输入pkgs --update命令更新软件包。

  4. 输入scons --target=mdk5/iar 命令重新生成工程。

本章节更多详细的介绍请参考 STM32 系列 BSP 外设驱动使用教程

注意事项

暂无

联系人信息

维护人: