Files
rt-thread/bsp/at32/at32f413-start
Bernard Xiong 743b614875 [components][clock_time] Refactor time subsystem around clock_time (#11111)
* [components][clock_time] Refactor time subsystem around clock_time

Introduce the clock_time core with clock source/event separation, high-resolution scheduling, and boot-time helpers, plus clock_timer adapters for timer peripherals.

Remove legacy ktime/cputime/hwtimer implementations and migrate arch and BSP time paths to the new subsystem while keeping POSIX time integration functional.

Update drivers, Kconfig/SConscript wiring, documentation, and tests; add clock_time overview docs and align naming to clock_boottime/clock_hrtimer/clock_timer.

* [components][clock_time] Use BSP-provided clock timer frequency on riscv64

* [risc-v] Use runtime clock timer frequency for tick and delays

* [bsp] Add clock timer frequency hooks for riscv64 boards

* [bsp] Update Renesas RA driver doc clock_timer link

* [bsp] Sync zynqmp-r5-axu4ev rtconfig after config refresh

* [bsp][rk3500] Update rk3500 clock configuration

* [bsp][hpmicro] Add rt_hw_us_delay hook and update board delays

* [bsp][stm32l496-st-nucleo] enable clock_time for hwtimer sample in ci

* [bsp][hpmicro] Fix rtconfig include scope for hpm6750evk

Move rtconfig.h include outside the ENET_MULTIPLE_PORT guard for hpm6750evk and hpm6750evk2 so configuration macros are available regardless of ENET settings.

* [bsp][raspi3] select clock time for systimer

* [bsp][hpm5300evk] Trim trailing blank line

* [bsp][hpm5301evklite] Trim trailing blank line

* [bsp][hpm5e00evk] Trim trailing blank line

* [bsp][hpm6200evk] Trim trailing blank line

* [bsp][hpm6300evk] Trim trailing blank line

* [bsp][hpm6750evk] Trim trailing blank line

* [bsp][hpm6750evk2] Trim trailing blank line

* [bsp][hpm6750evkmini] Trim trailing blank line

* [bsp][hpm6800evk] Trim trailing blank line

* [bsp][hpm6e00evk] Trim trailing blank line

* [bsp][nxp] switch lpc178x to gcc and remove mcx timer source

* [bsp][stm32] fix the CONFIG_RT_USING_CLOCK_TIME issue.

* [docs][clock_time] add clock time documentation

* [docs][clock_time] Update clock time subsystem documentation

- Update device driver index to use correct page reference
- Clarify upper layer responsibilities in architecture overview
- Update README to describe POSIX/libc, Soft RTC, and device driver usage
- Refine architecture diagram with improved layout and color scheme
- Remove obsolete clock_timer.md file

* [kernel][utest] Trim trailing space

* [clock_time] Fix hrtimer wrap handling

* [clock_time] fix the static rt_inline issue

* [clock_time] fix the rt_clock_hrtimer_control result issue
2026-01-31 17:44:27 +08:00
..

AT32F413 AT-START 开发板 BSP 说明

简介

AT32F413 AT-START是雅特力推出的一款AT32F413系列的评估板其搭载的MCU主要资源参数如下

硬件 描述
芯片型号 AT32F413RCT7
CPU ARM Cortex M4
主频 200M
片内SRAM 32K可扩展64K
片内FLASH 256K

编译说明

AT32F413-START板级包支持MDK4﹑MDK5﹑IAR开发环境和GCC编译器以下是具体版本信息

IDE/编译器 已测试版本
MDK4 MDK4.74
MDK5 MDK531
IAR IAR8.20
GCC GCC 5.4.1 20160919 (release)

板载资源

  • MCUAT32F413RCT7主频 200MHz256KB FLASH 32KB可扩展到64KB RAM
  • 常用外设
    • LED3个红色PC2、白色PC3、绿色PC5
    • 按键1个KEY_USER兼具唤醒功能PA0)
  • 常用接口插针串口J8
  • 调试接口JLINK、板载的 AT-LINK SWD 下载

外设支持

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

驱动 支持情况 备注
UART 支持 USART1/2/3
GPIO 支持 PA0...PF5
IIC 支持 GPIO模拟I2C
HWIIC 支持 I2C1/2
SPI 支持 SPI1/2
ADC 支持 ADC1/2
PWM 支持 TMR1/2
CLOCK_TIMER 支持 TMR3/4/5
SDIO 支持 SDIO1
CAN 支持 CAN1/2
WDT 支持
RTC 支持
FLASH 支持
USB 支持

IO在板级支持包中的映射情况

IO号 板级包中的定义
PC2 LED2
PC3 LED3
PC5 LED4
PA9 USART1_TX
PA10 USART1_RX
PA2 USART2_TX
PA3 USART2_RX
PB10 USART3_TX
PB11 USART3_RX
PA4 SPI1_NSS
PA5 SPI1_SCK
PA6 SPI1_MISO
PA7 SPI1_MOSI
PB12 SPI2_NSS
PB13 SPI2_SCK
PB14 SPI2_MISO
PB15 SPI2_MOSI
PB6 I2C1_SCL
PB7 I2C1_SDA
PC8 SDIO1_D0
PC9 SDIO1_D1
PC10 SDIO1_D2
PC11 SDIO1_D3
PC12 SDIO1_CK
PD2 SDIO1_CMD
PA8 PWM_TMR1_CH1
PA11 PWM_TMR1_CH4
PA0 PWM_TMR2_CH1
PA1 PWM_TMR2_CH2
PC0 ADC1/2_IN10
PC1 ADC1/2_IN11
PC2 ADC1/2_IN12
PC3 ADC1/2_IN13
PC4 ADC1/2_IN14
PC5 ADC1/2_IN15
PB8 CAN1_RX
PB9 CAN1_TX
PB5 CAN2_RX
PB6 CAN2_TX
PA11 USB_DM
PA12 USB_DP

使用说明

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

快速上手

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

硬件连接

使用数据线连接开发板到 PC打开电源开关。

编译下载

首先需抓取 HAL-SDK并生成对应工程步骤如下

  1. 在 bsp 下打开 env 工具。

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

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

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

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

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

运行结果

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

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

 \ | /
- RT -     Thread Operating System
 / | \     4.1.0 build May 10 2022
 2006 - 2022 Copyright by RT-Thread team
msh />

注意事项

可在雅特力官方网站进行所需资料下载如Keil_v5/Keil_v4/IAR等pack安装包和AT-START开发板原理图等www.arterytek.com

联系人信息

维护人:

  • [sheltonyu]