2.9.2.9.3 Monitor Answer

The Secure SAM-BA Monitor answers any command with an acknowledge message formatted as follows:

____,________,________#[<payload>]

opcode errcode length

where:

  • opcode—4 characters of the command
  • errcode—value of the error code
  • length—in cases where the monitor must send data to SAM-BA, this field shows how much data is in the payload, thus how much data SAM-BA has to read.
  • payload—optional data, depends on the command.
    Table 2-32. Command List
    CommandFull NameDescription
    CACKSEND_CMD_ACKReturn the status of simple commands
    ASTASEND_APPLET_STATUSReturn the status after execution of an applet
    SVERSEND_ROM_VERSIONReturn ROM Code version
    Table 2-33. Error Code
    Error nameHex valueDescription
    secCmdOK0x000000000Command OK
    secCmdTooLong0xFFFFFFFFWhole command size too long
    secCmdOpcodeSizeErr0xFFFFFFFEOpcode size too long
    secCmdAddrSizeErr0xFFFFFFFDAddress field size too long
    secCmdLenSizeErr0xFFFFFFFCLength field size too long
    secCmdRWSizeErr0xFFFFFFFARW field size too long
    secCmdOpcodeUnknown0xFFFFFFF9Unknown command op-code
    secCmdCustKeyLengthErr0xFFFFFFF8Customer key payload message size error
    secCmdCustKeyNotWritten0xFFFFFFF7Customer key has not been written
    secCmdCustKeyAlreadyWritten0xFFFFFFF6A customer key has already been written in fuses
    secCmdCmacErr0xFFFFFFF5Message CMAC error
    secCmdDecryptErr0xFFFFFFF4Error during message decryption
    secCmdKeyDerivErr0xFFFFFFF3Error during key derivation
    secCmdRsaHashAlreadyWritten0xFFFFFFEEAn RSA hash has already been written in fuses
    secCmdFuseWriteErr0xFFFFFFEDError while writing a fuse bit
    secCmdExpandModeAlreadyWritten0xFFFFFFECField EXPAND_MODE in the Boot Configuration word has already been programmed