Comments (3)
贴出更多代码吧
from easyflash.
这个地址我还未写入数据,但是我想知道:
还未写入数据的地址,如果去读取,返回的数据应该是什么样的数据?
因为我读取Flash设置了一个简单的自检去判断 数据是否正确,当判断数据 不为(-1)时则为正常数据,但是可能这个 打印出来的(-1)并不是真正的 数值上的(-1),这个简单的判断并不能成立。
/* 读取 FLASH 普通参数*/
int Normal_Paramter_Init_With_Flash(void)
{
char i = 0;
for(i = 0;i < PARAMEMER_MAX_NUMBER_A;i++ ){
ef_port_read(Nor_FLASH_ADDRESS+4*i,(u32 *)(&Normal_Parameter[i]),4);
}
Normal_Parameter_SelfCheck_With_Flash();//Flash参数自检 若为 0 或 -1则为 非正常数据,则不传递给真实数据
log_i("Flash_Read()");
return 0;
}
from easyflash.
- 1、 ef_port_read 不是给用户调用的,是由用户适配好,提供给 EasyFlash 使用的
- 2、即便你去调用这个接口,他的出参是 EfErrCode 类型,不应该是 -1
EasyFlash/easyflash/port/ef_port.c
Lines 64 to 71 in f64af09
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.