<?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>MCUXpresso GeneralのトピックRe: LPC1769 peripherals (GPIO) do not answer</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941495#M2310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;whether you can glow a LED is dependent on the hardware connection,&lt;/P&gt;&lt;P&gt;how about using the line to glow a LED:&lt;/P&gt;&lt;P&gt;LPC_GPIO[0].CLR&amp;nbsp; = 1&amp;lt;&amp;lt;22;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jul 2019 09:39:07 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2019-07-05T09:39:07Z</dc:date>
    <item>
      <title>LPC1769 peripherals (GPIO) do not answer</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941487#M2302</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;I am using this board: &lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/lpcxpresso-boards/lpcxpresso-board-for-lpc1769-with-cmsis-dap-probe:OM13085" title="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/lpcxpresso-boards/lpcxpresso-board-for-lpc1769-with-cmsis-dap-probe:OM13085"&gt;LPCXpresso board for LPC1769 with CMSIS DAP probe | NXP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and MCUXpresso. Currently I try to let the LED blink. I can connect with the board and debugging, but nothing happens, even when ein use the "Board_LED_Set" funktion. MCUXpresso and the Debugger are showing, that values in the GPIO Registers are changed. Anyone a suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 05:34:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941487#M2302</guid>
      <dc:creator>cone_2</dc:creator>
      <dc:date>2019-07-04T05:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 peripherals (GPIO) do not answer</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941488#M2303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Michael,&lt;/P&gt;&lt;P&gt;From your following code, it appears that the LED is connected to P0_22(GPIO0_22), if it is the case, pls use the code.&lt;/P&gt;&lt;P&gt;anyway, pls check which pin is connected to LED.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;int main(void) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if defined (__USE_LPCOPEN)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Read clock settings and update SystemCoreClock variable&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SystemCoreClockUpdate();&lt;BR /&gt;#if !defined(NO_BOARD_LIB)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set up and initialize all required blocks and&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // functions related to the board hardware&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Board_Init();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Set the LED to the state of "On"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Board_LED_Set(0, true);&lt;BR /&gt;#endif&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Chip_GPIO_WriteDirBit(LPC_GPIO, 3, 26, true);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Chip_GPIO_WritePortBit(LPC_GPIO, 3, 26, true);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_IOCON-&amp;gt;PINSEL[1] &amp;amp;= !(1 &amp;lt;&amp;lt; 12);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_IOCON-&amp;gt;PINSEL[1] &amp;amp;= !(1 &amp;lt;&amp;lt; 13);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_IOCON-&amp;gt;PINMODE[1] &amp;amp;= !(1 &amp;lt;&amp;lt; 12);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_IOCON-&amp;gt;PINMODE[1] &amp;amp;= !(1 &amp;lt;&amp;lt; 13);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO[0].MASK = 0x00000000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO[0].DIR&amp;nbsp; |= 1&amp;lt;&amp;lt;22;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO[0].SET&amp;nbsp; = 1&amp;lt;&amp;lt;22;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; //&amp;nbsp; LPC_GPIO[3].MASK = 0x00000000;&lt;BR /&gt;&amp;nbsp; //&amp;nbsp; LPC_GPIO[3].DIR&amp;nbsp; = 0xFFFFFFFF;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; // LPC_GPIO[3].SET&amp;nbsp; = 0xFFFFFFFF;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile uint32_t check = LPC_GPIO[0].PIN &amp;amp; 0x00400000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Force the counter to be placed into memory&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; volatile static int i = 0 ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enter an infinite loop, just incrementing a counter&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO[0].SET&amp;nbsp; = 1&amp;lt;&amp;lt;22;&lt;/P&gt;&lt;P&gt;delay();&lt;/P&gt;&lt;P&gt;LPC_GPIO[0].CLR = 1&amp;lt;&amp;lt;22;&lt;/P&gt;&lt;P&gt;delay();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++ ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void delay(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;unsigned int j;&lt;/P&gt;&lt;P&gt;j=0;&lt;/P&gt;&lt;P&gt;for(unsigned int i=0; i&amp;lt;100000;i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;j++;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 08:18:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941488#M2303</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-07-04T08:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 peripherals (GPIO) do not answer</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941489#M2304</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="344090" data-username="cone_2@web.de" href="https://community.nxp.com/people/cone_2@web.de"&gt;Michael Petersen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can first try the demo "periph_blinky" under LPCopen, I have test it on my side ,it can work well.&lt;/P&gt;&lt;P&gt;Then compare the configuration with yours.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX?tab=Design_Tools_Tab" title="https://www.nxp.com/support/developer-resources/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX?tab=Design_Tools_Tab"&gt;LPCOpen Software for LPC17XX | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&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:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 08:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941489#M2304</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-07-04T08:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 peripherals (GPIO) do not answer</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941490#M2305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class=""&gt;Hello &lt;A _jive_internal="true" data-userid="19420" data-username="xiangjun.rong" href="https://community.nxp.com/people/xiangjun.rong"&gt;xiangjun.rong&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I allready tried to activate just pin 22 port 0, but it did not work. Your code is working, but when I remove this part from the while-loop-body: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;LPC_GPIO[0].SET&amp;nbsp; |= 1&amp;lt;&amp;lt;22;&lt;BR /&gt;delay();&lt;BR /&gt;LPC_GPIO[0].CLR |= 1&amp;lt;&amp;lt;22;&lt;BR /&gt;delay();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The LED is not set on, but this code part, bevor the while-loop should do this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;LPC_GPIO[0].MASK = 0x00000000;&lt;BR /&gt;LPC_GPIO[0].DIR&amp;nbsp; |= 1&amp;lt;&amp;lt;22;&lt;BR /&gt;LPC_GPIO[0].SET&amp;nbsp; = 1&amp;lt;&amp;lt;22;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Any ideas why the LED is not set on for once and keeps on?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 08:53:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941490#M2305</guid>
      <dc:creator>cone_2</dc:creator>
      <dc:date>2019-07-04T08:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 peripherals (GPIO) do not answer</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941491#M2306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ben,&lt;/P&gt;&lt;P&gt;for the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO[0].SET&amp;nbsp; = 1&amp;lt;&amp;lt;22;&lt;/P&gt;&lt;P&gt;delay();&lt;/P&gt;&lt;P&gt;//LPC_GPIO[0].CLR = 1&amp;lt;&amp;lt;22;&lt;/P&gt;&lt;P&gt;delay();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++ ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;If you comment one &amp;nbsp; LPC_GPIO[0].SET&amp;nbsp; = 1&amp;lt;&amp;lt;22; or LPC_GPIO[0].CLR = 1&amp;lt;&amp;lt;22;, the LED will keep ONE state for example on or off forever.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 09:38:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941491#M2306</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-07-04T09:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 peripherals (GPIO) do not answer</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941492#M2307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Year of course, but why did this not work out of the while-loop:&lt;/P&gt;&lt;P&gt;LPC_GPIO[0].SET&amp;nbsp; = 1&amp;lt;&amp;lt;22;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2019 10:56:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941492#M2307</guid>
      <dc:creator>cone_2</dc:creator>
      <dc:date>2019-07-04T10:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 peripherals (GPIO) do not answer</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941493#M2308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Michael,&lt;/P&gt;&lt;P&gt;I think it is okay to put the line LPC_GPIO[0].SET&amp;nbsp; = 1&amp;lt;&amp;lt;22; out of while loop, after the line is executed, the GPIO pin will be high. You can set a break point, and run the line step by step.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 02:53:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941493#M2308</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-07-05T02:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 peripherals (GPIO) do not answer</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941494#M2309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I did this, but it did not work and I do not understand why.&lt;/P&gt;&lt;P&gt;I put this Line:&lt;/P&gt;&lt;P&gt;LPC_GPIO[0].SET&amp;nbsp; = 1&amp;lt;&amp;lt;22;&lt;/P&gt;&lt;P&gt;out of the while-loop but the LED did not start to glow, nothing happens. Why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 08:32:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941494#M2309</guid>
      <dc:creator>cone_2</dc:creator>
      <dc:date>2019-07-05T08:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 peripherals (GPIO) do not answer</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941495#M2310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;whether you can glow a LED is dependent on the hardware connection,&lt;/P&gt;&lt;P&gt;how about using the line to glow a LED:&lt;/P&gt;&lt;P&gt;LPC_GPIO[0].CLR&amp;nbsp; = 1&amp;lt;&amp;lt;22;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 09:39:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941495#M2310</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-07-05T09:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 peripherals (GPIO) do not answer</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941496#M2311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, that did the job!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jul 2019 11:52:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC1769-peripherals-GPIO-do-not-answer/m-p/941496#M2311</guid>
      <dc:creator>cone_2</dc:creator>
      <dc:date>2019-07-05T11:52:37Z</dc:date>
    </item>
  </channel>
</rss>

