找回密码
 立即注册
查看: 295|回复: 2

EEPROM 均衡磨损请教

[复制链接]
  • 打卡等级:以坛为家I
  • 打卡总天数:337
  • 最近打卡:2025-04-28 12:55:00

23

主题

296

回帖

1160

积分

金牌会员

积分
1160
发表于 2024-10-27 17:39:23 | 显示全部楼层 |阅读模式
本帖最后由 lezjin 于 2024-10-27 17:49 编辑

均衡磨损设置2个字节,中间总是会跳一次,然后数值就不正确了, 数值每次加1 为了方便观察

[17:44:22.794]接收←.
[17:44:22.812]接收←.
[17:44:26.179]接收←uart2  printf teset
                    EEprom data is 0xff 0xff
                     
                     EEprom data is 0xff 0xff
                    EEprom 0x1fa is  0xff   and  0x1fb is 0xff
                    EEprom next 0x1fc is  0x0 ---0x1fd is 0x0
                    
                     g_eerpomPoint is 0x2
                    EEprom 0x2 is  0xff   and  0x3 is 0xff
                    
[17:44:40.574]接收←uart2  printf teset
                    EEprom data is 0x1 0x2
                    g_eerpomPoint is 0x2
                     
                     EEprom data is 0x1 0x2
                    EEprom 0x1f2 is  0x1   and  0x1f3 is 0x2
                    EEprom next 0x1f4 is  0x2 ---0x1f5 is 0x3
                    
                     g_eerpomPoint is 0x4
                    EEprom 0x4 is  0xff   and  0x5 is 0xff
                    
[17:44:43.498]接收←uart2  printf teset
                    EEprom data is 0x1 0x2
                    g_eerpomPoint is 0x4
                     
                     EEprom data is 0x2 0x3
                    EEprom 0x1f4 is  0x2   and  0x1f5 is 0x3
                    EEprom next 0x1f6 is  0x3 ---0x1f7 is 0x4
                    
                     g_eerpomPoint is 0x6
                    EEprom 0x6 is  0xff   and  0x7 is 0xff
                    
[17:44:44.670]接收←uart2  printf teset
                    EEprom data is 0x1 0x2
                    g_eerpomPoint is 0x6
                     
                     EEprom data is 0x3 0x4
                    EEprom 0x1f6 is  0x3   and  0x1f7 is 0x4
                    EEprom next 0x1f8 is  0x4 ---0x1f9 is 0x5
                    
                     g_eerpomPoint is 0x8
                    EEprom 0x8 is  0xff   and  0x9 is 0xff
                    
[17:44:45.619]接收←uart2  printf teset
                    EEprom data is 0x1 0x2
                    g_eerpomPoint is 0x8
                     
                     EEprom data is 0x4 0x5
                    EEprom 0x1f8 is  0x4   and  0x1f9 is 0x5
                    EEprom next 0x1fa is  0x5 ---0x1fb is 0x6
                    
                     g_eerpomPoint is 0xc
                    EEprom 0xc is  0xff   and  0xd is 0xff
                    
[17:44:46.587]接收←uart2  printf teset
                    EEprom data is 0x1 0x2
                    g_eerpomPoint is 0xc
                     
                     EEprom data is 0x0 0x0
                    ---------------- eerpom is full----------
                    ---------------- eerpom 000000000000000----------
                    
                     g_eerpomPoint is 0x2
                     
                     EEprom data is 0x0 0x0
                    EEprom 0x1f2 is  0x0   and  0x1f3 is 0x0
                    EEprom next 0x1f4 is  0x1 ---0x1f5 is 0x1
                    
                     g_eerpomPoint is 0x4
                    EEprom 0x4 is  0xff   and  0x5 is 0xff
                    
[17:45:01.765]接收←uart2  printf teset
                    EEprom data is 0x0 0x0
                    g_eerpomPoint is 0x4
                     
                     EEprom data is 0x1 0x1
                    EEprom 0x1f4 is  0x1   and  0x1f5 is 0x1
                    EEprom next 0x1f6 is  0x2 ---0x1f7 is 0x2
                    
                     g_eerpomPoint is 0x6
                    EEprom 0x6 is  0xff   and  0x7 is 0xff
                    
[17:45:02.569]接收←uart2  printf teset
                    EEprom data is 0x0 0x0
                    g_eerpomPoint is 0x6
                     
                     EEprom data is 0x2 0x2
                    EEprom 0x1f6 is  0x2   and  0x1f7 is 0x2
                    EEprom next 0x1f8 is  0x3 ---0x1f9 is 0x3
                    
                     g_eerpomPoint is 0x8
                    EEprom 0x8 is  0xff   and  0x9 is 0xff
                    
[17:45:03.717]接收←uart2  printf teset
                    EEprom data is 0x0 0x0
                    g_eerpomPoint is 0x8
                     
                     EEprom data is 0x3 0x3
                    EEprom 0x1f8 is  0x3   and  0x1f9 is 0x3
                    EEprom next 0x1fa is  0x4 ---0x1fb is 0x4
                    
                     g_eerpomPoint is 0xa
                    EEprom 0xa is  0xff   and  0xb is 0xff
                    
[17:45:04.571]接收←uart2  printf teset
                    EEprom data is 0x0 0x0
                    g_eerpomPoint is 0xa
                     
                     EEprom data is 0x4 0x4
                    EEprom 0x1fa is  0x4   and  0x1fb is 0x4
                    EEprom next 0x1fc is  0x5 ---0x1fd is 0x5
                    
                     g_eerpomPoint is 0xc
                    EEprom 0xc is  0xff   and  0xd is 0xff
                    
[17:45:05.330]接收←uart2  printf teset
                    EEprom data is 0x0 0x0
                    g_eerpomPoint is 0xc
                     
                     EEprom data is 0x5 0x5
                    ---------------- eerpom is full----------
                    ---------------- eerpom 000000000000000----------
                    
                     g_eerpomPoint is 0x2
                     
                     EEprom data is 0x5 0x5
                    EEprom 0x1f2 is  0x5   and  0x1f3 is 0x5
                    EEprom next 0x1f4 is  0x6 ---0x1f5 is 0x6
                    
                     g_eerpomPoint is 0x4
                    EEprom 0x4 is  0xff   and  0x5 is 0xff
                    
[17:45:06.052]接收←uart2  printf teset
                    EEprom data is 0x5 0x5
                    g_eerpomPoint is 0x4
                     
                     EEprom data is 0x6 0x6
                    EEprom 0x1f4 is  0x6   and  0x1f5 is 0x6
                    EEprom next 0x1f6 is  0x7 ---0x1f7 is 0x7
                    
                     g_eerpomPoint is 0x6
                    EEprom 0x6 is  0xff   and  0x7 is 0xff
                    
[17:45:06.805]接收←uart2  printf teset
                    EEprom data is 0x5 0x5
                    g_eerpomPoint is 0x6
                     
                     EEprom data is 0x7 0x7
                    EEprom 0x1f6 is  0x7   and  0x1f7 is 0x7
                    EEprom next 0x1f8 is  0x8 ---0x1f9 is 0x8
                    
                     g_eerpomPoint is 0x8
                    EEprom 0x8 is  0xff   and  0x9 is 0xff
                    
[17:45:07.533]接收←uart2  printf teset
                    EEprom data is 0x5 0x5
                    g_eerpomPoint is 0x8
                     
                     EEprom data is 0x8 0x8
                    EEprom 0x1f8 is  0x8   and  0x1f9 is 0x8
                    EEprom next 0x1fa is  0x9 ---0x1fb is 0x9
                    
                     g_eerpomPoint is 0xa
                    EEprom 0xa is  0xff   and  0xb is 0xff
                    
[17:45:08.228]接收←uart2  printf teset
                    EEprom data is 0x5 0x5
                    g_eerpomPoint is 0xa
                     
                     EEprom data is 0x9 0x9
                    EEprom 0x1fa is  0x9   and  0x1fb is 0x9
                    EEprom next 0x1fc is  0xa ---0x1fd is 0xa
                    
                     g_eerpomPoint is 0xc
                    EEprom 0xc is  0xff   and  0xd is 0xff
                    
[17:45:08.941]接收←uart2  printf teset
                    EEprom data is 0x5 0x5
                    g_eerpomPoint is 0xc
                     
                     EEprom data is 0xa 0xa
                    ---------------- eerpom is full----------
                    ---------------- eerpom 000000000000000----------
                    
                     g_eerpomPoint is 0x2
                     
                     EEprom data is 0xa 0xa
                    EEprom 0x1f2 is  0xa   and  0x1f3 is 0xa
                    EEprom next 0x1f4 is  0xb ---0x1f5 is 0xb
                    
                     g_eerpomPoint is 0x4
                    EEprom 0x4 is  0xff   and  0x5 is 0xff
                    

eeprom.rar

84.12 KB, 下载次数: 36

回复

使用道具 举报 送花

  • 打卡等级:以坛为家I
  • 打卡总天数:337
  • 最近打卡:2025-04-28 12:55:00

23

主题

296

回帖

1160

积分

金牌会员

积分
1160
发表于 2024-10-27 17:41:22 | 显示全部楼层
本帖最后由 lezjin 于 2024-10-27 17:48 编辑

均衡磨损设置2个字节,中间总是会跳一次,然后数值就不正确了, 数值每次加1 为了方便观察
截图202410271740117052.jpg
回复 支持 反对

使用道具 举报 送花

  • 打卡等级:以坛为家I
  • 打卡总天数:337
  • 最近打卡:2025-04-28 12:55:00

23

主题

296

回帖

1160

积分

金牌会员

积分
1160
发表于 2024-10-27 17:43:23 | 显示全部楼层
本帖最后由 lezjin 于 2024-10-27 17:48 编辑

这个是我重新下载,跳的位置还不一样


[17:48:46.747]接收←...
[17:48:50.134]接收←uart2  printf teset
                    EEprom data is 0xff 0xff
                     
                     EEprom data is 0xff 0xff
                    EEprom 0x1f4 is  0xff   and  0x1f5 is 0xff
                    EEprom next 0x1f6 is  0x0 ---0x1f7 is 0x0
                    
                     g_eerpomPoint is 0x2
                    EEprom 0x2 is  0xff   and  0x3 is 0xff
                    
[17:48:52.032]接收←uart2  printf teset
                    EEprom data is 0x1 0x2
                    g_eerpomPoint is 0x2
                     
                     EEprom data is 0x1 0x2
                    EEprom 0x1f2 is  0x1   and  0x1f3 is 0x2
                    EEprom next 0x1f4 is  0x2 ---0x1f5 is 0x3
                    
                     g_eerpomPoint is 0x6
                    EEprom 0x6 is  0xff   and  0x7 is 0xff
                    
[17:48:54.113]接收←uart2  printf teset
                    EEprom data is 0x1 0x2
                    g_eerpomPoint is 0x6
                     
                     EEprom data is 0x0 0x0
                    EEprom 0x1f6 is  0x0   and  0x1f7 is 0x0
                    EEprom next 0x1f8 is  0x1 ---0x1f9 is 0x1
                    
                     g_eerpomPoint is 0x8
                    EEprom 0x8 is  0xff   and  0x9 is 0xff
                    
[17:48:56.117]接收←uart2  printf teset
                    EEprom data is 0x1 0x2
                    g_eerpomPoint is 0x8
                     
                     EEprom data is 0x1 0x1
                    EEprom 0x1f8 is  0x1   and  0x1f9 is 0x1
                    EEprom next 0x1fa is  0x2 ---0x1fb is 0x2
                    
                     g_eerpomPoint is 0xa
                    EEprom 0xa is  0xff   and  0xb is 0xff
                    
[17:48:57.666]接收←uart2  printf teset
                    EEprom data is 0x1 0x2
                    g_eerpomPoint is 0xa
                     
                     EEprom data is 0x2 0x2
                    EEprom 0x1fa is  0x2   and  0x1fb is 0x2
                    EEprom next 0x1fc is  0x3 ---0x1fd is 0x3
                    
                     g_eerpomPoint is 0xc
                    EEprom 0xc is  0xff   and  0xd is 0xff
回复 支持 反对

使用道具 举报 送花

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳国芯人工智能有限公司 ( 粤ICP备2022108929号-2 )

GMT+8, 2025-5-3 15:18 , Processed in 0.212280 second(s), 57 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表