Response error for LIN communication

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Response error for LIN communication

20,729 Views
liuxing_hu
Contributor III

based on s32k118, ide is s32ds, generate lin code by lin stack

it's slave node from my side, the following is the requirements I need to achieve, I need to get these errors by APIs, and send errors to LIN, but I don't know how to get these errors or which API used by Lin stack, Could someone help me? thanks very much!

liuxing_hu_0-1639992390958.png

liuxing_hu_1-1639992681314.png

liuxing_hu_2-1639992709410.png

 

 

16 Replies

1,811 Views
sharanabhiremath
Contributor I

In LIN 2.1 We have response Error signal which is mapped to a Specific LIN signal in LDF but if we need to map the other LIN signal along with previous one what is the way?

0 Kudos
Reply

20,615 Views
namnguyenviet
NXP Employee
NXP Employee

I don't get it... You want to change the stack code, don't you? 

now I want to call l_bool_wr_LI0_SWSL_responseError(1) when LINCurrentState->currentEventId is SYNC_ERROR,FRAME_ERROR  CHECKSUM_ERROR IDENTIFIER_PARITY or BIT_ERROR occure.

Why do you want to implement like this? Because set the reponse_error bit to 1 is already handled in the stack code, so it's like re-inventing the wheel when doing like this

Best Regards,

Nam

20,596 Views
liuxing_hu
Contributor III

Show you our LIN ldf config

liuxing_hu_0-1640659146710.pngliuxing_hu_1-1640659184775.png

As your mean,we dont not modify the code.If there are some error 

liuxing_hu_2-1640659588039.png

The SWSL_responseError shall be 1.So how to create the error to make SWSL_responseError  value as 1

0 Kudos
Reply

20,588 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @liuxing_hu,

SWSL_responseError will be 1 if there is an error in the bus. So like my previous comment, you have to inject a fault in the bus if you want to verify the SWSL_responseError bit, and you need a test device, e.g. Vector CANOE or NI LIN interface... Our LIN stack does NOTHING with fault injection/ bus disturbance. 

Please, make sure what is your target and carefully read what our team has suggested...

Best Regards,

Nam

0 Kudos
Reply

20,580 Views
liuxing_hu
Contributor III

Hello @namnguyenviet 

Thanks very much for your reply, I 'm not sure whether it is SWSL_responseError in my case when you say response error, so I confirm with you one more, now I understand what you means.

   1. we have Vector CANOE, do you know how to verify SWSL_responseError using this tool, we never do that.

   2. when set SWSL_responseError, I don't see the BIT-ERROR, INCONSISTENT-SYNC-FIELD-ERROR and IDENTIFIER-PARITY-ERROR, does lin stack driver support these 3 errors?

liuxing_hu_0-1640663103397.png

 

0 Kudos
Reply

20,561 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @liuxing_hu,

1. You can write a script then import to the Vector CANOE. You can refer to the Vector CANOE helper. Below is one of the syntax to create a bit inversed (as a result a bit error will be occurred):

canoe-script.png

Please ask VECTOR for further support.

2. INCONSISTENT-SYNC-FIELD-ERROR and IDENTIFIER-PARITY-ERROR are not reported by the stack, the frame is just ignored according to the LIN specification:

namnguyenviet_0-1640678115913.png

BIT-ERROR is supported.

Best Regards,

Nam

 

0 Kudos
Reply

20,692 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @liuxing_hu,

According to our LIN Stack developer, here is some information about handling the response error signal as below: 

  • Each slave node shall publish a one bit scalar signal, named response_error, to the master node in one of its transmitted unconditional frames.
  • The response_error signal is set by linstack whenever a frame (except for event triggered frame responses) that is transmitted or received by the slave node contains an error in the frame response.
  • The response_error signal shall be cleared when the unconditional frame containing the response_error signal is successfully transmitted.

You can refer to chapter 2.7 of LIN_Specification_Package_2.2A.pdf to more detail.

One example about the response error signal is handled on bus:

namnguyenviet_0-1640330019970.jpeg

Best Regards,

Nam

0 Kudos
Reply

20,685 Views
liuxing_hu
Contributor III

Helllo @namnguyenviet     

Thanks very much for your reply!  

 I don't really understand how the lin stack set respond error

Each slave node shall publish a one bit scalar signal, named response_error, to the master node in one of its transmitted unconditional frames.

I have 2 slave node, named SWSL and SWSR, in each slave node, the corresponding respond_err named SWSL_responseError and SWSR_responseError, is it ok? or the name must be response_error?

The response_error signal is set by linstack whenever a frame (except for event triggered frame responses) that is transmitted or received by the slave node contains an error in the frame response.

how does linkstack set response_error signal? does it need config previously ?

The response_error signal shall be cleared when the unconditional frame containing the response_error signal is successfully transmitted.

how and who clear the error signal?

 

liuxing_hu_0-1640338386231.png

i can see the respond error here, but I can't see the error status API by generate code, does anything wrong to my configuration?

0 Kudos
Reply

20,673 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @liuxing_hu 

I have 2 slave node, named SWSL and SWSR, in each slave node, the corresponding respond_err named SWSL_responseError and SWSR_responseError, is it ok? or the name must be response_error?

[NXP] It is ok.

how does linkstack set response_error signal? does it need config previously ?

[NXP] The response_error signal has been defined in the .ldf file. The configuration tool(S32DS) will base on it to generate the configuration file as follows.

namnguyenviet_0-1640343225746.png

 

Whenever a frame that is transmitted or received by the slave node contains an error in the frame response the linstack(not user) will call to lin_update_err_signal() function to set.

how and who clear the error signal?

[NXP] Normally, the response_error signal shall be cleared by linstack(not user)when the unconditional frame containing the response_error signal is successfully transmitted.

However, the user can also use the definitions in the config file to set/reset the response_error signal as follows

namnguyenviet_1-1640343225781.png

 

i can see the respond error here, but I can't see the error status API by generate code, does anything wrong to my configuration?

[NXP] If you don’t have any error in your .ldf file, the generated configuration files will contain the same that I showed above.

Best Regards,

Nam

0 Kudos
Reply

20,646 Views
liuxing_hu
Contributor III

our  configuration tool(S32DS) not generates the configuration file as follows.

liuxing_hu_0-1640585228865.png

we have and use this as follow

liuxing_hu_1-1640585251765.png

we want to know how to use this to set/reset the  response_error signal.

0 Kudos
Reply

20,633 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @liuxing_hu,

I'm afraid that you're having a misunderstanding. The reponse_error signal is handled internally by our LIN stack driver, and there is NO API to set/clear the reponse_error signal: The mechanism to set/clear the response_error signal is also handled internally and is explained in previous comment. In fact, we can "force" the stack to set the reponse_error bit each time the slave send the response, as below:

namnguyenviet_0-1640588139231.png

However, we don't recommend to do that, since it would break the whole stack: an response_error bit would be set even when there was no error, which is an abnormal behavior.

I have read again your question, and looks like you're asking for some functions which inject the fault into the bus, e.g. inject a bit error or a frame error,... Then unfortunately, our LIN stack doesn't provide any fault injection API. (The reponse_error bit only indicates whenever a fault was ALREADY occurred in the bus). You can use a test device (VECTOR Canoe, or NI LIN Interface,...) which support fault injection/bus disturbance. 

Best Regards,

Nam

0 Kudos
Reply

20,484 Views
liuxing_hu
Contributor III

How to set response error signal to 1 by using CANoe  to create checksum error , frame error and so on.

0 Kudos
Reply

20,479 Views
namnguyenviet
NXP Employee
NXP Employee

Hello @liuxing_hu,

We don't provide the CANoe tool, so we couldn't help you with this question. Please ask Vector to support this. 

Best Regards,

Nam

0 Kudos
Reply

20,410 Views
liuxing_hu
Contributor III

Hello ,

         We want to do for the ECC .How to do ECC config for RAMT ,Flash memory and so on.

0 Kudos
Reply

20,402 Views
namnguyenviet
NXP Employee
NXP Employee

Hello,

Please create a new thread with such a new question.

Best Regards,

Nam

0 Kudos
Reply

20,621 Views
liuxing_hu
Contributor III

Retell my question, now I want to call l_bool_wr_LI0_SWSL_responseError(1) when LINCurrentState->currentEventId is SYNC_ERROR,FRAME_ERROR  CHECKSUM_ERROR IDENTIFIER_PARITY or BIT_ERROR occure.

plan A:

We call this function l_bool_wr_LI0_SWSL_responseError(1)

 

liuxing_hu_1-1640603403295.png

Plan B:

We want to write new function about get current Event ID in Lin_Ipuart_driver.c called by  APPL Level.Like this

liuxing_hu_2-1640603821730.png

Another question,we have not found IDENTIFIER_PARITY_ERROR or BIT_ERROR,how to genarete the error or where to find the error

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1389461%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EResponse%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1389461%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ebased%20on%20s32k118%2C%20ide%20is%20s32ds%2C%20generate%20lin%20code%20by%20lin%20stack%3C%2FP%3E%3CP%3Eit's%20slave%20node%20from%20my%20side%2C%20the%20following%20is%20the%20requirements%20I%20need%20to%20achieve%2C%20I%20need%20to%20get%20these%20errors%20by%20APIs%2C%20and%20send%20errors%20to%20LIN%2C%20but%20I%20don't%20know%20how%20to%20get%20these%20errors%20or%20which%20API%20used%20by%20Lin%20stack%2C%20Could%20someone%20help%20me%3F%20thanks%20very%20much!%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_0-1639992390958.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_0-1639992390958.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F165686iAF07AF431689F985%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_0-1639992390958.png%22%20alt%3D%22liuxing_hu_0-1639992390958.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_1-1639992681314.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_1-1639992681314.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F165687i1A140793F05C9238%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_1-1639992681314.png%22%20alt%3D%22liuxing_hu_1-1639992681314.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_2-1639992709410.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_2-1639992709410.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F165688i09589FD23852F617%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_2-1639992709410.png%22%20alt%3D%22liuxing_hu_2-1639992709410.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2331453%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2331453%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20LIN%202.1%20We%20have%20response%20Error%20signal%20which%20is%20mapped%20to%20a%20Specific%20LIN%20signal%20in%20LDF%20but%20if%20we%20need%20to%20map%20the%20other%20LIN%20signal%20along%20with%20previous%20one%20what%20is%20the%20way%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1397169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1397169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EPlease%20create%20a%20new%20thread%20with%20such%20a%20new%20question.%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ENam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1396978%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1396978%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3BWe%20want%20to%20do%20for%20the%20ECC%20.How%20to%20do%20ECC%20config%20for%20RAMT%20%2CFlash%20memory%20and%20so%20on.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1395407%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1395407%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F180126%22%20target%3D%22_blank%22%3E%40liuxing_hu%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EWe%20don't%20provide%20the%20CANoe%20tool%2C%20so%20we%20couldn't%20help%20you%20with%20this%20question.%20Please%20ask%20Vector%20to%20support%20this.%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%2C%3C%2FP%3E%3CP%3ENam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1395404%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1395404%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHow%20to%20set%20response%20error%20signal%20to%201%20by%20using%20CANoe%26nbsp%3B%20to%20create%20checksum%20error%20%2C%20frame%20error%20and%20so%20on.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392568%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392568%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F180126%22%20target%3D%22_blank%22%3E%40liuxing_hu%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E1.%20You%20can%20write%20a%20script%20then%20import%20to%20the%20Vector%20CANOE.%20You%20can%20refer%20to%20the%20Vector%20CANOE%20helper.%20Below%20is%20one%20of%20the%20syntax%20to%20create%20a%20bit%20inversed%20(as%20a%20result%20a%20bit%20error%20will%20be%20occurred)%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22canoe-script.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22canoe-script.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166350iD2C0831CC543DE25%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22canoe-script.png%22%20alt%3D%22canoe-script.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EPlease%20ask%20VECTOR%20for%20further%20support.%3C%2FP%3E%0A%3CP%3E2.%26nbsp%3B%3CSPAN%3EINCONSISTENT-SYNC-FIELD-ERROR%20and%20IDENTIFIER-PARITY-ERROR%20are%20not%20reported%20by%20the%20stack%2C%20the%20frame%20is%20just%20ignored%20according%20to%20the%20LIN%20specification%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22namnguyenviet_0-1640678115913.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22namnguyenviet_0-1640678115913.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166351i797E448CBC6C57AB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22namnguyenviet_0-1640678115913.png%22%20alt%3D%22namnguyenviet_0-1640678115913.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBIT-ERROR%20is%20supported.%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ENam%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392416%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392416%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F83222%22%20target%3D%22_blank%22%3E%40namnguyenviet%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20very%20much%20for%20your%20reply%2C%20I%20'm%20not%20sure%20whether%20it%20is%26nbsp%3B%3CSPAN%3ESWSL_responseError%20in%20my%20case%20when%20you%20say%20response%20error%2C%20so%20I%20confirm%20with%20you%20one%20more%2C%20now%20I%20understand%20what%20you%20means.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B1.%20we%20have%26nbsp%3BVector%20CANOE%2C%20do%20you%20know%20how%20to%20verify%26nbsp%3BSWSL_responseError%20using%20this%20tool%2C%20we%20never%20do%20that.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B2.%20when%20set%26nbsp%3BSWSL_responseError%2C%20I%20don't%20see%20the%20BIT-ERROR%2C%20INCONSISTENT-SYNC-FIELD-ERROR%20and%20IDENTIFIER-PARITY-ERROR%2C%20does%20lin%20stack%20driver%20support%20these%203%20errors%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_0-1640663103397.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_0-1640663103397.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166331iD3C7601051962636%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_0-1640663103397.png%22%20alt%3D%22liuxing_hu_0-1640663103397.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392400%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392400%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F180126%22%20target%3D%22_blank%22%3E%40liuxing_hu%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESWSL_responseError%20will%20be%201%20if%20there%20is%20an%20error%20in%20the%20bus.%20So%20like%20my%20previous%20comment%2C%20you%20have%20to%20inject%20a%20fault%20in%20the%20bus%20if%20you%20want%20to%20verify%20the%26nbsp%3BSWSL_responseError%20bit%2C%20and%20you%20need%20a%20test%20device%2C%20e.g.%20Vector%20CANOE%20or%20NI%20LIN%20interface...%20Our%20LIN%20stack%20does%20%3CSTRONG%3ENOTHING%26nbsp%3B%3C%2FSTRONG%3Ewith%20fault%20injection%2F%20bus%20disturbance.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EPlease%2C%20make%20sure%20what%20is%20your%20target%20and%20carefully%20read%20what%20our%20team%20has%20suggested...%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBest%20Regards%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ENam%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392393%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392393%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EShow%20you%20our%20LIN%20ldf%20config%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_0-1640659146710.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_0-1640659146710.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166321i90716780DC6FEAD9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_0-1640659146710.png%22%20alt%3D%22liuxing_hu_0-1640659146710.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_1-1640659184775.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_1-1640659184775.png%22%20style%3D%22width%3A%20278px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166323i1723206694B35E37%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_1-1640659184775.png%22%20alt%3D%22liuxing_hu_1-1640659184775.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAs%20your%20mean%2Cwe%20dont%20not%20modify%20the%20code.If%20there%20are%20some%20error%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_2-1640659588039.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_2-1640659588039.png%22%20style%3D%22width%3A%20273px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166324iEE9CB2E540EB7ECD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_2-1640659588039.png%22%20alt%3D%22liuxing_hu_2-1640659588039.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20SWSL_responseError%20shall%20be%201.So%20how%20to%20create%20the%20error%20to%20make%26nbsp%3BSWSL_responseError%26nbsp%3B%20value%20as%201%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392255%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392255%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20don't%20get%20it...%20You%20want%20to%20change%20the%20stack%20code%2C%20don't%20you%3F%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%3E%0A%3CP%3E%3CSPAN%3Enow%20I%20want%20to%20call%20l_bool_wr_LI0_SWSL_responseError(1)%20when%20LINCurrentState-%26gt%3BcurrentEventId%20is%20SYNC_ERROR%2CFRAME_ERROR%26nbsp%3B%20CHECKSUM_ERROR%20IDENTIFIER_PARITY%20or%20BIT_ERROR%20occure.%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%3E%3CSPAN%3EWhy%20do%20you%20want%20to%20implement%20like%20this%3F%20Because%20set%20the%20reponse_error%20bit%20to%201%20is%20already%20handled%20in%20the%20stack%20code%2C%20so%20it's%20like%20re-inventing%20the%20wheel%20when%20doing%20like%20this%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBest%20Regards%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ENam%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392253%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392253%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22%22%3ERetell%20my%20question%2C%20now%20I%20want%20to%20call%20l_bool_wr_LI0_SWSL_responseError(1)%20when%20LINCurrentState-%26gt%3BcurrentEventId%20is%20SYNC_ERROR%2CFRAME_ERROR%26nbsp%3B%20CHECKSUM_ERROR%20IDENTIFIER_PARITY%20or%20BIT_ERROR%20occure.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3Eplan%20A%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3EWe%20call%20this%20function%20l_bool_wr_LI0_SWSL_responseError(1)%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_1-1640603403295.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_1-1640603403295.png%22%20style%3D%22width%3A%20357px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166288i3A1DF2DCAB6AC55B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_1-1640603403295.png%22%20alt%3D%22liuxing_hu_1-1640603403295.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EPlan%20B%3A%3C%2FP%3E%3CP%3EWe%20want%20to%20write%20new%20function%20about%20get%20current%20Event%20ID%20in%20Lin_Ipuart_driver.c%20called%20by%26nbsp%3B%20APPL%20Level.Like%20this%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_2-1640603821730.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_2-1640603821730.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166289iC2B5E40639D9BD0A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_2-1640603821730.png%22%20alt%3D%22liuxing_hu_2-1640603821730.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAnother%20question%2Cwe%20have%20not%20found%26nbsp%3B%3CSPAN%20class%3D%22%22%3EIDENTIFIER_PARITY_ERROR%20or%20BIT_ERROR%2Chow%20to%20genarete%20the%20error%20or%20where%20to%20find%20the%20error%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F180126%22%20target%3D%22_blank%22%3E%40liuxing_hu%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EI'm%20afraid%20that%20you're%20having%20a%20misunderstanding.%20The%20reponse_error%20signal%20is%20handled%20internally%20by%20our%20LIN%20stack%20driver%2C%20and%20there%20is%20NO%20API%20to%20set%2Fclear%20the%20reponse_error%20signal%3A%20The%20mechanism%20to%20set%2Fclear%20the%20response_error%20signal%20is%20also%20handled%20internally%20and%20is%20explained%20in%20previous%20comment.%20In%20fact%2C%20we%20can%20%22force%22%20the%20stack%20to%20set%20the%20reponse_error%20bit%20each%20time%20the%20slave%20send%20the%20response%2C%20as%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22namnguyenviet_0-1640588139231.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22namnguyenviet_0-1640588139231.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166267i53A4E717EF9A1AD6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22namnguyenviet_0-1640588139231.png%22%20alt%3D%22namnguyenviet_0-1640588139231.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHowever%2C%20we%20don't%20recommend%20to%20do%20that%2C%20since%20it%20would%20break%20the%20whole%20stack%3A%20an%20response_error%20bit%20would%20be%20set%20even%20when%20there%20was%20no%20error%2C%20which%20is%20an%20abnormal%20behavior.%3C%2FP%3E%0A%3CP%3EI%20have%20read%20again%20your%20question%2C%20and%20looks%20like%20you're%20asking%20for%20some%20functions%20which%20inject%20the%20fault%20into%20the%20bus%2C%20e.g.%20inject%20a%20bit%20error%20or%20a%20frame%20error%2C...%20Then%20unfortunately%2C%20our%20LIN%20stack%20doesn't%20provide%20any%20fault%20injection%20API.%20(The%20reponse_error%20bit%20only%20indicates%20%3CSTRONG%3Ewhenever%20a%20fault%20was%26nbsp%3BALREADY%20occurred%20in%20the%20bus%3C%2FSTRONG%3E).%20You%20can%20use%20a%20test%20device%20(VECTOR%20Canoe%2C%20or%20NI%20LIN%20Interface%2C...)%20which%20support%20fault%20injection%2Fbus%20disturbance.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ENam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1392087%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1392087%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eour%26nbsp%3B%3CSPAN%3E%26nbsp%3Bconfiguration%20tool(S32DS)%20not%20generates%20the%20configuration%20file%20as%20follows.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_0-1640585228865.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_0-1640585228865.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166255i7A46DC6F44891553%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_0-1640585228865.png%22%20alt%3D%22liuxing_hu_0-1640585228865.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ewe%20have%20and%20use%20this%20as%20follow%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_1-1640585251765.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_1-1640585251765.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166256i78F504CAB783D0E7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_1-1640585251765.png%22%20alt%3D%22liuxing_hu_1-1640585251765.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ewe%20want%20to%20know%20how%20to%20use%20this%20to%20set%2Freset%20the%26nbsp%3B%3CSPAN%3E%26nbsp%3Bresponse_error%20signal.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1391820%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1391820%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F180126%22%20target%3D%22_blank%22%3E%40liuxing_hu%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EI%20have%202%20slave%20node%2C%20named%20SWSL%20and%20SWSR%2C%20in%20each%20slave%20node%2C%20the%20corresponding%20respond_err%20named%26nbsp%3BSWSL_responseError%20and%26nbsp%3BSWSR_responseError%2C%20is%20it%20ok%3F%20or%20the%20name%20must%20be%20response_error%3F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%5BNXP%5D%20It%20is%20ok.%3C%2FP%3E%0A%3CP%3E%3CEM%3Ehow%20does%20linkstack%20set%20response_error%20signal%3F%20does%20it%20need%20config%20previously%20%3F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%5BNXP%5D%20The%20response_error%20signal%20has%20been%20defined%20in%20the%20.ldf%20file.%20The%20configuration%20tool(S32DS)%20will%20base%20on%20it%20to%20generate%20the%20configuration%20file%20as%20follows.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22namnguyenviet_0-1640343225746.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22namnguyenviet_0-1640343225746.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166206iA6F66F09B0E06BDD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22namnguyenviet_0-1640343225746.png%22%20alt%3D%22namnguyenviet_0-1640343225746.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EWhenever%20a%20frame%20that%20is%20transmitted%20or%20received%20by%20the%20slave%20node%20contains%20an%20error%20in%20the%20frame%20response%20the%20linstack(not%20user)%20will%20call%20to%20lin_update_err_signal()%20function%20to%20set.%3C%2FP%3E%0A%3CP%3E%3CEM%3Ehow%20and%20who%20clear%20the%20error%20signal%3F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%5BNXP%5D%20Normally%2C%20the%20response_error%20signal%20shall%20be%20cleared%20by%20linstack(not%20user)when%20the%20unconditional%20frame%20containing%20the%20response_error%20signal%20is%20successfully%20transmitted.%3C%2FP%3E%0A%3CP%3EHowever%2C%20the%20user%20can%20also%20use%20the%20definitions%20in%20the%20config%20file%20to%20set%2Freset%20the%20response_error%20signal%20as%20follows%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22namnguyenviet_1-1640343225781.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22namnguyenviet_1-1640343225781.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166207i51FBAE958BBFE2D6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22namnguyenviet_1-1640343225781.png%22%20alt%3D%22namnguyenviet_1-1640343225781.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CEM%3Ei%20can%20see%20the%20respond%20error%20here%2C%20but%20I%20can't%20see%20the%20error%20status%20API%20by%20generate%20code%2C%20does%20anything%20wrong%20to%20my%20configuration%3F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%5BNXP%5D%20If%20you%20don%E2%80%99t%20have%20any%20error%20in%20your%20.ldf%20file%2C%20the%20generated%20configuration%20files%20will%20contain%20the%20same%20that%20I%20showed%20above.%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ENam%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1391792%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1391792%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EHelllo%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F83222%22%20target%3D%22_blank%22%3E%40namnguyenviet%3C%2FA%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%20very%20much%20for%20your%20reply!%20%26nbsp%3B%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3BI%20don't%20really%20understand%20how%20the%20lin%20stack%20set%20respond%20error%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EEach%20slave%20node%20shall%20publish%20a%20one%20bit%20scalar%20signal%2C%20named%20response_error%2C%20to%20the%20master%20node%20in%20one%20of%20its%20transmitted%20unconditional%20frames.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%3CSPAN%3EI%20have%202%20slave%20node%2C%20named%20SWSL%20and%20SWSR%2C%20in%20each%20slave%20node%2C%20the%20corresponding%20respond_err%20named%26nbsp%3BSWSL_responseError%20and%26nbsp%3BSWSR_responseError%2C%20is%20it%20ok%3F%20or%20the%20name%20must%20be%20response_error%3F%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20response_error%20signal%20is%20set%20by%20linstack%20whenever%20a%20frame%20(except%20for%20event%20triggered%20frame%20responses)%20that%20is%20transmitted%20or%20received%20by%20the%20slave%20node%20contains%20an%20error%20in%20the%20frame%20response.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%3CSPAN%3Ehow%20does%20linkstack%20set%20response_error%20signal%3F%20does%20it%20need%20config%20previously%20%3F%20%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20response_error%20signal%20shall%20be%20cleared%20when%20the%20unconditional%20frame%20containing%20the%20response_error%20signal%20is%20successfully%20transmitted.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%230000FF%22%3E%3CSPAN%3Ehow%20and%20who%20clear%20the%20error%20signal%3F%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22liuxing_hu_0-1640338386231.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22liuxing_hu_0-1640338386231.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166203i9B1FDECC0B8B7E89%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22liuxing_hu_0-1640338386231.png%22%20alt%3D%22liuxing_hu_0-1640338386231.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ei%20can%20see%20the%20respond%20error%20here%2C%20but%20I%20can't%20see%20the%20error%20status%20API%20by%20generate%20code%2C%20does%20anything%20wrong%20to%20my%20configuration%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1391710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Response%20error%20for%20LIN%20communication%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1391710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F180126%22%20target%3D%22_blank%22%3E%40liuxing_hu%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EAccording%20to%20our%20LIN%20Stack%20developer%2C%20here%20is%20some%20information%20about%20handling%20the%20response%20error%20signal%20as%20below%3A%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EEach%20slave%20node%20shall%20publish%20a%20one%20bit%20scalar%20signal%2C%20named%20response_error%2C%20to%20the%20master%20node%20in%20one%20of%20its%20transmitted%20unconditional%20frames.%3C%2FLI%3E%0A%3CLI%3EThe%20response_error%20signal%20is%20set%20by%20linstack%20whenever%20a%20frame%20(except%20for%20event%20triggered%20frame%20responses)%20that%20is%20transmitted%20or%20received%20by%20the%20slave%20node%20contains%20an%20error%20in%20the%20frame%20response.%3C%2FLI%3E%0A%3CLI%3EThe%20response_error%20signal%20shall%20be%20cleared%20when%20the%20unconditional%20frame%20containing%20the%20response_error%20signal%20is%20successfully%20transmitted.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EYou%20can%20refer%20to%20chapter%202.7%20of%20LIN_Specification_Package_2.2A.pdf%20to%20more%20detail.%3C%2FP%3E%0A%3CP%3EOne%20example%20about%20the%20response%20error%20signal%20is%20handled%20on%20bus%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22namnguyenviet_0-1640330019970.jpeg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22namnguyenviet_0-1640330019970.jpeg%22%20style%3D%22width%3A%20822px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F166188iAEE6BB79758AD3CB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22namnguyenviet_0-1640330019970.jpeg%22%20alt%3D%22namnguyenviet_0-1640330019970.jpeg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%3C%2FP%3E%0A%3CP%3ENam%3C%2FP%3E%3C%2FLINGO-BODY%3E