<?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 i.MX8QM SC_GPIO_02 (LED) toggle in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QM-SC-GPIO-02-LED-toggle/m-p/1152329#M161682</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to toggle an LED from imx8QM MEK SCU FW (board.c function board_init()) using SCU_LED on SC_GPIO_02.&lt;/P&gt;&lt;P&gt;Can someone suggest what's the issue here ?&lt;/P&gt;&lt;P&gt;In board_init(), I call a test function (DEBUG_Toggle_GPIO) from the BOOT_PHASE_FINAL_INIT case. The DEBUG function gets called but no LED toggles :&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;void DEBUG_Toggle_GPIO(uint32_t secs)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; pad_force_mux(SC_P_SCU_GPIO0_02, 0,SC_PAD_CONFIG_NORMAL,&amp;nbsp;SC_PAD_ISO_OFF);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; rgpio_pin_config_t config;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; config.pinDirection = kRGPIO_DigitalOutput;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; /* SCU_LED on SC_GPIO_02 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; config.outputLogic = 1U;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; for (uint32_t i = 0; i&amp;lt;secs; i++) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FGPIO_PinInit(FGPIOA, 2U, &amp;amp;config);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SYSTICK_CycleDelay(SC_SYSTICK_NSEC_TO_TICKS(30U) + 1U);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (i%2 == 0) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FGPIO_PinWrite(FGPIOA, 1U, 1U); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FGPIO_PinWrite(FGPIOA, 1U, 0U); &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SystemTimeDelay(1000000U);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 11 Sep 2020 22:21:15 GMT</pubDate>
    <dc:creator>rkohli2000</dc:creator>
    <dc:date>2020-09-11T22:21:15Z</dc:date>
    <item>
      <title>i.MX8QM SC_GPIO_02 (LED) toggle</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QM-SC-GPIO-02-LED-toggle/m-p/1152329#M161682</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to toggle an LED from imx8QM MEK SCU FW (board.c function board_init()) using SCU_LED on SC_GPIO_02.&lt;/P&gt;&lt;P&gt;Can someone suggest what's the issue here ?&lt;/P&gt;&lt;P&gt;In board_init(), I call a test function (DEBUG_Toggle_GPIO) from the BOOT_PHASE_FINAL_INIT case. The DEBUG function gets called but no LED toggles :&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;void DEBUG_Toggle_GPIO(uint32_t secs)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; pad_force_mux(SC_P_SCU_GPIO0_02, 0,SC_PAD_CONFIG_NORMAL,&amp;nbsp;SC_PAD_ISO_OFF);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; rgpio_pin_config_t config;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; config.pinDirection = kRGPIO_DigitalOutput;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; /* SCU_LED on SC_GPIO_02 */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; config.outputLogic = 1U;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; for (uint32_t i = 0; i&amp;lt;secs; i++) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FGPIO_PinInit(FGPIOA, 2U, &amp;amp;config);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SYSTICK_CycleDelay(SC_SYSTICK_NSEC_TO_TICKS(30U) + 1U);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (i%2 == 0) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FGPIO_PinWrite(FGPIOA, 1U, 1U); &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FGPIO_PinWrite(FGPIOA, 1U, 0U); &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SystemTimeDelay(1000000U);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;&amp;nbsp; &amp;nbsp; }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 22:21:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8QM-SC-GPIO-02-LED-toggle/m-p/1152329#M161682</guid>
      <dc:creator>rkohli2000</dc:creator>
      <dc:date>2020-09-11T22:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8QM SC_GPIO_02 (LED) toggle</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8QM-SC-GPIO-02-LED-toggle/m-p/1152443#M161695</link>
      <description>&lt;P&gt;So, I found my typo in FGPIO_PinInit()....I needed to correct the Pin (1U):&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;FGPIO_PinInit(FGPIOA, &lt;STRIKE&gt;2U&amp;nbsp;&lt;/STRIKE&gt;1U, &amp;amp;config);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now, I can see the LED toggle properly in my test, that's great.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please ignore this question.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 05:59:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8QM-SC-GPIO-02-LED-toggle/m-p/1152443#M161695</guid>
      <dc:creator>rkohli2000</dc:creator>
      <dc:date>2020-09-13T05:59:58Z</dc:date>
    </item>
  </channel>
</rss>

