positioner_testing_project/development_environment.md

70 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 开发环境说明
## 1. 硬件平台
- 主控芯片STM32F407xx系列ARM Cortex-M4F内核
- 外设芯片:
- ADCAD7124-8高精度模拟量输入
- DACDAC161S997高精度模拟量输出
- 以太网LAN8742网络通信
- LCD串口显示屏
- 编码器接口
## 2. 开发工具
### 主要IDE
- Keil MDK-ARM (MDK-ARM目录存在)
- 项目文件semi-finished_product_testing.uvprojx
- 编译配置semi-finished_product_testing.uvoptx
- Visual Studio Code (存在.vscode配置目录)
- 用于代码编辑和查看
### 编译工具
- ARMCC编译器 (ARM编译工具链)
- 启动文件startup_stm32f407xx.s
## 3. 软件框架
### 操作系统
- FreeRTOS实时操作系统
- 版本位于Middlewares/Third_Party/FreeRTOS/Source/
- 配置文件FreeRTOSConfig.h
### 驱动库
- STM32 HAL库 (Hardware Abstraction Layer)
- 位置Drivers/STM32F4xx_HAL_Driver/
- 包含各种外设驱动
### 网络协议栈
- LwIP (Lightweight IP)
- 位置Middlewares/Third_Party/LwIP/
- 支持TCP/IP协议
- MQTT支持
### BSP支持
- LAN8742网络驱动
- 位置Drivers/BSP/Components/lan8742/
## 4. 项目结构
```
项目主要目录:
├── Core/ # 核心应用代码
├── Drivers/ # 驱动程序
├── LWIP/ # 网络协议栈
├── MDK-ARM/ # Keil工程文件
└── Middlewares/ # 中间件(FreeRTOS/LwIP)
```
## 5. 开发规范
- 基于HAL库的驱动开发
- FreeRTOS多任务架构
- 模块化的设计结构
- 标准C语言开发规范
## 6. 调试方式
- ST-Link/J-Link调试器支持
- 串口调试
- 以太网远程调试
## 7. 项目文档
位于Documents/目录:
- 数据手册 (datasheet/)
- 项目文档 (project documents/)
- 原理图 (schematic diagram/)