M95M04-DR EEPROM roll-over issue I am working with the M95M04-DR eeprom. In my program, I must save logs of data inside the EEPROM memory. I wriite data in chunks of 25 bytes.I have written 11 chunks of data ant noticed a problem. I have a function to read back multiple bytes of data : void EEPROM_read_multiple_bytes(spi_device_handle_t spi,uint32_t start, uint32_t number,uint8_t* data_bufer){
if( (start + number) > 512000 ){
printf("EEPROM out of bounds \n");
return;
}
while(EEPROM_check_if_busy(spi) != true){ // return true if flash is not busy
vTaskDelay(10/portTICK_PERIOD_MS);
//printf("waiting for busy flag to clear \n");
}
uint32_t length = number;
spi_transaction_ext_t trans = {
.base = {
.flags = SPI_TRANS_VARIABLE_ADDR,
.cmd = 0b00000011,
.addr = (uint32_t)start,
.rxlength = length*8,
.rx_buffer = data_bufer,
},
.address_bits = 24,
};
spi_d