<?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: Port initialization</title>
    <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330879#M57265</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies, but how do I create this support ticket? The last time I faced a similar situation, someone sent me an URL to upload the file (I assume that person had created the support ticket for me).&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2026 20:09:23 GMT</pubDate>
    <dc:creator>durga_choudhury</dc:creator>
    <dc:date>2026-03-11T20:09:23Z</dc:date>
    <item>
      <title>Port initialization</title>
      <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330043#M57236</link>
      <description>&lt;P&gt;Here are the details of my setup:&lt;/P&gt;&lt;P&gt;MCU: S32K148 144pin package&lt;/P&gt;&lt;P&gt;IDE: S32DS 3.6.6 running on Windows 11&lt;/P&gt;&lt;P&gt;Toolchain: gcc 10.2&lt;/P&gt;&lt;P&gt;RTD version 3.0.0&lt;/P&gt;&lt;P&gt;Driver model used: Non-Autosar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With regards to using the MCU pins as GPIO, I am confused about the role of the Pin tool and the Port peripheral. Are they both needed at the same time?&lt;/P&gt;&lt;P&gt;The gist of my problem is that, in autogenerated file board/Port_Ci_Port_Ip_Cfg.c, for my custom board, all the pins have&lt;/P&gt;&lt;P&gt;.direction = PORT_CI_PORT_PIN_IN&lt;/P&gt;&lt;P&gt;even when a pin is set as output in pin tool. Adding the same pin to the Port peripheral *does* identify the correct direction in the GUI screen (i.e. direction in Port peripheral matches what is configured in the Pin tool; there is no way to change this in the Port peripheral), but the 'Update Code' button is still shown in grey and clicking on it anyway does not make any difference to the generated code (i.e. it still shows the pin direction as INPUT).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add to the confusion, this issue does not happen in some of the provided examples. I tried&amp;nbsp;Port_Ci_Port_Ip_Example_S32K148 and the Port peripheral shows the pins configured as output (but all the pins in this example are output, so this may not be a good example to try)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add to the confusion even more, I added a pin IN THE PIN TOOL to this example that is connected to an LED in my own board (not the EVK) WITHOUT ADDING THIS PIN TO THE PORT PERIPHERAL and I was able to blink this LED successfully. So why would one need to configure the Port peripheral.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add to confusion yet more, I could not find any code matching the Port peripheral in the 'generated' subdirectory. When I added a new pin to the Port peripheral, the generated code, which is under git version control, did not show any changed files (that would correspond to this change)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 18:34:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330043#M57236</guid>
      <dc:creator>durga_choudhury</dc:creator>
      <dc:date>2026-03-10T18:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Port initialization</title>
      <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330096#M57239</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250000"&gt;@durga_choudhury&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No, when using low‑level drivers (IP drivers), there is no need to add the pins configured in the Pins Tool to the Port_Ip. The array of configured pin structures &lt;STRONG&gt;&lt;EM&gt;"g_pin_mux_InitConfigArr_PortContainer_0_BOARD_InitPeripherals"&lt;/EM&gt;&lt;/STRONG&gt; is modified only when changes are made in the Pins Tool.&lt;/P&gt;
&lt;P&gt;You may manually add all Pins Tool configurations to the Port_Ip, but this will not produce any changes in the generated files.&lt;/P&gt;
&lt;P&gt;In contrast, when using high‑level drivers (MCAL), the Pins Tool and the PORT driver are tightly coupled. In this case, it is required to configure the pins in the Pins Tool and add them to the PORT driver. This ensures that the array of configured pin structures is generated correctly and that the MCAL PORT driver receives the proper configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 21:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330096#M57239</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2026-03-10T21:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Port initialization</title>
      <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330101#M57241</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your feedback. This does answer some of my questions. But the actual issue that I am struggling with (and one that is not happening with the example code) is that in my project running on a custom designed board, all the GPIO lines are marked as input in the generated code, even when they are configured as output in the PinTool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example: as you can see, pin PTC9 is configured as Output in PinTool:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pintool.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/378877i3FA1EAE1D6335BA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pintool.png" alt="pintool.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Update Code has been executed (the button is gray)&lt;/P&gt;&lt;P&gt;The generated code (board/Port_Ci_Port_Ip_Cfg.c) is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PAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.digitalFilter = (&lt;/SPAN&gt;&lt;SPAN&gt;boolean&lt;/SPAN&gt;&lt;SPAN&gt;)FALSE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.initValue = 0U,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt; &lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 21:59:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330101#M57241</guid>
      <dc:creator>durga_choudhury</dc:creator>
      <dc:date>2026-03-10T21:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Port initialization</title>
      <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330116#M57243</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250000"&gt;@durga_choudhury&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a project from scratch using the exact same RTD version you mentioned, and on my side I am able to see the value correctly updating from input to output in the generated code when making changes in the Pins Tool.&lt;/P&gt;
&lt;P&gt;Could you please share your .mex file so I can verify if something is missing in your configuration?&lt;/P&gt;
&lt;P&gt;Any additional information you can provide would also be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 22:48:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330116#M57243</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2026-03-10T22:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Port initialization</title>
      <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330123#M57244</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your support. Is there a URL where I can upload this file? Someone from NXP had created a private file upload URL before for a similar support request.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 23:23:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330123#M57244</guid>
      <dc:creator>durga_choudhury</dc:creator>
      <dc:date>2026-03-10T23:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Port initialization</title>
      <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330878#M57264</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250000"&gt;@durga_choudhury&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a support ticket and attach the files there. Please make sure to reference this thread in the ticket so the case can be assigned to me and I can continue supporting you.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 20:04:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330878#M57264</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2026-03-11T20:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Port initialization</title>
      <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330879#M57265</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies, but how do I create this support ticket? The last time I faced a similar situation, someone sent me an URL to upload the file (I assume that person had created the support ticket for me).&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 20:09:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330879#M57265</guid>
      <dc:creator>durga_choudhury</dc:creator>
      <dc:date>2026-03-11T20:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Port initialization</title>
      <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330883#M57266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/250000"&gt;@durga_choudhury&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the following link, go to “Submit a ticket” and create a new case:&amp;nbsp;&lt;A href="https://www.nxp.com/support/support:SUPPORTHOME" target="_blank"&gt;https://www.nxp.com/support/support:SUPPORTHOME&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am also sharing a link to a video that shows how to do it:&amp;nbsp;&lt;A href="https://www.nxp.com/company/about-nxp/smarter-world-videos/NCP-VIDEO" target="_blank"&gt;Tutorial for NXP Support Case Portal | NXP Semiconductors&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 20:32:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330883#M57266</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2026-03-11T20:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Port initialization</title>
      <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330888#M57267</link>
      <description>&lt;P&gt;Thank you. I have created support ticket&amp;nbsp;500Tg00000ZDmM4&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2026 20:47:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2330888#M57267</guid>
      <dc:creator>durga_choudhury</dc:creator>
      <dc:date>2026-03-11T20:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Port initialization</title>
      <link>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2335242#M57383</link>
      <description>&lt;P&gt;To close out the topic, as VaneB and I discussed over a support ticket, this issue has been noted and a fix will be available in a future release of the IDE. The current work around is to hand edit the tool generated code.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 13:41:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Port-initialization/m-p/2335242#M57383</guid>
      <dc:creator>durga_choudhury</dc:creator>
      <dc:date>2026-03-18T13:41:42Z</dc:date>
    </item>
  </channel>
</rss>

