Comments (3)
EF_ERASE_MIN_SIZE 是4K
ENV_AREA_SIZE 是16K,上面显示有误
from easyflash.
感谢armink的easy flash,这个问题我已经解决了。是因为变量key定义时并不是4字节对齐。所以在create_env_blob函数中,使用uint32_t *强转的key出现了问题,数据是对的,但是写入flash时,被写入了随机数据。我加了解决办法,
static uint32_t user_key[16] = {0}; memset(&user_key, 0, sizeof(user_key)); memcpy(user_key, key, strlen(key));
定义一个uint32_t的函数在附近,然后每次写入时,进行赋值,在alige_write的时候,key改为user_key解决
from easyflash.
解决办法有点粗糙,但是对于目前我使用的场景,是不会有64字节的名字的
from easyflash.
Related Issues (20)
- STM32L0系列使用问题 HOT 1
- EF应该不支持STM32H7吧?
- 请问Flash读写会不会有被中断打断的隐患 HOT 9
- 请教一下我这样用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.