<?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>S32KのトピックRe: How to configure LIN Stack for a Firmware which shall support more then one slaves on Bus?</title>
    <link>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789896#M2592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the steps I posted from LIN Stack team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, the stack doesn’t support this feature. But with S32K144 we can work around to have one slave firmware for 3 slaves and during run time assign them IDs and signal names. Because the current pex can be able to generate maximum(3) interface for S32K144 which depends on the number of LPUART of the chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the way to workaround 3 slaves&amp;nbsp;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;using UART2 &lt;/SPAN&gt;with one firmware.&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example to switch 3 interfaces by a button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN style="color: #000000;"&gt;Step1: create pex as attached file(pex) and generate configuration for LinStack. You can see that Device of LI1 and LI2 is LPUART0 and LPUART1 but we will ignore it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN style="color: #000000;"&gt;Step2: in file lin_cfg.c:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65743i3C5C11F669E2C59B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step3: use these code in Main function to switch nodes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65744iC586E3E39A166FAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2018 10:56:57 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2018-07-18T10:56:57Z</dc:date>
    <item>
      <title>How to configure LIN Stack for a Firmware which shall support more then one slaves on Bus?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789891#M2587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 4 nearly identical slaves on the Bus, which shall be supported by one firmware. Depending on runtime configuration this firmware shall act as the choosen node.&lt;/P&gt;&lt;P&gt;With processor expert I found only the way to generate code for one slave.&lt;/P&gt;&lt;P&gt;Is it possible to configure the&amp;nbsp;LIN&amp;nbsp;stack&amp;nbsp; to support more then one slaves?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2018 05:07:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789891#M2587</guid>
      <dc:creator>albrechtmichael</dc:creator>
      <dc:date>2018-07-07T05:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure LIN Stack for a Firmware which shall support more then one slaves on Bus?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789892#M2588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is your MCU?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 10:21:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789892#M2588</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-07-10T10:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure LIN Stack for a Firmware which shall support more then one slaves on Bus?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789893#M2589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My MCU is S32K144.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 08:11:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789893#M2589</guid>
      <dc:creator>albrechtmichael</dc:creator>
      <dc:date>2018-07-11T08:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure LIN Stack for a Firmware which shall support more then one slaves on Bus?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789894#M2590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Albrecht,&lt;/P&gt;&lt;P&gt;Attached are steps to have two interfaces on one MCU.&lt;/P&gt;&lt;P&gt;Each interface needs one UART, so we can have 3 interfaces on&amp;nbsp;S32K144.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 07:38:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789894#M2590</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-07-17T07:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure LIN Stack for a Firmware which shall support more then one slaves on Bus?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789895#M2591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the effort.&lt;/P&gt;&lt;P&gt;But sorry, perhaps we have a misunderstanding here. I try to explain again:&lt;/P&gt;&lt;P&gt;I write a firmware for a LIN slave.&lt;/P&gt;&lt;P&gt;This firmware shall be used for 4 ECU's on one bus in one vehicle. The LIN Master is provided by a different supplier..&amp;nbsp;&lt;/P&gt;&lt;P&gt;This firmware uses the NXP Stack.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the LDF there are four nodes, each having a similar interface but with different frame ID's and signal names.&lt;/P&gt;&lt;P&gt;The Firmware shall configure itself at boot time, to be one of the nodes depending on e.g. I/O Pin configuration. So I avoid to have four firmware versions with 4 configured stacks, but one.&lt;/P&gt;&lt;P&gt;The problem is, that I can do the configuration of the NXP Stack for a special node only at compile time.&lt;/P&gt;&lt;P&gt;I am looking for a way to do this at run time/boot time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 09:34:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789895#M2591</guid>
      <dc:creator>albrechtmichael</dc:creator>
      <dc:date>2018-07-17T09:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure LIN Stack for a Firmware which shall support more then one slaves on Bus?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789896#M2592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the steps I posted from LIN Stack team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, the stack doesn’t support this feature. But with S32K144 we can work around to have one slave firmware for 3 slaves and during run time assign them IDs and signal names. Because the current pex can be able to generate maximum(3) interface for S32K144 which depends on the number of LPUART of the chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the way to workaround 3 slaves&amp;nbsp;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;using UART2 &lt;/SPAN&gt;with one firmware.&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example to switch 3 interfaces by a button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN style="color: #000000;"&gt;Step1: create pex as attached file(pex) and generate configuration for LinStack. You can see that Device of LI1 and LI2 is LPUART0 and LPUART1 but we will ignore it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;SPAN style="color: #000000;"&gt;Step2: in file lin_cfg.c:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65743i3C5C11F669E2C59B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step3: use these code in Main function to switch nodes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/65744iC586E3E39A166FAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 10:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789896#M2592</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-07-18T10:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure LIN Stack for a Firmware which shall support more then one slaves on Bus?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789897#M2593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the idea. I'll have a look into this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your effort! :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 08:36:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789897#M2593</guid>
      <dc:creator>albrechtmichael</dc:creator>
      <dc:date>2018-07-20T08:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure LIN Stack for a Firmware which shall support more then one slaves on Bus?</title>
      <link>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789898#M2594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your doing Good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know how do you handle the multi slave concept ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 19:11:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-configure-LIN-Stack-for-a-Firmware-which-shall-support/m-p/789898#M2594</guid>
      <dc:creator>mohdtajbaba</dc:creator>
      <dc:date>2020-04-07T19:11:35Z</dc:date>
    </item>
  </channel>
</rss>

