Other Parts Discussed in Thread: EK-TM4C123GXL
This is a really basic question, but I just got a EK-TM4C123GXL and tried to write a simple program to blink the LED.
On connecting the board to my PC for the first time, the LED glowed ok. But on running my program it does not glow anymore.
int main()
{
*((unsigned int *)0x400fe608U) = 0x20U;
*((unsigned int *)0x40025400U) = 0x0eU;
*((unsigned int *)0x4002551cU) = 0x20U;
while(1){
*((unsigned int *)0x400253fcU) = 0x02U;
*((unsigned int *)0x400253fcU) = 0x00U;
}
return 0;
}
I'm wondering if I have damaged the LED unknowingly?