<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem from LIN_Driver_4.5.1 to LIN_Driver_4.5.9 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/890225#M15024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;P&gt;The driver package in the FSL_LIN_2.X_STACK.zip downloaded from the official website has been updated to FSL_LIN_2.x_STACK_4.5.9.exe.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;Compared with the code generated by ncf_tool, it is true that the bit_offset has been updated and that there have been changes in the diagnostic section.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CatchC841(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80864iAA2115E2DC80E812/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatchC841(05-10-(05-13-17-48-36).jpg" alt="CatchC841(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch03E1(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80865i791EA5B1865C2EB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch03E1(05-10-(05-13-17-48-36).jpg" alt="Catch03E1(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;Compared to the driver source code, a lot of MCU macros have been added, the "{" position has been changed, and the diagnostic section has been modified a lot, as well as other changes. However, I did not see the relevant instructions for the specific change of curriculum vitae.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;At present, there are the following problems:&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;SPAN style="font-size: 30px;"&gt;&lt;STRONG&gt;Question 1:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;The LIN_Driver is replaced by 4.5.1 with 4.5.9 and lin_cfg.c lin_cfg.h is also replaced, which does not affect the signal reading and writing of unconditional frames, but the 3C diagnostic read service is unable to respond.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch5269(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80866i09CD43FD5A9C3128/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch5269(05-10-(05-13-17-48-36).jpg" alt="Catch5269(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CatchF078(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80595i2C89483F2EE5249D/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatchF078(05-10-(05-13-17-48-36).jpg" alt="CatchF078(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;Here is the diagnostic code for reading multiple frames on our side: please take a look at how to modify the code when using LIN_Driver_4.5.9.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;const byte sw_number_date_identifier[4] =&amp;nbsp; &lt;SPAN class=""&gt;&lt;/SPAN&gt;{0x20, 0x19, 0x03,0x16};&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;const byte software_version[3] = &lt;SPAN class=""&gt;&lt;/SPAN&gt;{'V', '0', '1'};&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;#define ECU_SW_NUMBER_DATE_IDENTIFIER &lt;SPAN class=""&gt;&lt;/SPAN&gt;0xf188U&lt;/DIV&gt;&lt;DIV&gt;#define DATA_ID_SOFTWARE_VERSION &lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10.5pt;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10.5pt;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; font-size: 10.5pt;"&gt;0xf212U&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;STRONG&gt;if(diag_get_flag(DIAGSRV_READ_DATA_BY_IDENTIFIER_ORDER) != FALSE)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;STRONG&gt;diag_clear_flag(DIAGSRV_READ_DATA_BY_IDENTIFIER_ORDER);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline; "&gt;ld_receive_message(&amp;amp;pdu_length, receive_message_buf);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;data_id = ((l_u16)receive_message_buf[1] &amp;lt;&amp;lt; 8) | receive_message_buf[2];&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;switch(data_id)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;case ECU_SW_NUMBER_DATE_IDENTIFIER:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;buf_size = sizeof(sw_number_date_identifier);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[0] = 0x62U; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[1] = data_id &amp;gt;&amp;gt; 8; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[2] = (uint8_t)data_id; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;memory_copys(&amp;amp;send_message_buf[3],&amp;amp;sw_number_date_identifier[0],buf_size);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline; "&gt;ld_send_message((3+buf_size), send_message_buf);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;break;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;case DATA_ID_SOFTWARE_VERSION:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;buf_size = sizeof(software_version);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[0] = 0x62U; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[1] = data_id &amp;gt;&amp;gt; 8; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[2] = (uint8_t)data_id; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;memory_copys(&amp;amp;send_message_buf[3],&amp;amp;software_version[0],buf_size);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline; "&gt;ld_send_message((3+buf_size), send_message_buf);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;break;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 30px;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;Question 2:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;The test found that drivers 4.5.1 and 4.5.9 had the same problems:&lt;/DIV&gt;&lt;DIV&gt;When a signal is defined, the start bit and the stop bit span two bytes, l_u8_read () comes out correctly. For example, there is a signal TCU3_St_DriveMode, with a starting bit of 23 and a total of four bit,. I can only take out the relevant four bits from the two bytes of the lin_pFrameBuf myself to get it.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;//LIN_TCU3_St_DriveMode = (u8)l_u8_rd(TCU3_St_DriveMode); &lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; font-size: 10.5pt;"&gt;/*由于跨字节了，读不正确，4.5.9与4.5.1都不正确*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;data1 = lin_pFrameBuf[5];&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;data2 = lin_pFrameBuf[6]; &lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;LIN_TCU3_St_DriveMode = ((data1&amp;nbsp;&amp;gt;&amp;gt;7&amp;amp;0x01)|((data2&amp;amp;0x07)&amp;lt;&amp;lt;1));&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;There is a signal definition for a project for the time being, which is why the problem has been discovered.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 30px;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;Question 3:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;There is now a project that needs to be configured into a two-way LIN slave node mode. You can generate code through the ncf configuration tool, and you can see in the lin_cfg file that there is a definition defined as _ SLAVE_. in the MASTER_MODE,lin_ifc_configuration Then there is no problem with the use of the two LIN and the reading and writing of unconditional frames. But I now need to do LIN slave node conformance testing.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CatchFC8B(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80599iA796EA48E96FBE20/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatchFC8B(05-10-(05-13-17-48-36).jpg" alt="CatchFC8B(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch3E30(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80600iB49F2048A01C1329/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch3E30(05-10-(05-13-17-48-36).jpg" alt="Catch3E30(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;When testing and debug from the node consistency test script provided by the CANoe, the single-chip microcomputer will prompt the "No source available" as long as any one is executed,&lt;/DIV&gt;&lt;DIV&gt;Then I also tried, only using IG to simulate sending is also No source available.&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch11A0(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80601iDF07FB79EB028933/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch11A0(05-10-(05-13-17-48-36).jpg" alt="Catch11A0(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CatchA3A5(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80602i8BB6E242A92FEE1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatchA3A5(05-10-(05-13-17-48-36).jpg" alt="CatchA3A5(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;I've tried with both 4.5.1 and 4.5.9 drivers, and LIN, configured to two slave nodes is No source available, but there is no No source available problem with LIN, configured all the way from the node. And CANoe can pass most of the test cases in the conformance test script of the node.&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="background-color: transparent; font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;The problem will be more serious because the single-chip microcomputer had an unexpected "crash" and finally was reset by the watchdog to resume normal unconditional frame communication.&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch6858(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80603i6E850B67041CF08F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch6858(05-10-(05-13-17-48-36).jpg" alt="Catch6858(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;So when you recognize the configuration of the two-way slave node LIN, are these slave node conformance testing related diagnostic services already supported?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 May 2019 10:05:25 GMT</pubDate>
    <dc:creator>simonliu</dc:creator>
    <dc:date>2019-05-13T10:05:25Z</dc:date>
    <item>
      <title>Problem from LIN_Driver_4.5.1 to LIN_Driver_4.5.9</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/890225#M15024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;P&gt;The driver package in the FSL_LIN_2.X_STACK.zip downloaded from the official website has been updated to FSL_LIN_2.x_STACK_4.5.9.exe.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;Compared with the code generated by ncf_tool, it is true that the bit_offset has been updated and that there have been changes in the diagnostic section.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CatchC841(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80864iAA2115E2DC80E812/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatchC841(05-10-(05-13-17-48-36).jpg" alt="CatchC841(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch03E1(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80865i791EA5B1865C2EB9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch03E1(05-10-(05-13-17-48-36).jpg" alt="Catch03E1(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;Compared to the driver source code, a lot of MCU macros have been added, the "{" position has been changed, and the diagnostic section has been modified a lot, as well as other changes. However, I did not see the relevant instructions for the specific change of curriculum vitae.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;At present, there are the following problems:&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;SPAN style="font-size: 30px;"&gt;&lt;STRONG&gt;Question 1:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;The LIN_Driver is replaced by 4.5.1 with 4.5.9 and lin_cfg.c lin_cfg.h is also replaced, which does not affect the signal reading and writing of unconditional frames, but the 3C diagnostic read service is unable to respond.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch5269(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80866i09CD43FD5A9C3128/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch5269(05-10-(05-13-17-48-36).jpg" alt="Catch5269(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CatchF078(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80595i2C89483F2EE5249D/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatchF078(05-10-(05-13-17-48-36).jpg" alt="CatchF078(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;Here is the diagnostic code for reading multiple frames on our side: please take a look at how to modify the code when using LIN_Driver_4.5.9.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;const byte sw_number_date_identifier[4] =&amp;nbsp; &lt;SPAN class=""&gt;&lt;/SPAN&gt;{0x20, 0x19, 0x03,0x16};&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;const byte software_version[3] = &lt;SPAN class=""&gt;&lt;/SPAN&gt;{'V', '0', '1'};&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;#define ECU_SW_NUMBER_DATE_IDENTIFIER &lt;SPAN class=""&gt;&lt;/SPAN&gt;0xf188U&lt;/DIV&gt;&lt;DIV&gt;#define DATA_ID_SOFTWARE_VERSION &lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10.5pt;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10.5pt;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; font-size: 10.5pt;"&gt;0xf212U&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;STRONG&gt;if(diag_get_flag(DIAGSRV_READ_DATA_BY_IDENTIFIER_ORDER) != FALSE)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;STRONG&gt;diag_clear_flag(DIAGSRV_READ_DATA_BY_IDENTIFIER_ORDER);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline; "&gt;ld_receive_message(&amp;amp;pdu_length, receive_message_buf);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;data_id = ((l_u16)receive_message_buf[1] &amp;lt;&amp;lt; 8) | receive_message_buf[2];&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;switch(data_id)&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;{&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;case ECU_SW_NUMBER_DATE_IDENTIFIER:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;buf_size = sizeof(sw_number_date_identifier);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[0] = 0x62U; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[1] = data_id &amp;gt;&amp;gt; 8; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[2] = (uint8_t)data_id; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;memory_copys(&amp;amp;send_message_buf[3],&amp;amp;sw_number_date_identifier[0],buf_size);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline; "&gt;ld_send_message((3+buf_size), send_message_buf);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;break;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;case DATA_ID_SOFTWARE_VERSION:&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;buf_size = sizeof(software_version);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[0] = 0x62U; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[1] = data_id &amp;gt;&amp;gt; 8; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;send_message_buf[2] = (uint8_t)data_id; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;memory_copys(&amp;amp;send_message_buf[3],&amp;amp;software_version[0],buf_size);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline; "&gt;ld_send_message((3+buf_size), send_message_buf);&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;break;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;}&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 30px;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;Question 2:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;The test found that drivers 4.5.1 and 4.5.9 had the same problems:&lt;/DIV&gt;&lt;DIV&gt;When a signal is defined, the start bit and the stop bit span two bytes, l_u8_read () comes out correctly. For example, there is a signal TCU3_St_DriveMode, with a starting bit of 23 and a total of four bit,. I can only take out the relevant four bits from the two bytes of the lin_pFrameBuf myself to get it.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;//LIN_TCU3_St_DriveMode = (u8)l_u8_rd(TCU3_St_DriveMode); &lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; font-size: 10.5pt;"&gt;/*由于跨字节了，读不正确，4.5.9与4.5.1都不正确*/&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;data1 = lin_pFrameBuf[5];&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;data2 = lin_pFrameBuf[6]; &lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;LIN_TCU3_St_DriveMode = ((data1&amp;nbsp;&amp;gt;&amp;gt;7&amp;amp;0x01)|((data2&amp;amp;0x07)&amp;lt;&amp;lt;1));&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;There is a signal definition for a project for the time being, which is why the problem has been discovered.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 30px;"&gt;&lt;STRONG style="background-color: #ffffff;"&gt;Question 3:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;There is now a project that needs to be configured into a two-way LIN slave node mode. You can generate code through the ncf configuration tool, and you can see in the lin_cfg file that there is a definition defined as _ SLAVE_. in the MASTER_MODE,lin_ifc_configuration Then there is no problem with the use of the two LIN and the reading and writing of unconditional frames. But I now need to do LIN slave node conformance testing.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CatchFC8B(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80599iA796EA48E96FBE20/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatchFC8B(05-10-(05-13-17-48-36).jpg" alt="CatchFC8B(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch3E30(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80600iB49F2048A01C1329/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch3E30(05-10-(05-13-17-48-36).jpg" alt="Catch3E30(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;When testing and debug from the node consistency test script provided by the CANoe, the single-chip microcomputer will prompt the "No source available" as long as any one is executed,&lt;/DIV&gt;&lt;DIV&gt;Then I also tried, only using IG to simulate sending is also No source available.&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch11A0(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80601iDF07FB79EB028933/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch11A0(05-10-(05-13-17-48-36).jpg" alt="Catch11A0(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CatchA3A5(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80602i8BB6E242A92FEE1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatchA3A5(05-10-(05-13-17-48-36).jpg" alt="CatchA3A5(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;I've tried with both 4.5.1 and 4.5.9 drivers, and LIN, configured to two slave nodes is No source available, but there is no No source available problem with LIN, configured all the way from the node. And CANoe can pass most of the test cases in the conformance test script of the node.&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="background-color: transparent; font-size: 10.5pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;The problem will be more serious because the single-chip microcomputer had an unexpected "crash" and finally was reset by the watchdog to resume normal unconditional frame communication.&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Catch6858(05-10-(05-13-17-48-36).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80603i6E850B67041CF08F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Catch6858(05-10-(05-13-17-48-36).jpg" alt="Catch6858(05-10-(05-13-17-48-36).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;So when you recognize the configuration of the two-way slave node LIN, are these slave node conformance testing related diagnostic services already supported?&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 10:05:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/890225#M15024</guid>
      <dc:creator>simonliu</dc:creator>
      <dc:date>2019-05-13T10:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem from LIN_Driver_4.5.1 to LIN_Driver_4.5.9</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/890226#M15025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your comments!&lt;/P&gt;&lt;P&gt;There is actually a new version of the LIN stack. Could you please try using v4.6.1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the link: &lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW-LIN2X-J2602-D"&gt;https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW-LIN2X-J2602-D&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 20:31:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/890226#M15025</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-05-15T20:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem from LIN_Driver_4.5.1 to LIN_Driver_4.5.9</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/890227#M15026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I use the new&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;version of the LIN stack and have sloved&amp;nbsp;&lt;/SPAN&gt;some of the problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; But for the question3, I need config 2ch LIN slave for application. I&amp;nbsp;try to&amp;nbsp;use NCF config the driver and&amp;nbsp;there is no problem with the use of the two LIN and the reading and writing of unconditional frames.But I cannot pass the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Conformance Test of LIN.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; Here is my config for&amp;nbsp;diagnostic service:&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;/****************************Support SID Initialization ***********************/&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;const l_u8 KX11_IHU_lin_diag_services_supported[_KX11_IHU_DIAG_NUMBER_OF_SERVICES_] = {0xB2,0xB7,0x22,0x2E,0xB3,0xB0,0xB4,0xB6};&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;l_u8 KX11_IHU_lin_diag_services_flag[_KX11_IHU_DIAG_NUMBER_OF_SERVICES_] = {0,0,0,0,0,0,0,0};&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;const l_u8 KX11_CCM_lin_diag_services_supported[_KX11_CCM_DIAG_NUMBER_OF_SERVICES_] = {0xB2,0xB7,0x22,0x2E,0xB3,0xB6,0xB4,0xB0};&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;l_u8 KX11_CCM_lin_diag_services_flag[_KX11_CCM_DIAG_NUMBER_OF_SERVICES_] = {0,0,0,0,0,0,0,0};&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp;The 0x22 service can get response bue&amp;nbsp; the 0xB2/0xB7 can not get response.&lt;span class="lia-inline-image-display-wrapper" image-alt="CatchA939(05-17-09-30-20).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81401i20FCE125FA16F3C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatchA939(05-17-09-30-20).jpg" alt="CatchA939(05-17-09-30-20).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CatchA939(05-17-09-30-20).jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81402i6930D73F92155E61/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatchA939(05-17-09-30-20).jpg" alt="CatchA939(05-17-09-30-20).jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&amp;nbsp; &amp;nbsp;I want to know the new version of the lin stack for 4.6.1 can support config 2ch LIN salve at same project and the diagnostic service can work for conformance test of LIN.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2019 02:03:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/890227#M15026</guid>
      <dc:creator>simonliu</dc:creator>
      <dc:date>2019-05-17T02:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem from LIN_Driver_4.5.1 to LIN_Driver_4.5.9</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/890228#M15027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The LIN Stack package is compliant to LIN 2.0 and LIN 2.1 / 2.2a specifications. You can find this statement on the release notes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I known limitation is that conformance test coverage 99.06%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 16:22:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/890228#M15027</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2019-05-21T16:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem from LIN_Driver_4.5.1 to LIN_Driver_4.5.9</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/1242248#M15526</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Felipe，&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the course of use, we found a problem with the protocol stack.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;typedef union {&lt;BR /&gt;l_u8 byte; /**&amp;lt; a data byte refer to 8 data bits follow */&lt;BR /&gt;struct&lt;BR /&gt;{&lt;BR /&gt;/* LIN 2.1 */&lt;BR /&gt;l_u8 successful_transfer:1; /**&amp;lt; Transfer flag LIN 2.1*/&lt;BR /&gt;l_u8 error_in_response:1; /**&amp;lt; Error response LIN 2.1*/&lt;BR /&gt;&lt;STRONG&gt;l_u8 bus_activity;&lt;/STRONG&gt; /**&amp;lt; Bus activity timeout LIN 2.1*/&lt;BR /&gt;/* J2602 */&lt;BR /&gt;l_u8 framing_error:1; /**&amp;lt; frame error flag J2602*/&lt;BR /&gt;l_u8 checksum_error:1; /**&amp;lt; checksum error flag */&lt;BR /&gt;l_u8 readback_error:1; /**&amp;lt; readback error in J2602 to be called Data Error */&lt;BR /&gt;l_u8 parity_error:1; /**&amp;lt; frame error flag */&lt;BR /&gt;l_u8 reset:1; /**&amp;lt; reset flag (not implemented) */&lt;BR /&gt;} bit;&lt;BR /&gt;} lin_status;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;&lt;STRONG&gt;bus_activity&lt;/STRONG&gt; define is error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It shuold be：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;l_u8 bus_activity ：1;&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;/* Lin status bit mask */&lt;BR /&gt;#define LIN_STA_SUCC_TRANSFER 1 /**&amp;lt; LIN status bit mask: success transfer */&lt;BR /&gt;#define LIN_STA_ERROR_RESP 2 /**&amp;lt; LIN status bit mask: error in response */&lt;BR /&gt;#define LIN_STA_BUS_ACTIVITY 4 /**&amp;lt; LIN status bit mask: bus activity */&lt;BR /&gt;#define LIN_STA_FRAME_ERR 8 /**&amp;lt; LIN status bit mask: frame error */&lt;BR /&gt;#define LIN_STA_CHECKSUM_ERR 16 /**&amp;lt; LIN status bit mask: checksum error */&lt;BR /&gt;#define LIN_STA_READBACK_ERR 32 /**&amp;lt; LIN status bit mask: readback error */&lt;BR /&gt;#define LIN_STA_PARITY_ERR 64 /**&amp;lt; LIN status bit mask: parity error */&lt;BR /&gt;#define LIN_STA_RESET 128 /**&amp;lt; LIN status bit mask: reset */&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 06:04:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Problem-from-LIN-Driver-4-5-1-to-LIN-Driver-4-5-9/m-p/1242248#M15526</guid>
      <dc:creator>simonliu</dc:creator>
      <dc:date>2021-03-09T06:04:17Z</dc:date>
    </item>
  </channel>
</rss>

