Comments (6)
目前好像不能这样做,除非有足够多的 RAM 。后面有规划一种全新模式,会去掉 RAM 缓存
from easyflash.
我想的是,如果最小擦除是4K,那RAM缓存就设置为4K。然后每次写之前都要先读出来,然后擦除,然后写入。我这种办法是不是很笨的?
from easyflash.
我想的是,如果最小擦除是4K,那RAM缓存就设置为4K
不是你说的这样的,ENV FLASH 区域大小、最小擦除粒度以及 RAM 缓存都是可以独立设置的。
from easyflash.
Flash ENV start address is 0x00000000, size is 4096 bytes.
Flash Calculate ENV CRC32 number is 0xA28EF931.
Flash Verify ENV CRC32 result is OK.
[Flash]EasyFlash V3.2.3 is initialize success.
[Flash]You can get the latest version on https://github.com/armink/EasyFlash .
iap_need_copy_app=0
iap_copy_app_size=0
stop_in_bootloader=0
device_id=1
jsonARM198708030015={"cmd":101,"s_uis_id":255,"s_uis_type":255,"fn":0,"result":1,"end":101}
boot_times=17
json_198708030015={"cmd":101,"s_uis_id":255,"s_uis_type":255,"fn":0,"result":1,"end":101}
mode: normal
size: 288/2048 bytes.
The system now boot 18 times
以上是我的的env输出,键值 是 json 字符串。
我也想要要存储几百条这样的json字符串,需要一个几十K大小的KV数据库,但STM32F103芯片 没有那么ram可以缓存。
请问,类似我这样的应用,该怎么使用easyflash?
from easyflash.
@qinhao4832 如果是这种情况,当前确实没有比较适合你的模式。等 EasyFlash 的零 RAM 占用模式开发完成后,就可以用了。
from easyflash.
最新发布版本已经不在需要 RAM 缓存了,极大的降低了资源占用,可以试试
from easyflash.
Related Issues (20)
- STM32L0系列使用问题 HOT 1
- EF应该不支持STM32H7吧?
- 请问Flash读写会不会有被中断打断的隐患 HOT 9
- V4.0 读取不到,写入时返回为0 HOT 3
- 请教一下我这样用EasyFlash做IAP升级管理是否有问题或隐患? HOT 1
- 3.0.4版本存储的env数据,在版本升级到4.1后,无法使用 HOT 3
- log_index2addr 函数存在隐藏风险,建议优化 HOT 2
- 配合ulog使用读取的时候 ef_log 在临界条件下存在低概率卡死的可能
- ef_log_read word aligned 判断错误 HOT 2
- ef_log: erase sector时发生复位或下电,重启时会丢失所有log HOT 1
- 请问支持 SD卡的FATFS文件系统吗
- The write function should not be called when the log remaining length is 0
- error: The ENV @0x000102213 length has an error ?
- GC 无法解发,四个扇区都是满状态。 HOT 4
- 从3.x迁移到4.1,F401RCT,Freertos,出现Hardfault
- 添加硬件CRC的Port
- log_seq_read读取数据超过1个扇区时,会数据错乱,应修改为
- 啥时候能支持大数据存储啊
- 在环形扇区块第一次跨扇区写入数据时,会有擦除空扇区的情况
- 64bit 写入粒度,计算env_hdr.crc32错误
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyflash.