Skip to content

Commit

Permalink
RT-Thread BSP v1.2.0 for HPM6750EVK2
Browse files Browse the repository at this point in the history
- Integrated hpm_sdk v1.2.0
- Migrated to RT-Thread v5.0.1
- Adapted RT-Thread v5.0.x driver framework
- Optimized the performance for littleVGL demo
- Added `flash_release` and `ram_release` for most projects
- Added UART RXFIFO timeout interrupt support
- Added README for each project

Signed-off-by: Fan YANG <[email protected]>
  • Loading branch information
helloeagleyang committed Aug 12, 2023
1 parent 8190495 commit 10ba918
Show file tree
Hide file tree
Showing 2,952 changed files with 563,854 additions and 698,723 deletions.
14 changes: 14 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Change Log

## v1.2.0
- Integrated hpm_sdk v1.2.0
- Note:
- the docs, middleware, scripts, samples folder in SDK root directory were removed
- Updated:
- Upgraded rt-thread to v5.0.1
- Optimized the performance of LVGL demo
- Added README.md for all samples
- Added UART RXFIFO timeout interrupt support
- Added `flash_release` build and `ram_release` build
- Fixed:
- SD card performance is slow
- Uart lost data when working in low baudrate

## v1.1.0

- Updated:
Expand Down
14 changes: 14 additions & 0 deletions ChangeLog_zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# 更新

## v1.2.0
- 整合了hpm_sdk v1.2.0
- 注:
- SDK根目录下的docs,middleware,samples, scripts等目录被移除
- 更新:
- 迁移到rt-thread v5.0.1
- 优化了lvgl demo的性能
- 增加了sample README
- 增加了 `flash_release``ram_release` 工程
- 增加了 UART RXFIFO timeout 中断支持
- 修复:
- sd card 性能慢
- uart 在低波特率下丢数据

## v1.1.0

- 更新:
Expand Down
59 changes: 40 additions & 19 deletions HPMicro-HPM6750EVK2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,21 @@ features:
- 'Buttons: 3, RESET, WBUTN, PBUTN'
- 'Debug Interface: 10-PIN JTAG interface'
- 'On-board double Ethernets: 100M, 1000M'
- 'On-board Beeper'
features_zh:
- 'MCU: HPM6750, 主频 816MHz, 2MBytes SRAM'
- 'RGB LED灯'
- '按键: 3, RESET, WBUTN, PBUTN'
- '板载 16MB QSPI NOR 闪存,板载 32MB 32-bit SDRAM'
- '调试接口: 10-PIN JTAG接口'
- '板载双路以太网: 百兆、千兆'
- '板载蜂鸣器'
pkg_type: Board_Support_Packages
pkg_vendor: HPMicro
pkg_version: 1.1.0
pkg_version: 1.2.0

template_projects:
- project_name: blink_led
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/blink_led
target_path_offset: ''
Expand All @@ -74,6 +72,7 @@ template_projects:
- makefile.targets
- .settings
- .config
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand All @@ -99,11 +98,18 @@ template_projects:
source_path_offset: ''
target_path_offset: ''
files_and_folders: []
- package_name: J-Link
package_type: Debugger_Support_Packages
package_vendor: 'SEGGER'
package_version: v7.92
source_path_offset: ''
target_path_offset: ''
files_and_folders: []

example_projects:
- project_name: blink_led
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/blink_led
target_path_offset: ''
Expand All @@ -119,6 +125,7 @@ example_projects:
- makefile.targets
- .settings
- .config
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -147,7 +154,7 @@ example_projects:

- project_name: lv_demo_widgets
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/lv_demo_widgets
target_path_offset: ''
Expand All @@ -164,6 +171,7 @@ example_projects:
- .settings
- .config
- packages
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -192,7 +200,7 @@ example_projects:

- project_name: sdcard_demo
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/sdcard_demo
target_path_offset: ''
Expand All @@ -208,6 +216,7 @@ example_projects:
- makefile.targets
- .settings
- .config
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -236,7 +245,7 @@ example_projects:

- project_name: timer_demo
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/timer_demo
target_path_offset: ''
Expand All @@ -252,6 +261,7 @@ example_projects:
- makefile.targets
- .settings
- .config
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -280,7 +290,7 @@ example_projects:

- project_name: usb_device_generic_hid
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/usb_device_generic_hid
target_path_offset: ''
Expand All @@ -297,6 +307,7 @@ example_projects:
- .settings
- .config
- packages
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -325,7 +336,7 @@ example_projects:

- project_name: flashdb_demo
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/flashdb_demo
target_path_offset: ''
Expand All @@ -342,6 +353,7 @@ example_projects:
- makefile.targets
- .settings
- .config
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -371,7 +383,7 @@ example_projects:

- project_name: uart_dma_demo
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/uart_dma_demo
target_path_offset: ''
Expand All @@ -387,6 +399,7 @@ example_projects:
- makefile.targets
- .settings
- .config
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -415,7 +428,7 @@ example_projects:

- project_name: can_example
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/can_example
target_path_offset: ''
Expand All @@ -431,6 +444,7 @@ example_projects:
- makefile.targets
- .settings
- .config
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -459,7 +473,7 @@ example_projects:

- project_name: ethernet_demo
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/ethernet_demo
target_path_offset: ''
Expand All @@ -475,6 +489,7 @@ example_projects:
- makefile.targets
- .settings
- .config
- README.md
- packages
- source_path_offset: 'common'
target_path_offset: ''
Expand Down Expand Up @@ -504,7 +519,7 @@ example_projects:

- project_name: ethernet_ptp_master_demo
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/ethernet_ptp_master_demo
target_path_offset: ''
Expand All @@ -521,6 +536,7 @@ example_projects:
- .settings
- .config
- packages
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -549,7 +565,7 @@ example_projects:

- project_name: ethernet_ptp_slave_demo
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/ethernet_ptp_slave_demo
target_path_offset: ''
Expand All @@ -566,6 +582,7 @@ example_projects:
- .settings
- .config
- packages
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -594,7 +611,7 @@ example_projects:

- project_name: i2c_demo
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/i2c_demo
target_path_offset: ''
Expand All @@ -610,6 +627,7 @@ example_projects:
- makefile.targets
- .settings
- .config
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -638,7 +656,7 @@ example_projects:

- project_name: usb_host_msc_udisk
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/usb_host_msc_udisk
target_path_offset: ''
Expand All @@ -655,6 +673,7 @@ example_projects:
- .settings
- .config
- packages
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -683,7 +702,7 @@ example_projects:

- project_name: audio_i2s_demo
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/audio_i2s_demo
target_path_offset: ''
Expand All @@ -699,6 +718,7 @@ example_projects:
- makefile.targets
- .settings
- .config
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down Expand Up @@ -727,7 +747,7 @@ example_projects:

- project_name: audio_pdm_dao_demo
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@4.1.0
project_type: rt-thread|@full|@5.0.1
builtin_files:
- source_path_offset: projects/audio_pdm_dao_demo
target_path_offset: ''
Expand All @@ -743,6 +763,7 @@ example_projects:
- makefile.targets
- .settings
- .config
- README.md
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ RT-Thread Studio BSP for HPM6750EVK Board
- usb_host_msc_udisk
- audio_i2s_demo
- audio_pdm_dao_demo

## Environment Setup

### Toolchain setup

- After installing the BSP package, users need to set the `RTT_RISCV_TOOLCHAIN` environment variable before creating any examples/projects
- Assuming that the toolchain is installed in `C:\DevTools\RT-ThreadStudio\repo\Extract\ToolChain_Support_Packages\RISC-V\RISC-V-GCC-RV32\2022-04-12\bin`, User can set the `RTT_RISCV_TOOLCHAIN` environment variable referring below figure:

![Set RTT_RISCV_TOOLCHAIN environment variable](documents/images/set_rtt_riscv_toolchain_env.png)
8 changes: 8 additions & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ HPM6750EVK 开板的 RT-Thread Studio 板级支持包
- usb_host_msc_udisk
- audio_i2s_demo
- audio_pdm_dao_demo


## 环境设置

## 工具链环境设置
- 安装好BSP包后, 用户在创建示例/工程前需要 设置 `RTT_RISCV_TOOLCHAIN` 环境变量。
- 假定RISC-V工具链安装于目录: `C:\DevTools\RT-ThreadStudio\repo\Extract\ToolChain_Support_Packages\RISC-V\RISC-V-GCC-RV32\2022-04-12\bin`, 用户可参考下图,配置`RTT_RISCV_TOOLCHAIN`环境变量
![设置 RTT_RISCV_TOOLCHAIN 环境变量](documents/images/set_rtt_riscv_toolchain_env.png)
Loading

0 comments on commit 10ba918

Please sign in to comment.