We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I am trying to code on TM4C123GH6PM for the first time on keil. I have installed the necessary package from 'Pack Installer' but I am now facing two issues. I dont have a board, but what i expect is to see a led glowing on PF3 pin of PORTF.
This is my code:
#define SYSCTL_RCGCGPIO_R (*(( volatile unsigned long *)0x400FE608 ) )#define GPIO_PORTF_DATA_R (*(( volatile unsigned long *)0x40025038 ) ) #define GPIO_PORTF_DIR_R (*(( volatile unsigned long *)0x40025400 ) ) #define GPIO_PORTF_DEN_R (*(( volatile unsigned long *)0x4002551C ) )
int main ( void ){SYSCTL_RCGCGPIO_R |= 0x20; // Enable clock for PORTFGPIO_PORTF_DEN_R = 0x0E; // Enable PORTF Pin1, 2 and 3 as a digital pinsGPIO_PORTF_DIR_R = 0x0E; // Configure ORTF Pin1, 2 and 3 digital output pins while (1) { GPIO_PORTF_DATA_R |= 0x02; // turn on red LED }}
Here are the pop up that i get everytime i try to debug:
This is on my build output screen:
I dont have a ULINK2 and nothing is plugged into my USB ports.
Please help
Hi, Thank you for replying. I meant i want to see that specific pin on port[connected to led] blinking. I have not worked with Tiva board before but I have worked with lpc2148 on keil wherein for a blink code you could see something like this[below]:
[the squared thing shows blinking] Though I have not connected the board...it is still showing me results.
So this is what I want to see happening with my TIVA code.