MotoHawk XCPSlave Calculate Security Trigger

This trigger can be used to trigger a Simulink function-call subsystem when security asks for a key value.

Block ID

XCPSlave Calculate Security Trigger

Library

MotoHawk_Protocols_lib

Description

This block signifies the XCP protocol needs to compare the key value calculated in the application to a value sent through the protocol. The key requested has a name which is associated with the name in the Key Definition block. The application is responsible for generating a seed and the correspoding key. The key value is provided back to the protocol handler with the Key Response Set block.

More than one trigger may be placed in a model hooking off of the same event. In this case, the 'Priority Order' can be used to order these independent triggers. If the priorities are the same, then the order is implementation dependent.

The second port provides access to the seed bytes which must correspond to the Key Response Set block's key input port. If the seed bytes are not necessary when calculating the input to the Key Response Set block, the port can be connected to a terminator.

Block Parameters

Parameter Field Values Comments/Description
Trigger Name Alpha-numeric text, single-quote enclosed) Set the text that will be appended to code generated function name. This is useful when using a difference tool to compare the difference from one build to another. If this is left as an empty cell the appended value will be generated at build time, and can change from build to build.
Name String (unique identifier) Links to the Name parameter of the Key Definition block
Priority Order Number When multiple triggers of the same criteria are present, this specifis which will execute first.
This trigger is inside another triggered subsystem Checkbox If the trigger is inside another triggered subsystem, this must be checked.
Trigger even when containing subsystem is disabled Checkbox If the trigger is inside another enabled subsystem, then execute this subsystem if that subsystem is enabled.