With REVELPROG-IS Custom Scripts tool there is possibility to:
- Read Identification Page (256 bytes)
- Write Identification Page (256 bytes)
- Lock Identification Page
I'm sharing scripts for all these operations:
Read Identification Page (256 bytes)
Code: Select all
// M24M02-DR Read Identification Page (256 bytes)
#SCRIPT HEADER;
SCRIPT:v1.8.1;
#HARDWARE SETTINGS;
HW:I2C,5.0V,SLOW;
// Read 256 byte of identification page
#OPERATION;
SW:0,0,1,255,0,0,0,0,500,500;
INSTR:B0,00,00;
Write Identification Page (256 random bytes)
Code: Select all
// M24M02-DR Write Identification Page (256 bytes)
// Write will work only if Identification Page is unlocked.
#SCRIPT HEADER;
SCRIPT:v1.8.1;
#HARDWARE SETTINGS;
HW:I2C,5.0V,SLOW;
// Write 256 random bytes to identification page
#OPERATION;
SW:1,255,0,0,0,0,10,0,500,500;
INSTR:B0,00,00;
DATA:3F,DB,96,D7,52,57,14,E9,AF,F3,30,C7,35,2D,95,DB,78,7A,0E,B9,BE,3C,0B,72,E2,4E,68,78,2B,42,BB,A1,D5,D1,C5,DC,C4,40,E5,89,E2,AF,9B,C3,0F,F7,FA,90,FE,14,BE,46,4B,42,A3,03,CF,24,F4,03,EE,9C,BD,6D,38,8E,F2,64,67,B8,16,38,95,84,D7,0E,A0,48,62,EB,54,D7,79,17,84,74,56,92,2E,C2,0D,A0,4C,E2,9A,46,F1,2E,8B,81,05,96,29,46,FD,86,B1,C6,6A,94,62,87,C2,09,AF,17,22,A6,E8,C3,37,5F,35,A5,AB,76,EC,B2,EA,91,1C,72,BC,E1,E6,BD,AE,33,19,FE,C3,90,27,99,5F,86,DE,43,32,82,24,4B,45,C8,49,A5,60,83,9A,87,9A,FE,DB,D9,78,F0,CA,E1,23,F1,69,EE,8C,EA,FF,A6,37,9C,46,25,98,A9,80,67,6C,D0,2C,F4,97,40,5D,2A,98,92,64,C4,B4,4D,21,6E,BB,FD,20,40,19,35,BF,5B,C8,A2,6D,C4,3C,75,EF,F0,7E,73,6C,A7,C4,D6,49,E2,94,3E,55,FA,86,3B,F1,EA,7B,D7,69,9B,89,3F,4E,37,11,D1,2B,F4,D3,98,EE,22,A2,73,46,40,E1,79,AA,E4;
// Read 256 byte of identification page
#OPERATION;
SW:0,0,1,255,0,0,0,0,500,500;
INSTR:B0,00,00;
Lock Identification Page
Code: Select all
// M24M02-DR Lock Identification Page
// PLEASE NOTE! The Lock Identification Page instruction permanently locks the Identification page in Read-only mode.
#SCRIPT HEADER;
SCRIPT:v1.8.1;
#HARDWARE SETTINGS;
HW:I2C,5.0V,SLOW;
// Lock identification page (it will be read only and can not be changed!)
#OPERATION;
SW:1,0,0,0,0,0,10,0,500,500;
INSTR:B0,04,00;
DATA:02;
// Read 256 byte of identification page
#OPERATION;
SW:0,0,1,255,0,0,0,0,500,500;
INSTR:B0,00,00;