B-L4S5I-IOT01A STSAFE Provisioning: STSAFEA_KEY_BLOCKED error
Hi,
I'm using X-CUBE-AWS 2.2.0 with a B-L4S5I-IOT01A dev board. While trying to provision and save the keys, the erase function HAL_Erase_Data_Zone() is returning the error STSAFEA_KEY_BLOCKED. I have made sure that DBANK is 0. I enabled PRINTF_ON and here is the output:
Launching STSAFE-A pairing
Check if Pairing Host keys available
use default keys and meanwhile set buf = NULL
Check_host_keys STSAFEA_OK
Set access condition to host for Zone 2 & 3 & 4
Pairing OK
Size of data's to be send exceed max size of STSAFE-Axx buffer
We have to split data's in blocks
ERROR: StatusCode StSafeA_Update=0xb
Size of data to copy 9
ERROR: StatusCode StSafeA_Update=0xb
Size of data to copy 9
ERROR: StatusCode UpdateZone=0xb
ERROR: StatusCode =0xb
Erase data NOK, to understand source of the error please enable log
using #define PRINTF_ON, End of Provisioning !!!!
Any idea what might be causing this error? Is there another option byte I have to change?
Thanks in advance.
Hank
