This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# stm32f10x 裸机Demo
---
## 1、简介
通过 `app\src\app.c` 的 `test_env()` 方法来演示环境变量的读取及修改功能,每次系统启动并且初始化EasyFlash成功后会调用该方法。
在 `test_env()` 方法中,会先读取系统的启动次数,读取后对启动次数加一,再存入到环境变量中,实现记录系统启动(开机)次数的功能。
### 1.1、使用方法
- 1、打开电脑的终端与Demo的串口1进行连接,串口配置 115200 8 1 N,此时可以在终端上看到Demo的打印日志
- 2、断电重启Demo
- 3、等待重启完成后,即可查看到打印信息中的启动次数有所增加
> 注意:对于无法连接终端的用户,也可以使用仿真器与Demo平台进行连接,来观察启动次数的变化
## 2、文件(夹)说明
`components\easyflash\port\ef_port.c` 移植参考文件
`RVMDK` 下为Keil工程文件
`EWARM` 下为IAR工程文件