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
mySP said:I dont have a board
So what did you expect your code to run on? Thin air?
mySP said:I dont have a ULINK2
So it should come as no surprise that uVision says that it can't find a ULINK2?!
Did you mean to use the Simulator instead?
https://www.keil.com/support/man/docs/uv4/uv4_simulation.htm
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.
Thank you sir for replying and also for the correction :)
How can I get rid of that [ULINK2 device not found] pop up, if i want to go for simulation?
You configure your project to use the simulator instead of trying to find an external hardware target.
The manuals are all available online: https://www.keil.com/support/man_arm.htm
Specifically: https://www.keil.com/support/man/docs/uv4/uv4_dg_debug.htm