PSoc 63关于flash读写问题

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ligo_4592266
Level 1
Level 1
First question asked First reply posted

Q1:flash的写接口函数一次性只能写一行(row)吗?

Q2:flash写之前必须要擦除吗?

Q3:调用写接口后,怎么查看flash内部的数据是否写成功?

0 点赞
1 解答
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Q1:flash的写接口函数一次性只能写一行(row)吗?

- 对的,PDL中提供的写flash的API都是以行为单位仅进行操作的。

Q2:flash写之前必须要擦除吗?

- 写flash之前必须要擦除,有的API里面包含了擦除的过程,用户无需再操作,有的API需要在调用之前手动擦除flash.

Q3:调用写接口后,怎么查看flash内部的数据是否写成功?

- 写操作的API分blocking和non-blocking两种,blocking会等待操作完成返回操作结果,non-blocking仅在开始进行写操作时就会返回开始的状态(成功/失败的原因),具体数据需要用户自行核实。

建议参考PDL flash操作部分的文档 - PSoC Creator -> Help -> Documentation -> PDL -> API Reference -> Flash System Routine

在原帖中查看解决方案

0 点赞
1 回复
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Q1:flash的写接口函数一次性只能写一行(row)吗?

- 对的,PDL中提供的写flash的API都是以行为单位仅进行操作的。

Q2:flash写之前必须要擦除吗?

- 写flash之前必须要擦除,有的API里面包含了擦除的过程,用户无需再操作,有的API需要在调用之前手动擦除flash.

Q3:调用写接口后,怎么查看flash内部的数据是否写成功?

- 写操作的API分blocking和non-blocking两种,blocking会等待操作完成返回操作结果,non-blocking仅在开始进行写操作时就会返回开始的状态(成功/失败的原因),具体数据需要用户自行核实。

建议参考PDL flash操作部分的文档 - PSoC Creator -> Help -> Documentation -> PDL -> API Reference -> Flash System Routine

0 点赞