49 lines
1.2 KiB
Markdown
49 lines
1.2 KiB
Markdown
|
|
# hwd32h757 开发环境配置
|
|||
|
|
|
|||
|
|
## 芯片信息
|
|||
|
|
|
|||
|
|
| 项目 | 值 |
|
|||
|
|
|------|-----|
|
|||
|
|
| 芯片代号 | hwd32h757 |
|
|||
|
|
| 内核 | Cortex-M7 |
|
|||
|
|
| 参考架构 | STM32H7系列 |
|
|||
|
|
| SDK框架 | HAL/LL双层(参考STM32CubeH7) |
|
|||
|
|
|
|||
|
|
## 前置依赖
|
|||
|
|
|
|||
|
|
| 工具 | 版本要求 | 说明 |
|
|||
|
|
|------|---------|------|
|
|||
|
|
| GCC ARM | >= 13.x | 交叉编译器 |
|
|||
|
|
| CMake | >= 3.20 | 构建系统 |
|
|||
|
|
| Python | >= 3.10 | 工具脚本(SVD解析、测试报告) |
|
|||
|
|
| OpenOCD / J-Link | — | 烧录调试 |
|
|||
|
|
| Git | >= 2.40 | 版本控制 |
|
|||
|
|
|
|||
|
|
## 开发工具
|
|||
|
|
|
|||
|
|
- **IDE**: VS Code + Cortex-Debug + CMake Tools
|
|||
|
|
- **AI协作**: 1人 + Arch AI + Worker AI
|
|||
|
|
- **上下文同步**: AGENTS.md + dashboard.md(任何AI读到即可接手)
|
|||
|
|
|
|||
|
|
## 硬件环境
|
|||
|
|
|
|||
|
|
- **评估板**: HWD32H757-EVAL
|
|||
|
|
- **调试器**: J-Link / ST-Link(SWD接口)
|
|||
|
|
- **串口**: USB-UART(调试输出)
|
|||
|
|
|
|||
|
|
## 快速开始
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
# 1. 克隆项目
|
|||
|
|
git clone https://gitcode.com/tupingr/ai_soc_sw.git
|
|||
|
|
cd ai_soc_sw
|
|||
|
|
|
|||
|
|
# 2. 构建
|
|||
|
|
mkdir build && cd build
|
|||
|
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/arm-gcc-toolchain.cmake
|
|||
|
|
make
|
|||
|
|
|
|||
|
|
# 3. 烧录
|
|||
|
|
openocd -f interface/jlink.cfg -f target/hwd32h757.cfg -c "program build/Test/cases/gpio/gpio_test.elf verify reset exit"
|
|||
|
|
```
|