<?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 Config Tools -&amp;gt; Routed Pins in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981471#M2745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;MCUXpresso IDE v11.1. 0 (2019-12-12)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the MCUXpresso IDE -&amp;gt; Config Tool-&amp;gt; Routed Pins -&amp;gt; GPIO interrupt, there are the following variants:&lt;BR /&gt;- Disabled&lt;BR /&gt;- Low Level&lt;BR /&gt;- High Level&lt;BR /&gt;- Rising Edge&lt;BR /&gt;- Falling Edge&lt;BR /&gt;- Falling or Rising Edge&lt;BR /&gt;- Reset (Disabled)&lt;BR /&gt;- No init&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By setting one of the variants, for example "Rising Edge", the interrupt is implicitly enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The way in which an interrupt is activated and the activation / deactivation of an interrupt are two distinct things and thus they must be treated separately in this configuration interface.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At program initialization, immediately after reset, the pins are fully configured but it is very possible to enable the interrupt to be made later in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus the "GPIO interrupt" option needs to be replaced with two other options:&lt;BR /&gt;- "Interrupt Config": Low / Hi Level / Rising / Falling Edge.....&lt;BR /&gt;- "Interrupt Mask": Enable / Disable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you natural flexibility in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neculai Agavriloaie&lt;/P&gt;&lt;P&gt;ACK Fluid srl&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:naga@ack.ro"&gt;naga@ack.ro&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2020 17:50:30 GMT</pubDate>
    <dc:creator>naga</dc:creator>
    <dc:date>2020-01-20T17:50:30Z</dc:date>
    <item>
      <title>Config Tools -&gt; Routed Pins</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981471#M2745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;MCUXpresso IDE v11.1. 0 (2019-12-12)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the MCUXpresso IDE -&amp;gt; Config Tool-&amp;gt; Routed Pins -&amp;gt; GPIO interrupt, there are the following variants:&lt;BR /&gt;- Disabled&lt;BR /&gt;- Low Level&lt;BR /&gt;- High Level&lt;BR /&gt;- Rising Edge&lt;BR /&gt;- Falling Edge&lt;BR /&gt;- Falling or Rising Edge&lt;BR /&gt;- Reset (Disabled)&lt;BR /&gt;- No init&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By setting one of the variants, for example "Rising Edge", the interrupt is implicitly enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The way in which an interrupt is activated and the activation / deactivation of an interrupt are two distinct things and thus they must be treated separately in this configuration interface.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At program initialization, immediately after reset, the pins are fully configured but it is very possible to enable the interrupt to be made later in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus the "GPIO interrupt" option needs to be replaced with two other options:&lt;BR /&gt;- "Interrupt Config": Low / Hi Level / Rising / Falling Edge.....&lt;BR /&gt;- "Interrupt Mask": Enable / Disable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you natural flexibility in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neculai Agavriloaie&lt;/P&gt;&lt;P&gt;ACK Fluid srl&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:naga@ack.ro"&gt;naga@ack.ro&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2020 17:50:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981471#M2745</guid>
      <dc:creator>naga</dc:creator>
      <dc:date>2020-01-20T17:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Config Tools -&gt; Routed Pins</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981472#M2746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Neculai&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Hope you are doing well. Could you please share the screenshot of the option you are referring to in the Configtools. I have attempted to follow as per your instructions but I do not get a drop down menu for the GPIO interrupt. Also could you please confirm the microcontroller you are using and if you are initializing with an example.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Sabina&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 17:28:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981472#M2746</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-01-21T17:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Config Tools -&gt; Routed Pins</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981473#M2747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The microcontroller used is the iMX RT1064 using the MIMXRT1064-EVK board.&lt;/P&gt;&lt;P&gt;As you can see in the screenshot the pin named NXPNCI_IRQ has the property GPIO interrupt = "Rising Edge".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MCUX.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97668i4416B729063E0174/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCUX.png" alt="MCUX.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code generated in this case as can be seen in the image is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* GPIO configuration of NXPNCI_IRQ on GPIO_AD_B0_03 (pin G11) */&lt;BR /&gt; gpio_pin_config_t NXPNCI_IRQ_config = {&lt;BR /&gt; .direction = kGPIO_DigitalInput,&lt;BR /&gt; .outputLogic = 0U,&lt;BR /&gt; .interruptMode = kGPIO_IntRisingEdge&lt;BR /&gt; };&lt;BR /&gt; /* Initialize GPIO functionality on GPIO_AD_B0_03 (pin G11) */&lt;BR /&gt; GPIO_PinInit(GPIO1, 3U, &amp;amp;NXPNCI_IRQ_config);&lt;BR /&gt; /* Enable GPIO pin interrupt on GPIO_AD_B0_03 (pin G11) */&lt;BR /&gt; GPIO_PortEnableInterrupts(GPIO1, 1U &amp;lt;&amp;lt; 3U);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A separate treatment of the two distinct properties is required, namely:&lt;BR /&gt;1. The way in which an interruption occurs refers to the registers; ICR1, ICR2 and EDGE_SEL&lt;BR /&gt;2. The masking of an interruption refers to the IMR register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These two properties of a pin need to be set independently and this should be reflected in the generated code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thus the "GPIO interrupt" option needs to be replaced with two other options:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f; "&gt;1. "Interrupt Config": Low / Hi Level / Rising / Falling Edge.....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;generated code:&amp;nbsp;&lt;SPAN&gt;GPIO_PinInit(GPIO1, 3U, &amp;amp;NXPNCI_IRQ_config);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f; "&gt;2. "Interrupt Mask": Enable / Disable&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;generated code:&amp;nbsp;&lt;SPAN style="color: #3d3d3d;"&gt;GPIO_PortEnableInterrupts(GPIO1, 1U &amp;lt;&amp;lt; 3U);&amp;nbsp; // for "Enable"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Clear mask bit for "Disable"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #3d3d3d; "&gt;Neculai&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2020 19:26:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981473#M2747</guid>
      <dc:creator>naga</dc:creator>
      <dc:date>2020-01-21T19:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Config Tools -&gt; Routed Pins</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981474#M2748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neculai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your feedback. The pin interrupt control interface in Pins tool for i.MX RT processor is actually&amp;nbsp;reused from previous platforms (Kinetis, LPC) where the GPIO interrupt could be only either configured or disabled (i.e. there is only single bitfield / SDK function to set it up). However, you are right that this approach does not fully cover possibilities of GPIO on i.MX RT processors.&lt;/P&gt;&lt;P&gt;We will look on how to&amp;nbsp;split the functionality for&amp;nbsp;the i.MX RT GPIO interrupt settings in next version of MCUXpresso Config Tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2020 11:24:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981474#M2748</guid>
      <dc:creator>Lukas_Heczko</dc:creator>
      <dc:date>2020-01-23T11:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Config Tools -&gt; Routed Pins</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981475#M2749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;MCUXpresso IDE v11.1. 0 (2019-12-12)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another shortcoming is configuring FreeRTOS drivers using Config Tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, Config Tools highly resolves the configuration of an I2C interface by generating the following source code:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;void LPI2C1_init(void) {
  LPI2C_MasterInit(LPI2C1_PERIPHERAL, &amp;amp;LPI2C1_masterConfig, LPI2C1_CLOCK_FREQ);
  LPI2C_MasterTransferCreateHandle(LPI2C1_PERIPHERAL, &amp;amp;LPI2C1_masterHandle, NULL, NULL);
}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use the I2C driver in FreeRTOS, Config Tools must generate the following source code along with all those necessary for the proper functioning of the interrupts:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;void LPI2C1_init(void) {
LPI2C_RTOS_Init(&amp;amp;lpi2c_rtos_handle, LPI2C1_PERIPHERAL, &amp;amp;LPI2C1_masterConfig, LPI2C1_CLOCK_FREQ);‍‍‍
}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To put it simply, Config Tools does not have the ability to generate source code for drivers (I2C, SPI, UART ...) that work in FreeRTOS (although in the initial configuration of a project FreeRTOS drivers can be included !).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please keep in mind that in a future version you should include this option which is indispensable in creating a professional source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neculai &lt;A href="mailto:naga@ack.ro" rel="nofollow noopener noreferrer" target="_blank"&gt;naga@ack.ro&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2020 15:05:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Config-Tools-gt-Routed-Pins/m-p/981475#M2749</guid>
      <dc:creator>naga</dc:creator>
      <dc:date>2020-01-24T15:05:29Z</dc:date>
    </item>
  </channel>
</rss>

