<?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 PORT configuration in MCAL in S32K</title>
    <link>https://community.nxp.com/t5/S32K/PORT-configuration-in-MCAL/m-p/1160034#M8313</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am using Tresos 24.0.1 and&amp;nbsp;&lt;SPAN&gt;S32K14X_MCAL_4.3_RTM_P1_HF2_1.0.1 for MCAL configurations&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;We will be using two different configurations of particular microcontroller pin for two different modes in same project.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Our approach was to create two container for two modes in PORT Module in EB Tresos project but we are not able to do the same as its showing error.(error: We cant configure one pin twice)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can somebody help me to achieve different configuration of same pin in same project?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:32:17 GMT</pubDate>
    <dc:creator>shudhamatinarha</dc:creator>
    <dc:date>2020-09-28T10:32:17Z</dc:date>
    <item>
      <title>PORT configuration in MCAL</title>
      <link>https://community.nxp.com/t5/S32K/PORT-configuration-in-MCAL/m-p/1160034#M8313</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am using Tresos 24.0.1 and&amp;nbsp;&lt;SPAN&gt;S32K14X_MCAL_4.3_RTM_P1_HF2_1.0.1 for MCAL configurations&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;We will be using two different configurations of particular microcontroller pin for two different modes in same project.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Our approach was to create two container for two modes in PORT Module in EB Tresos project but we are not able to do the same as its showing error.(error: We cant configure one pin twice)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can somebody help me to achieve different configuration of same pin in same project?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:32:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PORT-configuration-in-MCAL/m-p/1160034#M8313</guid>
      <dc:creator>shudhamatinarha</dc:creator>
      <dc:date>2020-09-28T10:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: PORT configuration in MCAL</title>
      <link>https://community.nxp.com/t5/S32K/PORT-configuration-in-MCAL/m-p/1160567#M8326</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/127673"&gt;@shudhamatinarha&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I would like to answer your question:&lt;/P&gt;
&lt;P&gt;- In the Port autosar specification have mentioned that the&amp;nbsp;Multiplicity of PortConfigSet is one, so user cannot add one more PortConfigSet.&lt;/P&gt;
&lt;DIV id="tinyMceEditorhungnguyenphi_9" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tinyMceEditorhungnguyenphi_10" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 521px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126437i994DA5E317F1C698/image-dimensions/521x357?v=v2" width="521" height="357" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;- Anyway, user can use&amp;nbsp;PostbuildVariants and create&amp;nbsp;multiple variants. Please follow these steps below(these step is for ADC, but user can do the same with PORT) to have it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By referring to multiple variants, I mean a project can generate code with different variants, configured in EcuC. Here is the steps in GUI:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. In Sidebar tab, choose Edit Selectable PostbuildVariants&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hungnguyenphi_0-1601368762817.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126426i7E259B3A00470F5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hungnguyenphi_0-1601368762817.jpeg" alt="hungnguyenphi_0-1601368762817.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Add a new PredefinedVariant&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hungnguyenphi_1-1601368762902.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126427iFE425CB623DE5F21/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hungnguyenphi_1-1601368762902.jpeg" alt="hungnguyenphi_1-1601368762902.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. In Variant Criterion, add criterion and value representation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hungnguyenphi_2-1601368762983.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126428iEC027AC6050E9C23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hungnguyenphi_2-1601368762983.jpeg" alt="hungnguyenphi_2-1601368762983.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. Close the Edit Selectable PostbuildVariants. In Ecuc, enable the EcucPostBuildVariant, then choose the reference variant selected&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hungnguyenphi_3-1601368763037.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126430iEAD9FF8F0D88E0B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hungnguyenphi_3-1601368763037.png" alt="hungnguyenphi_3-1601368763037.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. In Adc -&amp;gt; AdcHwUnit, add a new HwUnit, then edit the Variant condition in Adc Hardware Unit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hungnguyenphi_4-1601368763188.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126432iE476DC9067A73BE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hungnguyenphi_4-1601368763188.jpeg" alt="hungnguyenphi_4-1601368763188.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6. For each variant, choose the corresponding Value:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hungnguyenphi_5-1601368763221.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126431iC3E9404CBC297A09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hungnguyenphi_5-1601368763221.png" alt="hungnguyenphi_5-1601368763221.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;7. After that, for each variant, different Adc Hardware Unit value can be chosen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hungnguyenphi_6-1601368763296.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126434iB0FC89568DB58239/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hungnguyenphi_6-1601368763296.jpeg" alt="hungnguyenphi_6-1601368763296.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hungnguyenphi_7-1601368763366.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126433i7B8C824B6075BACD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hungnguyenphi_7-1601368763366.jpeg" alt="hungnguyenphi_7-1601368763366.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code generated are different between each files:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hungnguyenphi_8-1601368763573.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126435iCF75F3971F0D3E9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hungnguyenphi_8-1601368763573.jpeg" alt="hungnguyenphi_8-1601368763573.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Hung.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 04:22:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PORT-configuration-in-MCAL/m-p/1160567#M8326</guid>
      <dc:creator>hungnguyenphi</dc:creator>
      <dc:date>2020-10-01T04:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: PORT configuration in MCAL</title>
      <link>https://community.nxp.com/t5/S32K/PORT-configuration-in-MCAL/m-p/1161287#M8350</link>
      <description>&lt;P&gt;Thank you hungnguyenphi.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 11:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PORT-configuration-in-MCAL/m-p/1161287#M8350</guid>
      <dc:creator>shudhamatinarha</dc:creator>
      <dc:date>2020-09-30T11:18:01Z</dc:date>
    </item>
  </channel>
</rss>

