操作EEPROM时触发ECC内部故障导致通信失败
来源:互联网 发布:微博域名修改 编辑:程序博客网 时间:2024/06/16 17:49
This example simulates ECC issue by cumulative write into the same EEPROM area without an erasing.
The EEPROM erase operation set all bits into log1. The EEPROM program operation may keep bit cells in log1 state
or change it into log0 state, but not in opposite way.
The S12Z MCU EEPROM is protected by 22-Bit ECC Scheme. Every word (16bits) is protected by additional 6 bits with ECC checksum.
The ECC values are not accessible for users.
Every EEPROM reading triggers also ECC check by internal logic. The single bit error in user data may be corrected by ECC checksum.
The double bit error cannot be corrected.
The ECC protection is implemented also at flash controller commands and results are signalling by MGSTAT bits.
The first case simulates Single-bit ECC error during reading. The MGSTAT bits after the second write are 0b10
due to fact that just 1 bit is different during write verification (correctable error)
The second case simulates Single-bit ECC error during reading. The MGSTAT bits after the second write are 0b11
due to fact that more than 1 bits are different during write verification (non-correctable error)
The third case simulates Double-bit ECC error during reading. The MGSTAT bits after the second write are 0b11
due to fact that more than 1 bits are different during write verification (non-correctable error)
The EEPROM patterns are selected for highlighted described behavior and they don't have any real meaning.
The cumulative write is not allowed for normal operation!!!
The code from this example should be used only for design testing - not in production!!!
Please, see the prm file. Address range 0x100000-0x100001 is excluded from default EEPROM and is used as user EEPROM memory
The size of EEPROM sectors is 2 bytes. The EEPROM_Program() function may program up to 4 words in single flash command.
Note: The EEPROM_Program() function was updated - erase verification is skipped
在freescale单片机操作内部EEPROM时,特别要注意先要擦除再写,而且在操作EEPROM时如果引发ECC故障,会导致单片机复位。公司有两个case是关于操作EEPROM时,引发ECC故障,导致单片机不断复位,电压缓升缓降。从而CAN/LIN通信失败。
- 操作EEPROM时触发ECC内部故障导致通信失败
- STM8S 操作内部EEPROM
- PIC内部EEPROM读写操作
- STM8L10X写内部EEPROM
- STC内部EEPROM表
- stm8 内部EEPROM
- 51内部EEPROM实验
- STM8S读写内部EEPROM
- 故障排查:是什么 导致了服务器端口telnet失败?
- 故障排查:是什么 导致了服务器端口telnet失败?
- ecshop 迁移导致ucenter整合“通信失败”
- js 导致事件委托触发事件失败的一个问题
- PIC16F676内部读EEPROM程序
- STC89C52单片机内部EEPROM驱动
- STC89C52单片机内部EEPROM驱动
- 单片机内部EEPROM的应用
- STM8内部EEPROM的使用
- STC内部EEPROM的应用
- What is a NullPointerException?
- x的n次幂
- 猜数游戏
- E
- CodeForces B. Karen and Coffee
- 操作EEPROM时触发ECC内部故障导致通信失败
- codeforces731F (思维)
- 循环结构
- (转)为了快 0.00007 秒,有家交易公司花 1400 万美元买了块地
- 用Java代码实现改变一个文本中的内容,即将一个文本里的内容修改内容,并存储到另一个文本中
- 编程练习——顺时针打印矩阵
- 【CSS 基础】01 概述
- [注释转化]C语言注释转换为C++语言注释
- epoll和select