Multos Trust Anchor in contact smart card mode and GPIO?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #240
    Damien
    Participant
    August 7, 2020

    I would like to know if it is possible to use GPIO when Multos Trust Anchor is used in contact smart card mode (i.e. when it communicates with ISO7816 smart card interface)?

    When my student tried he got a MI_ABEND_REASON_FIREWALL_VIOLATION.

    Best regards
    Damien

    #385
    Chris Torr
    Keymaster
    August 7, 2020

    Hi, yes it is possible. You will however get an abend if you don’t set the correct access_list bit or if you initialise the GPIO pins more than once between resets, but those wouldn’t be firewall violations. Look for bad array indexing or bad pointers, anything that produces an out of bounds memory read/write.

    Regards,
    Chris

    #386
    Damien
    Participant
    August 7, 2020

    Dear Chris,

    Thank again. It works perfectly. In MUtil, we have to set the parameter during load of ALU.
    #pragma attribute(“access_list”,”1003″) in the program was not enough.

    I have not tried again my student’s program when he got firewall violation.

    BTW, the miDebuggingEnable() should not be called.

    Best regards,
    Damien

    #387
    Chris Torr
    Keymaster
    August 7, 2020

    Hi Damien,

    If you’re interested to know why, the attributes are part of the debug file (.hzx) and can be picked up by the tools in Smartdeck, e.g. hterm and melcertgen.

    MUtil does not read the debug files, only the final release code (.alu files) so you have to specify the ALC parameters manually in MUtil (or in the KMA interface when using live cards).

    Regards,
    Chris.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.