Part Number:LAUNCHXL-F28379D
Tool/software: Code Composer Studio
Hello All,
I am trying to build a simple GUI to display the status of the LED for a generic blinky example using the Launchxl-f28379D. When using CCS I can download the code to RAM and run it through the debugger - it works fine. When I try to build a GUI and bind the symbol to led (XDS) it will connect to the board and download the program, but the LED indicator does not update and the LED on the board does not flash.
Any ideas about what I am doing incorrectly would be helpful. Also, when I try to bind the widget value to my global variable (led) it does not show up as an option for binding when pressing ctr-space.
Here is the code.
// Included Files
//
#include "driverlib.h"
#include "device.h"
volatile uint16_t led; // This is for exporting to GUI
//
// Main
//
void main(void)
{
//
// Initialize device clock and peripherals
//
Device_init();
//
// Initialize GPIO and configure the GPIO pin as a push-pull output
//
Device_initGPIO();
GPIO_setPadConfig(DEVICE_GPIO_PIN_LED1, GPIO_PIN_TYPE_STD);
GPIO_setDirectionMode(DEVICE_GPIO_PIN_LED1, GPIO_DIR_MODE_OUT);
//
// Initialize PIE and clear PIE registers. Disables CPU interrupts.
//
Interrupt_initModule();
//
// Initialize the PIE vector table with pointers to the shell Interrupt
// Service Routines (ISR).
//
Interrupt_initVectorTable();
//
// Enable Global Interrupt (INTM) and realtime interrupt (DBGM)
//
EINT;
ERTM;
//
// Loop Forever
//
for(;;)
{
//
// Turn on LED
//
GPIO_writePin(DEVICE_GPIO_PIN_LED1, 0);
led = 0;
//
// Delay for a bit.
//
DEVICE_DELAY_US(500000);
//
// Turn off LED
//
GPIO_writePin(DEVICE_GPIO_PIN_LED1, 1);
led = 1;
//
// Delay for a bit.
//
DEVICE_DELAY_US(500000);
}
}
//
// End of File
//