<?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 g_pin_mux_InitConfigArr0 in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432227#M8364</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi NXP support team,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I debugged the project, set break point at rtos_start(), in function: int main(void),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the first line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the global should be initialized, but used PEMicro, on Expressions window, I found:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;g_pin_mux_InitConfigArr0[73]&lt;BR /&gt;Details:{&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;base = 0x0 &amp;lt;__isr_vector&amp;gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;pinPortIdx = 0,&lt;/P&gt;&lt;P&gt;pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,&lt;/P&gt;&lt;P&gt;passiveFilter = false,&lt;/P&gt;&lt;P&gt;driveSelect = PORT_LOW_DRIVE_STRENGTH,&lt;/P&gt;&lt;P&gt;mux = PORT_PIN_DISABLED,&lt;/P&gt;&lt;P&gt;pinLock = false,&lt;/P&gt;&lt;P&gt;intConfig = PORT_DMA_INT_DISABLED,&lt;/P&gt;&lt;P&gt;clearIntFlag = false,&lt;/P&gt;&lt;P&gt;digitalFilter = false,&lt;/P&gt;&lt;P&gt;gpioBase = 0x0 &amp;lt;__isr_vector&amp;gt;,&lt;/P&gt;&lt;P&gt;direction = GPIO_INPUT_DIRECTION, initValue = 0 '\0'}&lt;/P&gt;&lt;P&gt;this will cause a the program stopped at default ISR.&lt;/P&gt;&lt;P&gt;I searched&amp;nbsp; pinPortIdx in pin_mux.c, got:&lt;/P&gt;&lt;P&gt;board&lt;BR /&gt;pin_mux.c (73 matches)&lt;BR /&gt;124: .pinPortIdx = 10U,&lt;/P&gt;&lt;P&gt;So the issue is only 73 items in&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;g_pin_mux_InitConfigArr0[];&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;but in &lt;STRONG&gt;pin_mux.c&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;/* Generate array of configured pin structures */&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;pin_settings_config_t g_pin_mux_InitConfigArr0[NUM_OF_CONFIGURED_PINS0] = {&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;#define NUM_OF_CONFIGURED_PINS0 77&lt;/STRONG&gt;&lt;/EM&gt; // in &lt;STRONG&gt;pin_mux.h&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;i am wondering why the NUM_OF is 77 in pin_mux.h,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;S32 Design Studio for S32 Platform&amp;nbsp;&lt;/SPAN&gt;Version: 3.4,S32K1XX SDK RTM 4.0.2.&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2022 00:25:22 GMT</pubDate>
    <dc:creator>samcs</dc:creator>
    <dc:date>2022-03-23T00:25:22Z</dc:date>
    <item>
      <title>g_pin_mux_InitConfigArr0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432227#M8364</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi NXP support team,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I debugged the project, set break point at rtos_start(), in function: int main(void),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the first line.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the global should be initialized, but used PEMicro, on Expressions window, I found:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;g_pin_mux_InitConfigArr0[73]&lt;BR /&gt;Details:{&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;base = 0x0 &amp;lt;__isr_vector&amp;gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;pinPortIdx = 0,&lt;/P&gt;&lt;P&gt;pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,&lt;/P&gt;&lt;P&gt;passiveFilter = false,&lt;/P&gt;&lt;P&gt;driveSelect = PORT_LOW_DRIVE_STRENGTH,&lt;/P&gt;&lt;P&gt;mux = PORT_PIN_DISABLED,&lt;/P&gt;&lt;P&gt;pinLock = false,&lt;/P&gt;&lt;P&gt;intConfig = PORT_DMA_INT_DISABLED,&lt;/P&gt;&lt;P&gt;clearIntFlag = false,&lt;/P&gt;&lt;P&gt;digitalFilter = false,&lt;/P&gt;&lt;P&gt;gpioBase = 0x0 &amp;lt;__isr_vector&amp;gt;,&lt;/P&gt;&lt;P&gt;direction = GPIO_INPUT_DIRECTION, initValue = 0 '\0'}&lt;/P&gt;&lt;P&gt;this will cause a the program stopped at default ISR.&lt;/P&gt;&lt;P&gt;I searched&amp;nbsp; pinPortIdx in pin_mux.c, got:&lt;/P&gt;&lt;P&gt;board&lt;BR /&gt;pin_mux.c (73 matches)&lt;BR /&gt;124: .pinPortIdx = 10U,&lt;/P&gt;&lt;P&gt;So the issue is only 73 items in&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;g_pin_mux_InitConfigArr0[];&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;but in &lt;STRONG&gt;pin_mux.c&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;/* Generate array of configured pin structures */&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;pin_settings_config_t g_pin_mux_InitConfigArr0[NUM_OF_CONFIGURED_PINS0] = {&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;#define NUM_OF_CONFIGURED_PINS0 77&lt;/STRONG&gt;&lt;/EM&gt; // in &lt;STRONG&gt;pin_mux.h&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;i am wondering why the NUM_OF is 77 in pin_mux.h,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;S32 Design Studio for S32 Platform&amp;nbsp;&lt;/SPAN&gt;Version: 3.4,S32K1XX SDK RTM 4.0.2.&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 00:25:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432227#M8364</guid>
      <dc:creator>samcs</dc:creator>
      <dc:date>2022-03-23T00:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: g_pin_mux_InitConfigArr0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432635#M8368</link>
      <description>&lt;P&gt;Found the reason, seems some pins be assigned to more functions, then the NUM_OF value is not the number of pins, it's the number of&amp;nbsp; functions.&lt;/P&gt;&lt;P&gt;But S32DS For ARM IDE dees not have the issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't know how to configure the macro in&amp;nbsp; pin_mux.h, have to change it manually?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 13:55:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432635#M8368</guid>
      <dc:creator>samcs</dc:creator>
      <dc:date>2022-03-23T13:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: g_pin_mux_InitConfigArr0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432670#M8369</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/197050"&gt;@samcs&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Please double check the Configuration tool and update the code, the generated structure must match the settings there. Is the tool reporting any error?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1648046548275.png" style="width: 610px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174562i86FDBF198CC443E2/image-dimensions/610x897?v=v2" width="610" height="897" role="button" title="danielmartynek_1-1648046548275.png" alt="danielmartynek_1-1648046548275.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditordanielmartynek_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditordanielmartynek_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 14:43:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432670#M8369</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-03-23T14:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: g_pin_mux_InitConfigArr0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432686#M8370</link>
      <description>&lt;P&gt;Only got one warning,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samcs_0-1648047986451.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174563i0C84AE6B42B91F6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samcs_0-1648047986451.png" alt="samcs_0-1648047986451.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samcs_1-1648048033950.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174564iE2B932212813A35A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samcs_1-1648048033950.png" alt="samcs_1-1648048033950.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I just wondering, why&amp;nbsp;S32 Design Studio for ARM IDE, can handle More functions assigned on one pin, the generated code, here,PTA4, assigned&amp;nbsp; 2 functions, but not affected the Macro definition in pin_mux.h.&lt;/P&gt;&lt;P&gt;&amp;nbsp;NUM_OF_CONFIGURED_PINS&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samcs_2-1648048264992.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174566i2042EBDB1A121FEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samcs_2-1648048264992.png" alt="samcs_2-1648048264992.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 15:12:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432686#M8370</guid>
      <dc:creator>samcs</dc:creator>
      <dc:date>2022-03-23T15:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: g_pin_mux_InitConfigArr0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432693#M8371</link>
      <description>&lt;P&gt;Even PTC2,PTC3 are dual functions pins, but the ConfigrTools not generated warnings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samcs_0-1648048409082.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174567iF10617383CB027A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samcs_0-1648048409082.png" alt="samcs_0-1648048409082.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="samcs_2-1648048535024.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174569iE2BE38DDCF673A65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="samcs_2-1648048535024.png" alt="samcs_2-1648048535024.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 15:15:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432693#M8371</guid>
      <dc:creator>samcs</dc:creator>
      <dc:date>2022-03-23T15:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: g_pin_mux_InitConfigArr0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432699#M8372</link>
      <description>&lt;P&gt;JTAG_TMS/SWD_DIO is a single function of the PTA4 pin (ALT7).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1648048828681.png" style="width: 714px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174571iF716FAD06FBCC845/image-dimensions/714x91?v=v2" width="714" height="91" role="button" title="danielmartynek_0-1648048828681.png" alt="danielmartynek_0-1648048828681.png" /&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 15:21:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432699#M8372</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-03-23T15:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: g_pin_mux_InitConfigArr0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432701#M8373</link>
      <description>&lt;P&gt;PTC3 has two analog functions that are the default ALT0 functions.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1648049030171.png" style="width: 687px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/174572i012FC1FAFD70D8B1/image-dimensions/687x107?v=v2" width="687" height="107" role="button" title="danielmartynek_0-1648049030171.png" alt="danielmartynek_0-1648049030171.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In other words, the PTC3 MUX needs a reconfiguration only of the pin is used with an alternative digital function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 15:25:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432701#M8373</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-03-23T15:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: g_pin_mux_InitConfigArr0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432706#M8374</link>
      <description>&lt;P&gt;Thanks, so if the alt functions be configured both, then the generated code will configured twice?&amp;nbsp;&lt;/P&gt;&lt;P&gt;one pin will configured twice, then the NUM_OF_CONFIGURED will be 2 for one pin?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 15:37:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432706#M8374</guid>
      <dc:creator>samcs</dc:creator>
      <dc:date>2022-03-23T15:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: g_pin_mux_InitConfigArr0</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432713#M8375</link>
      <description>&lt;P&gt;Yes, I just tested it (PTA4, PTC3) and indeed the NUM_OF_CONFIGURED_PINS0 increments.&lt;/P&gt;
&lt;P&gt;Also, there is no warning for PTC3.&lt;/P&gt;
&lt;P&gt;I will report it.&lt;/P&gt;
&lt;P&gt;Thanks for pointing it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:01:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/g-pin-mux-InitConfigArr0/m-p/1432713#M8375</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2022-03-23T16:01:02Z</dc:date>
    </item>
  </channel>
</rss>

