|
|
hai 1 ano | |
|---|---|---|
| .. | ||
| applications | %!s(int64=2) %!d(string=hai) anos | |
| board | %!s(int64=2) %!d(string=hai) anos | |
| figures | %!s(int64=2) %!d(string=hai) anos | |
| startup | %!s(int64=2) %!d(string=hai) anos | |
| .config | hai 1 ano | |
| Kconfig | %!s(int64=2) %!d(string=hai) anos | |
| README.md | %!s(int64=2) %!d(string=hai) anos | |
| README_zh.md | %!s(int64=2) %!d(string=hai) anos | |
| SConscript | %!s(int64=2) %!d(string=hai) anos | |
| SConstruct | %!s(int64=2) %!d(string=hai) anos | |
| rtconfig.h | hai 1 ano | |
| rtconfig.py | %!s(int64=2) %!d(string=hai) anos | |
中文页 |
This document provides brief introduction of the BSP (board support package) for the HPM6300EVK development board.
The document consists of the following parts:
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.
HPM6300EVK is a development board based on the RISC-V core launched by HPMicro, with rich on-board resources and on-chip resources for motor control, etc.

Each peripheral supporting condition for this BSP is as follows:
| On-board Peripherals | Support | Note |
|---|---|---|
| USB | √ | |
| QSPI Flash | √ | |
| Ethernet | √ | Supported by RT-Thread Industry IO |
| GPIO | √ | |
| SPI | √ | |
| I2C | √ | |
| SDIO | √ | |
| RTC | √ | |
| PWM | √ | |
| On-Board Debugger | √ | ft2232 |
The BSP support being build via the 'scons' command, below is the steps of compiling the example via the 'scons' command
C:\DevTools\riscv32-gnu-toolchainRTT_RISCV_TOOLCHAIN to <TOOLCHAIN_DIR>\bin
C:\DevTools\riscv32-gnu-toolchain\binC:\DevTools\openocd-hpmicroOpenOCD environment variable OPENOCD_HPMICRO to <OPENOCD_HPMICRO_DIR>\binC:\DevTools\openocd-hpmicro\binOpen RT-Thread ENV command-line, and change directory to this BSP directory, then users can:
menuconfig in RT-Thread ENVscons -jN, N equals to the number of CPU coresscons -cPWR_DEBUG port to PC via TYPE-C cableUsers can download the project via the below command:
%OPENOCD_HPMICRO%\openocd.exe -f boards\debug_scripts\probes\ft2232.cfg -f boards\debug_scripts\soc\hpm6360.cfg -f boards\debug_scripts\boards\hpm6300evk.cfg -c "init; halt; flash write_image erase rtthread.elf; reset; shutdown"
Users can debug the project via the below command:
Connect debugger via OpenOCD:
%OPENOCD_HPMICRO%\openocd.exe -f boards\debug_scripts\probes\ft2232.cfg -f boards\debug_scripts\soc\hpm6360.cfg -f boards\debug_scripts\boards\hpm6300evk.cfg
Start Debugger via GDB:
%RTT_EXEC_PATH%\riscv32-unknown-elf-gdb.exe rtthread.elf
In the gdb shell, type the following commands:
load
c
Once the project is successfully downloaded, the system runs automatically. The LED on the board will flash periodically.
Connect the serial port of the board to the PC, communicate with it via a serial terminal tool(115200-8-1-N). Reset the board and the startup information of RT-Thread will be observed:
\ | /
- RT - Thread Operating System
/ | \ 5.0.1 build Aug 16 2023 18:18:18
2006 - 2023 Copyright by RT-Thread team