You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
EasyFlash/demo/env/stm32f10x/non_os/README.md

25 lines
704 B
Markdown

This file contains ambiguous Unicode characters!

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工程文件