Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE, LAUNCHXL-F28379D, LAUNCHXL-F280049C
Hello Everyone,
I am just getting started with C2000 Launchpad XL Development Kit.
I am facing strange problem with very basic code.
With exact code GPIO31 working but not other GPIO, I tested with multiple GPIO 2,3,4,5 but none of them work.
void main(void)
{
//
// Initializes device clock and peripherals
//
Device_init();
//
// Configures the GPIO pin as a push-pull output
//
Device_initGPIO();
GPIO_setDirectionMode(31U, GPIO_DIR_MODE_OUT);
GPIO_setDirectionMode(2U, GPIO_DIR_MODE_OUT);
while(1)
{
GPIO_writePin(31U, 0);
GPIO_writePin(2U, 0);
DEVICE_DELAY_US(1000000);
GPIO_writePin(31U, 1);
GPIO_writePin(2U, 1);
DEVICE_DELAY_US(1000000);
}
}