Air202 - 命令 nvm.set(“tmpStp”, os.time()) 的内存写入周期数是多少?

欢迎您!
关于通过命令将当前时间戳写入内存的问题。

nvm.set(“tmpStp”, os.time())

http://ask.openluat.com/article/75

require”nvm”
require”sys”
require"config"
nvm.init("config.lua")
nvm.set(“tmpStp”, os.time())
function timeChk()
--如果当前时间,大于保存的时间+60秒
if os.time() > nvm.get(“tmpStp”) + 60 then
print(“time up”)
sys.timerStop(timeChk)
end
end
sys.timerLoopStart(timeChk, 1000)

内存在当前时间戳的写周期数上的持久性是多少?
我可以在非易失性存储器中保存多少次当前时间戳?
感谢您提供的信息。


Hello!
Question about writing the current time stamp to memory by command.

nvm.set(“tmpStp”, os.time())

http://ask.openluat.com/article/75

require”nvm”
require”sys”
require"config"
nvm.init("config.lua")
nvm.set(“tmpStp”, os.time())
function timeChk()
--如果当前时间,大于保存的时间+60秒
if os.time() > nvm.get(“tmpStp”) + 60 then
print(“time up”)
sys.timerStop(timeChk)
end
end
sys.timerLoopStart(timeChk, 1000)

What is the durability of memory on the number of write cycles of the current timestamp?
How many times can I save the current timestamp in nonvolatile memory?
Thank you for the information provided.

请先 登录 后评论

最佳答案 2019-03-11 00:43

What is the durability of memory on the number of write cycles of the current timestamp?

答:模块内部集成的是NOR FLASH,每个块的擦写次数是至少100,000次

How many times can I save the current timestamp in nonvolatile memory?

答:nvm管理的数据是写入到文件系统,文件系统的空间大小每个core分配的不一致,不过即使按照最小的文件系统大小来算,在文件系统空间足够的情况下,单纯就nvm的存储文件写入次数至少可以达到1,000,000次

请先 登录 后评论

其它 0 个回答