Hello, team
EEPROM writing may fail.
SPI communication mode is selected.
The procedure is as follows
1. Power on
2. VDDIO / EN = LOW
3. Wait 500 μs
4. VDDIO / EN = HIGH
5. Wait 100 ms (SOFT_START = 50 ms + BOOT_START = 50 ms)
6. Write 0x08 to address 0x1A
7. Write 0xBA to address 0x1A
8. Write 0xEF to address 0x1A
9. Write 0x01 to address 0x19
10. Wait 1 ms
11. Write 0x00 to address 0x19
12. Read data from EEPROM registers (address 0x60 ... 0x78).
13. Write 0x08 to address 0x1A
14. Write 0xBA to address 0x1A
15. Write 0xEF to address 0x1A
16. Wait 5 ms
17. Write data to EEPROM registers (address 0x60 ... 0x78).
18. Write 0x02 to address 0x19
19. Wait 250 ms
20. Write 0x00 to address 0x19
After that, when resetting the host microcomputer in the power supply state (starting from step 2), the writing will succeed.
Once again, the host microcomputer is reset (starting from step 2), the writing will succeed.
So I tried various experiments.
Then it turned out that if you set the EEPROM to the locked state after read / write as shown below, the write will not fail.
1. Power on
2. VDDIO / EN = LOW
3. Wait 500 μs
4. VDDIO / EN = HIGH
5. Wait 100 ms (SOFT_START = 50 ms + BOOT_START = 50 ms)
6. Write 0x08 to address 0x1A
7. Write 0xBA to address 0x1A
8. Write 0xEF to address 0x1A
9. Write 0x01 to address 0x19
10. Wait 1 ms
11. Write 0x00 to address 0x19
* 12. Write 0x00 to address 0x1A
13. Read data from EEPROM registers (address 0x60 ... 0x78).
14. Write 0x08 to address 0x1A
15. Write 0xBA to address 0x1A
16. Write 0xEF to address 0x1A
17. Wait 5ms
18. Write data to EEPROM registers (address 0x60 ... 0x78).
19. Write 0x02 to address 0x19
20. Wait 250 ms
21. Write 0x00 to address 0x19
* 22. Write 0x00 to address 0x1A
After unlocking the EEPROM register, is it correct use to lock again?
thanks