Hello,
I am walking through the TM4C123G Launchpad Workshop Workbook, currently working on lab 2. After adding a watch expression for ui8LED just like the book says, I keep getting an error saying 'identifier not found' under the 'value' column. I tried the same thing with a 'test' variable with no luck. Optimization is turned off, and debug model is full symbolic debug -g. How do I fix this?
Here is my code:
#include <stdint.h>
#include <stdbool.h>
#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
int main(void)
{
uint8_t ui8LED = 2;
int test;
SysCtlClockSet(SYSCTL_SYSDIV_4|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3);
while(1)
{
// Turn on the LED
GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3, ui8LED);
// Delay for a bit
SysCtlDelay(2000000);
// Cycle through Red, Green and Blue LEDs
if (ui8LED == 8) {ui8LED = 2;} else {ui8LED = ui8LED*2;}
test++;
}
}
expression pane

