During the first calibration, the calibration always failed. What could be the reason?

During the first calibration, the calibration always failed. What could be the reason?
2025-07-24 14:51:05
Tonny12138
When calibrating, the relevant parameters are stored in the specified position in EEPROM. If other data previously saved in the same position in EEPROM, there may be a conflict, resulting in an inability to calibrate properly. Use the following code to erase the contents in the specified position in EEPROM. Run it once, then upload the sample code again to restart the calibration.
#include <EEPROM.h>
#define KVALUEADDR 0x0F
void setup(){
for(byte i = 0;i< 8; i++ ){
EEPROM.write(KVALUEADDR+i, 0xFF);
}
}
void loop(){
}
