1.添加bsp说明。

This commit is contained in:
MacRsh
2024-01-13 03:13:25 +08:00
parent f68d2d0ab0
commit 4f8e8af8f8
2 changed files with 9 additions and 7 deletions

View File

@@ -154,7 +154,7 @@ int main(void)
## 验证Python环境
验证系统是否安装Python环境。在命令行中运行 `python --version` 检查Python版本`MR` 脚本工具依赖Python 若无Python环境请自行安装
验证系统是否安装Python环境。在命令行中运行 `python --version` 检查Python版本`MR` 脚本工具依赖Python 若无Python环境请自行安装,暂不支持`3.11.7`以上的版本)。
## 将项目导入工程
@@ -163,7 +163,7 @@ int main(void)
![CubeMX工程](document/picture/readme/cubemx_project.png)
3.`bsp` 目录中对应芯片的驱动复制到 `driver`
3.`bsp` 目录中对应芯片的驱动复制到 `driver`(请仔细阅读`bsp`中的文档)
![Driver目录](document/picture/readme/driver.png)

View File

@@ -165,7 +165,8 @@ the `Python` script automatically generates the configuration file.
## Verifying Python environment
Verify that the Python environment is installed. Run `python --version` on the command line to check the Python
version (the `MR` scripting tool relies on Python, install it yourself if there is no Python environment).
version (the `MR` scripting tool relies on Python, install it yourself if there is no Python environment,
Versions later than `3.11.7` are not supported).
## Import the project into the workspace
@@ -175,11 +176,12 @@ version (the `MR` scripting tool relies on Python, install it yourself if there
![CubeMX project](document/picture/readme/cubemx_project.png)
3. Copy the driver of the corresponding chip in the `bsp` directory to `driver`:
3. Copy the driver of the corresponding chip in the `bsp` directory to `driver`
(Please read the documentation in `bsp` carefully):
![Driver directory](document/picture/readme/driver.png)
4. Remove unnecessary files` bsp `, `document`directories (you can also remove `.git `files if you don`t
4. Remove unnecessary files`bsp`, `document`directories (you can also remove `.git `files if you don't
need`git`). When complete, the directory structure looks like this:
![project directory](document/picture/readme/project.png)
@@ -209,7 +211,7 @@ version (the `MR` scripting tool relies on Python, install it yourself if there
![Automatic configuration tool](document/picture/readme/build_m.png)
4. In the project, introduce `#include` include/mr_lib.h `and add` mr_auto_init() `to` main `function; `
4. In the project, introduce `#include include/mr_lib.h`and add`mr_auto_init()`to`main`function;
Automatically initialize the function and start using it.
Note: More commands can be entered: `python build.py -h` to view.