Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .github/ALL_BSP_COMPILE.json
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@
"hpmicro/hpm6800evk",
"hpmicro/hpm6e00evk",
"hpmicro/hpm6p00evk",
"hpmicro/hpm5e00evk"
"hpmicro/hpm5e00evk",
"hpmicro/hpm5100evk"
]
},
{
Expand Down
14 changes: 14 additions & 0 deletions .github/membrowse-targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,20 @@
"bsp/hpmicro/tools"
]
},
{
"target_name": "hpmicro-hpm5100evk",
"toolchain": "riscv32-unknown-elf-multilib",
"bsp_path": "bsp/hpmicro/hpm5100evk",
"elf": "bsp/hpmicro/hpm5100evk/rtthread.elf",
"ld": "bsp/hpmicro/hpm5100evk/board/linker_scripts/gcc/flash_rtt.ld",
"map_file": "",
"linker_vars": "",
"watch_paths": [
"bsp/hpmicro/hpm5100evk",
"bsp/hpmicro/libraries",
"bsp/hpmicro/tools"
]
},
{
"target_name": "xuantie-e901plus",
"toolchain": "xuantie-elf-newlib",
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/manual_trigger_scons_except_STM32_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ jobs:
- {RTT_BSP_NAME: "hc32l196", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "hc32l196"}
- {RTT_BSP_NAME: "hifive1", RTT_TOOL_CHAIN: "sourcery-riscv-none-embed", RTT_BSP: "hifive1"}
#- {RTT_BSP_NAME: "hk32_hk32f030c8-mini", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "hk32/hk32f030c8-mini"} #scons dist有问题
- {RTT_BSP_NAME: "hpmicro_hpm6750evk", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "hpmicro/hpm6750evk"}
- {RTT_BSP_NAME: "hpmicro_hpm6750evkmini", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "hpmicro/hpm6750evkmini"}
- {RTT_BSP_NAME: "hpmicro_hpm5100evk", RTT_TOOL_CHAIN: "RISC-V-GCC-RV32", RTT_BSP: "hpmicro/hpm5100evk"}
- {RTT_BSP_NAME: "hpmicro_hpm6750evk", RTT_TOOL_CHAIN: "RISC-V-GCC-RV32", RTT_BSP: "hpmicro/hpm6750evk"}
- {RTT_BSP_NAME: "hpmicro_hpm6750evkmini", RTT_TOOL_CHAIN: "RISC-V-GCC-RV32", RTT_BSP: "hpmicro/hpm6750evkmini"}
- {RTT_BSP_NAME: "ht32f12366", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "ht32/ht32f12366"}
- {RTT_BSP_NAME: "ht32f52352", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "ht32/ht32f52352"}
#- {RTT_BSP_NAME: "imx_imx6ull-smart", RTT_TOOL_CHAIN: "sourcery-arm", RTT_BSP: "imx/imx6ull-smart"} # toolchain还没支持
Expand Down Expand Up @@ -294,7 +295,7 @@ jobs:
steps:
- uses: actions/checkout@main
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@main
with:
python-version: 3.8

Expand All @@ -305,9 +306,11 @@ jobs:
wget https://raw.githubusercontent.com/RT-Thread/env/master/install_ubuntu.sh
chmod 777 install_ubuntu.sh
./install_ubuntu.sh
pip install -r tools/requirements.txt
git config --global http.postBuffer 524288000
echo "RTT_ROOT=${{ github.workspace }}" >> $GITHUB_ENV
echo "RTT_CC=gcc" >> $GITHUB_ENV
echo "export PATH=~/.env/tools/scripts:$PATH" > ~/.env/env.sh

- name: Install Arm ToolChains
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && success() }}
Expand Down Expand Up @@ -344,6 +347,14 @@ jobs:
/opt/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin/riscv64-unknown-elf-gcc --version
echo "RTT_EXEC_PATH=/opt/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin" >> $GITHUB_ENV

- name: Install riscv32-unknown-elf ToolChains
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'RISC-V-GCC-RV32' && success() }}
run: |
wget -q https://github.com/hpmicro/riscv-gnu-toolchain/releases/download/2022.05.15/riscv32-unknown-elf-newlib-multilib_2022.05.15_linux.tar.gz
sudo tar zxf riscv32-unknown-elf-newlib-multilib_2022.05.15_linux.tar.gz -C /opt
/opt/riscv32-unknown-elf-newlib-multilib/bin/riscv32-unknown-elf-gcc --version
echo "RTT_EXEC_PATH=/opt/riscv32-unknown-elf-newlib-multilib/bin/" >> $GITHUB_ENV

- name: Install Riscv-none-embed ToolChains
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-riscv-none-embed' && success() }}
run: |
Expand Down Expand Up @@ -373,7 +384,7 @@ jobs:
RTT_BSP: ${{ matrix.legs.RTT_BSP }}
RTT_TOOL_CHAIN: ${{ matrix.legs.RTT_TOOL_CHAIN }}
run: |
# source ~/.env/env.sh
source ~/.env/env.sh
echo $RTT_BSP
ls bsp/$RTT_BSP/Kconfig && scons -C bsp/$RTT_BSP --pyconfig-silent
sed -i "s/# ${{ github.event.inputs.bsp_config }} is not set/${{ github.event.inputs.bsp_config }}=y/g" bsp/$RTT_BSP/.config
Expand All @@ -386,7 +397,7 @@ jobs:
cp bsp/$RTT_BSP/dist/project.zip ${{ github.workspace }}/$RTT_BSP/
ls bsp/$RTT_BSP/dist
pwd
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@main
if: ${{ github.event.inputs.dist_flag }}
env:
RTT_BSP: ${{ matrix.legs.RTT_BSP }}
Expand Down
1 change: 1 addition & 0 deletions bsp/.clang-format-ignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
rtconfig.h
rtconfig_preinc.h
1 change: 1 addition & 0 deletions bsp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ This document is based on the RT-Thread mainline repository and categorizes the
| [hpm6800evk](hpmicro/hpm6800evk) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | - | ✅ | ✅ | ✅ | - | ✅ | ✅ | ✅ |
| [hpm6e00evk](hpmicro/hpm6e00evk) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | - | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| [hpm6p00evk](hpmicro/hpm6p00evk) | ✅ | ✅ | ✅ | ✅ | ✅ | - | - | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| [hpm5100evk](hpmicro/hpm5100evk) | ✅ | ✅ | ✅ | ✅ | - | - | - | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |

#### 🟢 K230 (RT-Smart)

Expand Down
3 changes: 2 additions & 1 deletion bsp/hpmicro/.clang-format-ignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# clang-format ignore file
/**/startup/
/libraries/hpm_sdk/
/**/board/
/libraries/
2 changes: 2 additions & 0 deletions bsp/hpmicro/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# HPMicro SDK is fetched as an RT-Thread package into the shared libraries dir
/libraries/hpm_sdk-*/
36 changes: 36 additions & 0 deletions bsp/hpmicro/.ignore_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Exclude the files that are kept in sync with the upstream HPMicro sources
# (the all-in-one tree / hpm_sdk) from the changed-file checks, as already done
# for clang-format in .clang-format-ignore.
#
# tools/ci/cpp_check.py runs cppcheck with a minimal configuration (only
# '-I include -I thread/components/finsh'), so it cannot resolve the hpm_sdk
# macros used in these files (e.g. ATTR_PLACE_AT) and it reports the linker
# script symbol arithmetic in c_startup() as 'subtractPointers'; both are
# false positives for code that is not ours to restructure.

dir_path:
- hpm5100evk/board
- hpm5100evk/startup
- hpm5300evk/board
- hpm5300evk/startup
- hpm5301evklite/board
- hpm5301evklite/startup
- hpm5e00evk/board
- hpm5e00evk/startup
- hpm6200evk/board
- hpm6200evk/startup
- hpm6300evk/board
- hpm6300evk/startup
- hpm6750evk/board
- hpm6750evk/startup
- hpm6750evk2/board
- hpm6750evk2/startup
- hpm6750evkmini/board
- hpm6750evkmini/startup
- hpm6800evk/board
- hpm6800evk/startup
- hpm6e00evk/board
- hpm6e00evk/startup
- hpm6p00evk/board
- hpm6p00evk/startup
- libraries
4 changes: 3 additions & 1 deletion bsp/hpmicro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Below is a comprehensive list of HPMicro BSPs currently supported:
| hpm6800evk | HPM6800EVK | HPM6800 | Development board for HPM6800 series |
| hpm6e00evk | HPM6E00EVK | HPM6E00 | Development board for HPM6E00 series |
| hpm6p00evk | HPM6P00EVK | HPM6P00 | Development board for HPM6P00 series |
| hpm5100evk | HPM5100EVK | HPM5100 | Development board for HPM5100 series |

## Quick Start Guide

Expand Down Expand Up @@ -120,7 +121,7 @@ Additional peripherals may be supported depending on the specific board:
- HPM6E00EVK
- HPM6P00EVK
- HPM5E00EVK
- **CAN**: Available on HPM6750 series Development Boards, HPM5300EVK, HPM6800EVK, HPM6E00EVK, HPM6P00EVK and HPM5E00EVK
- **CAN**: Available on HPM6750 series Development Boards, HPM5300EVK, HPM6800EVK, HPM6E00EVK, HPM6P00EVK, HPM5E00EVK and HPM5100EVK
- **SDIO**: Available on HPM6300EVK, HPM6750EVKMINI, HPM6750EVK, HPM6750EVK2 and HPM6800EVK
- **Display/Audio**: Available on HPM6750EVK, HPM6800EVK, HPM6E00EVK,HPM6P00EVK

Expand Down Expand Up @@ -153,6 +154,7 @@ Please refer to the individual BSP directories for detailed documentation:
- `hpm6800evk/README.md`
- `hpm6e00evk/README.md`
- `hpm6p00evk/README.md`
- `hpm5100evk/README.md`

## Troubleshooting

Expand Down
4 changes: 3 additions & 1 deletion bsp/hpmicro/README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
| hpm6800evk | HPM6800EVK | HPM6800 | HPM6800 系列开发板 |
| hpm6e00evk | HPM6E00EVK | HPM6E00 | HPM6E00 系列开发板 |
| hpm6p00evk | HPM6P00EVK | HPM6P00 | HPM6P00 系列开发板 |
| hpm5100evk | HPM5100EVK | HPM5100 | HPM5100 系列开发板 |

## 快速开始指南

Expand Down Expand Up @@ -120,7 +121,7 @@ msh >
- HPM6E00EVK
- HPM6P00EVK
- HPM5E00EVK
- **CAN**:HPM5300EVK、HPM6750系列开发板,HPM6300EVK,HPM6800EVK, HPM6E00EVK, HPM6P00EVK 和HPM5E00EVK
- **CAN**:HPM5300EVK、HPM6750系列开发板,HPM6300EVK,HPM6800EVK, HPM6E00EVK, HPM6P00EVK、HPM5E00EVK 和HPM5100EVK
- **SDIO**:HPM6300EVK、HPM6750EVK 系列可用
- **显示/音频**:HPM6750EVK 系列可用

Expand Down Expand Up @@ -152,6 +153,7 @@ msh >
- `hpm6800evk/README.md`
- `hpm6e00evk/README.md`
- `hpm6p00evk/README.md`
- `hpm5100evk/README.md`

## 故障排除

Expand Down
Loading
Loading