<?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 Re: GPIO initial state = No init in MCUXpresso Config Tools</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831782#M587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="289298" data-username="GuillaumeAudirac" href="https://community.nxp.com/people/GuillaumeAudirac"&gt;Guillaume Audirac&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;There is a reset data (0) when no init the gpio pin of output .&lt;/P&gt;&lt;P&gt;The function of "GPIO_PinInit()" not only configure the data of gpio data, also configure direction .&lt;/P&gt;&lt;P&gt;If you don't want to call this function, I was wondering why do you configure GPIO , and what is the effect&lt;/P&gt;&lt;P&gt;when output is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2018 07:07:24 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2018-07-20T07:07:24Z</dc:date>
    <item>
      <title>GPIO initial state = No init</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831781#M586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to generate pin_mux.c/h files for K64F with the Config Tools v4.1. When configuring GPIO outputs with no initial state (GPIO initial state = No init), the GPIOs pins are still initialized in the generated code.&lt;/P&gt;&lt;P&gt;Basically, there is no difference between "No init" and "Logical 0". I expected the GPIO_PinInit() function not to be called with "No init" setting.&lt;/P&gt;&lt;P&gt;Extract of pin_mux.c file (with "No init"):&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpio_pin_config_t AIR_WAKEN_config = {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .pinDirection = kGPIO_DigitalOutput,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .outputLogic = 0U
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize GPIO functionality on pin PTA1 (pin J6)&amp;nbsp; */
&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_PinInit(BOARD_INITPINS_AIR_WAKEN_GPIO, BOARD_INITPINS_AIR_WAKEN_PIN, &amp;amp;AIR_WAKEN_config);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 15:17:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831781#M586</guid>
      <dc:creator>GuillaumeAudirac</dc:creator>
      <dc:date>2018-07-19T15:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO initial state = No init</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831782#M587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="289298" data-username="GuillaumeAudirac" href="https://community.nxp.com/people/GuillaumeAudirac"&gt;Guillaume Audirac&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;There is a reset data (0) when no init the gpio pin of output .&lt;/P&gt;&lt;P&gt;The function of "GPIO_PinInit()" not only configure the data of gpio data, also configure direction .&lt;/P&gt;&lt;P&gt;If you don't want to call this function, I was wondering why do you configure GPIO , and what is the effect&lt;/P&gt;&lt;P&gt;when output is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 07:07:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831782#M587</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-07-20T07:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO initial state = No init</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831783#M588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;To explain the context: as the field for the initial state was not available in older version of the Config Tools (v4.0), GPIO_PinInit() was called in our application. Now, I intend to align the current &lt;EM&gt;pin_mux/peripherals/clock_config[.c/.h]&lt;/EM&gt; files to the new version of the Config Tools (v4.1) but without changing the GPIO initialization code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, can you please explain the difference between:&lt;/P&gt;&lt;P&gt;- No init ("Property will not be initialized - no code will be generated and no validations will be performed")&lt;/P&gt;&lt;P&gt;- Logical 0 ("Logical 0")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot see any difference in terms of code generation. Moreover the tooltip statement "no code will be generated" seems wrong. So the code generation for "No init" looks to me like a bug in the Config Tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2018 07:47:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831783#M588</guid>
      <dc:creator>GuillaumeAudirac</dc:creator>
      <dc:date>2018-07-20T07:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO initial state = No init</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831784#M589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guillaume,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your feedback!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why you can see pin initialization code being generated is because of the underlying SDK pin initialization code: it combines initialization of pin initial state with initialization of pin direction. If pin direction is being configured then also pin initial state is expected to be passed to SDK &lt;SPAN&gt;GPIO_PinInit()&amp;nbsp;function. As result,&lt;/SPAN&gt;&amp;nbsp;default pin initial state (&lt;EM&gt;Logical 0&lt;/EM&gt;) is generated by Pins tool although related pin initial state is set to &lt;EM&gt;No init&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree that the current state is confusing&amp;nbsp;and&amp;nbsp;I passed your feedback to the development team.&amp;nbsp;If you need to get rid off the&amp;nbsp;&lt;SPAN&gt;GPIO_PinInit() call completely, you have to set pin direction in Pins tool to &lt;EM&gt;Not specified&lt;/EM&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Lukas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 16:52:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831784#M589</guid>
      <dc:creator>Lukas_Heczko</dc:creator>
      <dc:date>2018-07-24T16:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO initial state = No init</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831785#M590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for the clear and helpful answer.&lt;/P&gt;&lt;P&gt;Thanks as well to have informed&amp;nbsp; the dev team to avoid confusing settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 07:34:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/GPIO-initial-state-No-init/m-p/831785#M590</guid>
      <dc:creator>GuillaumeAudirac</dc:creator>
      <dc:date>2018-07-25T07:34:37Z</dc:date>
    </item>
  </channel>
</rss>

