
EricMartin1970 (Customer) asked a question.
The P1AM-ETH module seems to be locked out of the box. I wanted to create my own configuration.
Why is it locked and can I buy a P1AM-ETH module that doesn't come with the config and data zones locked? This is my code that checks lock status:
void print_zone_locks() {
bool config_locked, data_locked;
atcab_is_locked(LOCK_ZONE_CONFIG, &config_locked);
atcab_is_locked(LOCK_ZONE_DATA, &data_locked);
Serial.print("Config zone is ");
Serial.println(config_locked ? "LOCKED" : "UNLOCKED");
Serial.print("Data zone is ");
Serial.println(data_locked ? "LOCKED" : "UNLOCKED");
// test print to see what ECCO8 says
Serial.print("ECCX08.locked - Config zone lock: ");
Serial.println(ECCX08.locked() ? "LOCKED" : "UNLOCKED");
}
output:
12:38:40.259 -> Config zone is LOCKED
12:38:40.259 -> Data zone is LOCKED
12:38:40.259 -> ECCX08.locked - Config zone lock: LOCKED