Hi @David_Estevez
The CSEc is obviously enabled.
The example in SDK uses this MASTER_ECU_KEY:
uint8_t g_authIdKey[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};
The same key is used also in function eraseKeys(). This function uses mentioned commands CMD_DBG_CHAL and CMD_DBG_AUTH. If the function was not successful, the key is obviously wrong. Do you know history of the board? Do you know current MASTER_ECU_KEY? If not, there's no way to erase the keys. And if the keys are not erased, there's no way to run Erase All Blocks command. In this case, the only option is to replace the device.
Regards,
Lukas