Hi Hongjin,
According to LIN stack designer:
The error message shows clearly that SporadicControlFrame frame should be added to the Node_attributes section.
In the LIN21.ldf:
Node_attributes {
Motor1 {
LIN_protocol = "2.1"; /* Node protocol version */
configured_NAD = 0x2; /* configured NAD of node (1-125) */
initial_NAD = 0xa; /* initial NAD of node (1-125) */
product_id = 0x1e, 0x1, 0x0; /* Product id */
response_error = Motor1LinError; /* Response error signal */
fault_state_signals = Motor1ErrorValue, Motor1ErrorCode; /* Fault state signals */
N_As_timeout = 1000 ms; /* N_As timeout value */
N_Cr_timeout = 1000 ms; /* N_Cr timeout value */
configurable_frames {
MotorsControl;
Motor1Control;
Motor1State_Cycl;
Motor1State_Event;
ETF_MotorStates;
SporadicControlFrame;
}
}
Motor2 {
LIN_protocol = "2.1"; /* Node protocol version */
configured_NAD = 0x3; /* configured NAD of node (1-125) */
initial_NAD = 0xc; /* initial NAD of node (1-125) */
product_id = 0x2e, 0xb, 0x1; /* Product id */
response_error = Motor2LinError; /* Response error signal */
fault_state_signals = Motor2ErrorValue, Motor2ErrorCode; /* Fault state signals */
N_As_timeout = 1000 ms; /* N_As timeout value */
N_Cr_timeout = 1000 ms; /* N_Cr timeout value */
configurable_frames {
MotorsControl;
Motor2Control;
Motor2State_Cycl;
Motor2State_Event;
ETF_MotorStates;
SporadicControlFrame;
}
}
If users add SporadicControlFrame to the Node_attributes section, he may generate the configuration files.
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------