lezjin 发表于 2024-10-27 17:39:23

EEPROM 均衡磨损请教

本帖最后由 lezjin 于 2024-10-27 17:49 编辑

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

接收←.
接收←.
接收←uart2printf teset
                  EEprom data is 0xff 0xff
                     
                     EEprom data is 0xff 0xff
                  EEprom 0x1fa is0xff   and0x1fb is 0xff
                  EEprom next 0x1fc is0x0 ---0x1fd is 0x0
                  
                     g_eerpomPoint is 0x2
                  EEprom 0x2 is0xff   and0x3 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x1 0x2
                  g_eerpomPoint is 0x2
                     
                     EEprom data is 0x1 0x2
                  EEprom 0x1f2 is0x1   and0x1f3 is 0x2
                  EEprom next 0x1f4 is0x2 ---0x1f5 is 0x3
                  
                     g_eerpomPoint is 0x4
                  EEprom 0x4 is0xff   and0x5 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x1 0x2
                  g_eerpomPoint is 0x4
                     
                     EEprom data is 0x2 0x3
                  EEprom 0x1f4 is0x2   and0x1f5 is 0x3
                  EEprom next 0x1f6 is0x3 ---0x1f7 is 0x4
                  
                     g_eerpomPoint is 0x6
                  EEprom 0x6 is0xff   and0x7 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x1 0x2
                  g_eerpomPoint is 0x6
                     
                     EEprom data is 0x3 0x4
                  EEprom 0x1f6 is0x3   and0x1f7 is 0x4
                  EEprom next 0x1f8 is0x4 ---0x1f9 is 0x5
                  
                     g_eerpomPoint is 0x8
                  EEprom 0x8 is0xff   and0x9 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x1 0x2
                  g_eerpomPoint is 0x8
                     
                     EEprom data is 0x4 0x5
                  EEprom 0x1f8 is0x4   and0x1f9 is 0x5
                  EEprom next 0x1fa is0x5 ---0x1fb is 0x6
                  
                   g_eerpomPoint is 0xc
                  EEprom 0xc is0xff   and0xd is 0xff
                  
接收←uart2printf 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 is0x0   and0x1f3 is 0x0
                    EEprom next 0x1f4 is0x1 ---0x1f5 is 0x1
                  
                     g_eerpomPoint is 0x4
                  EEprom 0x4 is0xff   and0x5 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x0 0x0
                  g_eerpomPoint is 0x4
                     
                     EEprom data is 0x1 0x1
                  EEprom 0x1f4 is0x1   and0x1f5 is 0x1
                  EEprom next 0x1f6 is0x2 ---0x1f7 is 0x2
                  
                     g_eerpomPoint is 0x6
                  EEprom 0x6 is0xff   and0x7 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x0 0x0
                  g_eerpomPoint is 0x6
                     
                     EEprom data is 0x2 0x2
                  EEprom 0x1f6 is0x2   and0x1f7 is 0x2
                  EEprom next 0x1f8 is0x3 ---0x1f9 is 0x3
                  
                     g_eerpomPoint is 0x8
                  EEprom 0x8 is0xff   and0x9 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x0 0x0
                  g_eerpomPoint is 0x8
                     
                     EEprom data is 0x3 0x3
                  EEprom 0x1f8 is0x3   and0x1f9 is 0x3
                  EEprom next 0x1fa is0x4 ---0x1fb is 0x4
                  
                     g_eerpomPoint is 0xa
                  EEprom 0xa is0xff   and0xb is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x0 0x0
                  g_eerpomPoint is 0xa
                     
                     EEprom data is 0x4 0x4
                  EEprom 0x1fa is0x4   and0x1fb is 0x4
                  EEprom next 0x1fc is0x5 ---0x1fd is 0x5
                  
                     g_eerpomPoint is 0xc
                  EEprom 0xc is0xff   and0xd is 0xff
                  
接收←uart2printf 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 is0x5   and0x1f3 is 0x5
                  EEprom next 0x1f4 is0x6 ---0x1f5 is 0x6
                  
                     g_eerpomPoint is 0x4
                  EEprom 0x4 is0xff   and0x5 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x5 0x5
                  g_eerpomPoint is 0x4
                     
                     EEprom data is 0x6 0x6
                  EEprom 0x1f4 is0x6   and0x1f5 is 0x6
                  EEprom next 0x1f6 is0x7 ---0x1f7 is 0x7
                  
                     g_eerpomPoint is 0x6
                  EEprom 0x6 is0xff   and0x7 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x5 0x5
                  g_eerpomPoint is 0x6
                     
                     EEprom data is 0x7 0x7
                  EEprom 0x1f6 is0x7   and0x1f7 is 0x7
                  EEprom next 0x1f8 is0x8 ---0x1f9 is 0x8
                  
                     g_eerpomPoint is 0x8
                  EEprom 0x8 is0xff   and0x9 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x5 0x5
                  g_eerpomPoint is 0x8
                     
                     EEprom data is 0x8 0x8
                  EEprom 0x1f8 is0x8   and0x1f9 is 0x8
                  EEprom next 0x1fa is0x9 ---0x1fb is 0x9
                  
                     g_eerpomPoint is 0xa
                  EEprom 0xa is0xff   and0xb is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x5 0x5
                  g_eerpomPoint is 0xa
                     
                     EEprom data is 0x9 0x9
                  EEprom 0x1fa is0x9   and0x1fb is 0x9
                  EEprom next 0x1fc is0xa ---0x1fd is 0xa
                  
                     g_eerpomPoint is 0xc
                  EEprom 0xc is0xff   and0xd is 0xff
                  
接收←uart2printf 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 is0xa   and0x1f3 is 0xa
                  EEprom next 0x1f4 is0xb ---0x1f5 is 0xb
                  
                     g_eerpomPoint is 0x4
                  EEprom 0x4 is0xff   and0x5 is 0xff
                  

lezjin 发表于 2024-10-27 17:41:22

本帖最后由 lezjin 于 2024-10-27 17:48 编辑

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

lezjin 发表于 2024-10-27 17:43:23

本帖最后由 lezjin 于 2024-10-27 17:48 编辑

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


接收←...
接收←uart2printf teset
                  EEprom data is 0xff 0xff
                     
                     EEprom data is 0xff 0xff
                  EEprom 0x1f4 is0xff   and0x1f5 is 0xff
                  EEprom next 0x1f6 is0x0 ---0x1f7 is 0x0
                  
                     g_eerpomPoint is 0x2
                  EEprom 0x2 is0xff   and0x3 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x1 0x2
                  g_eerpomPoint is 0x2
                     
                     EEprom data is 0x1 0x2
                  EEprom 0x1f2 is0x1   and0x1f3 is 0x2
                  EEprom next 0x1f4 is0x2 ---0x1f5 is 0x3
                  
                   g_eerpomPoint is 0x6
                  EEprom 0x6 is0xff   and0x7 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x1 0x2
                  g_eerpomPoint is 0x6
                     
                     EEprom data is 0x0 0x0
                  EEprom 0x1f6 is0x0   and0x1f7 is 0x0
                  EEprom next 0x1f8 is0x1 ---0x1f9 is 0x1
                  
                     g_eerpomPoint is 0x8
                  EEprom 0x8 is0xff   and0x9 is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x1 0x2
                  g_eerpomPoint is 0x8
                     
                     EEprom data is 0x1 0x1
                  EEprom 0x1f8 is0x1   and0x1f9 is 0x1
                  EEprom next 0x1fa is0x2 ---0x1fb is 0x2
                  
                     g_eerpomPoint is 0xa
                  EEprom 0xa is0xff   and0xb is 0xff
                  
接收←uart2printf teset
                  EEprom data is 0x1 0x2
                  g_eerpomPoint is 0xa
                     
                     EEprom data is 0x2 0x2
                  EEprom 0x1fa is0x2   and0x1fb is 0x2
                  EEprom next 0x1fc is0x3 ---0x1fd is 0x3
                  
                     g_eerpomPoint is 0xc
                  EEprom 0xc is0xff   and0xd is 0xff
页: [1]
查看完整版本: EEPROM 均衡磨损请教