lpcware

Unable to program GPIO pins on ngx xplorer with blinky example

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 18, 2016 by lpcware
Content originally posted in LPCWare by verybadalloc on Mon Mar 07 20:49:34 MST 2016
Hello there,

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.
I am using Xplorer 8.0, with an LPC Link 2 for programmer.
Here is the code I am using:


#include "board.h"
#include <stdio.h>

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;
}


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),

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.

Thank you!

Outcomes