<?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 Unable to program GPIO pins on ngx xplorer with blinky example in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-program-GPIO-pins-on-ngx-xplorer-with-blinky-example/m-p/564981#M16990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by verybadalloc on Mon Mar 07 20:49:34 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a very basic issue with the NGX Xplorer 4330, whereby I am unable to program any pin other than the LED ones. I know that I can control the LED pins because I am connecting it to an oscilloscope, and I can see the voltage levels toggling. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Xplorer 8.0, with an LPC Link 2 for programmer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#include "board.h"
#include &amp;lt;stdio.h&amp;gt;

const uint32_t ExtRateIn = 0;
const uint32_t OscRateIn = 12000000;

#define TICKRATE_HZ1 (1000)/* 10 ticks per second */

void SysTick_Handler(void) {
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 0, 1, state);
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 1, 12, state);
state = !state;
}

int main(void)
{
SystemCoreClockUpdate();
Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 1, 12);
Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 0, 1);

/* Enable and setup SysTick Timer at a periodic rate */
SysTick_Config(SystemCoreClock / TICKRATE_HZ1);

while (1) {
__WFI();
}
return 0;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see, the same logic is applied to both the LED pin (GPIO1[12]), and that of GPIO0[1] (I took this pin randomly, none of the other pins work either),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything that I am missing in my setup that would explain why I can't write to this pin? Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:49:49 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:49:49Z</dc:date>
    <item>
      <title>Unable to program GPIO pins on ngx xplorer with blinky example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-program-GPIO-pins-on-ngx-xplorer-with-blinky-example/m-p/564981#M16990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by verybadalloc on Mon Mar 07 20:49:34 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a very basic issue with the NGX Xplorer 4330, whereby I am unable to program any pin other than the LED ones. I know that I can control the LED pins because I am connecting it to an oscilloscope, and I can see the voltage levels toggling. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using Xplorer 8.0, with an LPC Link 2 for programmer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#include "board.h"
#include &amp;lt;stdio.h&amp;gt;

const uint32_t ExtRateIn = 0;
const uint32_t OscRateIn = 12000000;

#define TICKRATE_HZ1 (1000)/* 10 ticks per second */

void SysTick_Handler(void) {
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 0, 1, state);
Chip_GPIO_SetPinState(LPC_GPIO_PORT, 1, 12, state);
state = !state;
}

int main(void)
{
SystemCoreClockUpdate();
Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 1, 12);
Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 0, 1);

/* Enable and setup SysTick Timer at a periodic rate */
SysTick_Config(SystemCoreClock / TICKRATE_HZ1);

while (1) {
__WFI();
}
return 0;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see, the same logic is applied to both the LED pin (GPIO1[12]), and that of GPIO0[1] (I took this pin randomly, none of the other pins work either),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything that I am missing in my setup that would explain why I can't write to this pin? Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:49:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-program-GPIO-pins-on-ngx-xplorer-with-blinky-example/m-p/564981#M16990</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program GPIO pins on ngx xplorer with blinky example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-program-GPIO-pins-on-ngx-xplorer-with-blinky-example/m-p/564982#M16991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by bavarian on Fri Mar 11 06:41:50 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you configure the pins used by GPIO1[12] and GPIO0[1] in the same way as the pins which are used for the LEDs?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look for Chip_IOCON_PinMux(...) or Chip_IOCON_SetPinMuxing(...).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe these two pins (P0_1 and P2-12) are not set to GPIO function. In this case your GPIO configuration is useless, because the multiplexer just in front of the pin is set to another function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NXP Support Team&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-program-GPIO-pins-on-ngx-xplorer-with-blinky-example/m-p/564982#M16991</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to program GPIO pins on ngx xplorer with blinky example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-program-GPIO-pins-on-ngx-xplorer-with-blinky-example/m-p/564983#M16992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:04:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-program-GPIO-pins-on-ngx-xplorer-with-blinky-example/m-p/564983#M16992</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:04:18Z</dc:date>
    </item>
  </channel>
</rss>

