Skip to content

Commit 01488df

Browse files
author
lizimu
committed
[添加] 数据flash下载算法
1 parent 11a96f5 commit 01488df

File tree

6 files changed

+42
-0
lines changed

6 files changed

+42
-0
lines changed

debug/stldr/ART-Pi_W25Q128JV.stldr

1.02 MB
Binary file not shown.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# UM5006-RT-Thread ART-Pi 数据flash擦写手册
2+
3+
4+
5+
## ART-Pi 数据FLASH(W25Q128JV)简介
6+
7+
ART-Pi除了配备一颗W25Q64JV用于存放程序外,同时配备了另一颗W25Q128JV用于存放WIFI固件,蓝牙固件,等其它数据.官方建议这颗W25Q128JV的空间划分如下:
8+
9+
| 分区名 | 起始地址 | 分区大小 | 用途说明 |
10+
| ---------- | --------------- | -------- | ------------------- |
11+
| wifi_image | 0 | 512KB | 保存wifi固件 |
12+
| bt_image | 512 * 1024 | 512KB | 保存bt固件 |
13+
| download | 1 * 1024 * 1024 | 2048KB | 固件下载分区 |
14+
| easyflash | 3 * 1024 * 1024 | 1024KB | easyflash参数保存区 |
15+
| filesystem | 4 * 1024 * 1024 | 12MB | 文件系统分区 |
16+
17+
ART-Pi出厂时数据flash中已经刷入相应的数据信息,但有时我们可能意外破坏或擦除上面的数据,此时就要重新写入数据,为此编写了数据flash的stldr下载算法,通过STM32CubeProgrammer加载下载算法可方便读写数据flash.
18+
19+
## STM32CubeProgrammer下载算法加载
20+
21+
将文件ART-Pi SDK-->debug-->stldr-->ART-Pi_W25Q128JV.stldr拷贝到STM32CubeProgrammer的外部flash算法目录(如:C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader)下
22+
23+
![cubeprog](.\figures\cubeprog.gif)
24+
25+
![cubeprog2](.\figures\cubeprog2.gif)
26+
27+
## STM32CubeProgrammer擦写数据flash
28+
29+
本下载算法可以一次性擦除整块flash,也可以按64KB块大小分别擦除.
30+
31+
![cubeprog3](.\figures\cubeprog3.gif)
32+
33+
下面以刷入wifi固件为例做演示(记住flash分区划分wifi固件起始地址是0,数据flash的在STM32CubeProgrammer中的地址是0x70000000,所以0x70000000+0(分区偏移)就是我们要写入的起始地址),STM32CubeProgrammer只能打开bin等后缀名的文件,所以要将wifi固件文件名后缀改成bin.
34+
35+
![cubeprog4](.\figures\cubeprog4.gif)
36+
37+
38+
39+
40+
41+
42+

documents/figures/cubeprog.gif

661 KB
Loading

documents/figures/cubeprog2.gif

1.64 MB
Loading

documents/figures/cubeprog3.gif

1.51 MB
Loading

documents/figures/cubeprog4.gif

2.58 MB
Loading

0 commit comments

Comments
 (0)