SecurityPersonalizer.ino: randomized key not shown after first step
I'm trying to personalize my ATSHA204A as documented here:
So I set this values:
Enable LOCK_CONFIGURATION Disable LOCK_DATA Enable SKIP_KEY_STORAGE Disable SKIP_UART_CONFIRMATION Disable USER_KEY
But in serial console - no randomized key is shown -as written in documentation "Execute the sketch on the “master” device to obtain a randomized key. Save this key to a secure location and keep it confidential so that you can retrieve it if you need to personalize more devices later on."
If I'm checking the code it's clear - because of disabled SKIP_KEY_STORAGE:
#ifdef SKIP_KEY_STORAGE Serial.println(F("Disable SKIP_KEY_STORAGE to store key.")); #else #ifdef USER_KEY memcpy(key, user_key_data, 32); Serial.println(F("Using this user supplied HMAC key:")); #else // Retrieve random value to use as key
So I think documentation is wrong at this point or do I understand it incorrectly?
@nog76 you are probably right. Thanks for reporting. A new release is soon to come which will change things quite a lot and documentation will update with that update.