Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHi Waleedabbasi,
I too not able to Switch on the HPS_LED0 to HPS_LED3, using the below code.. I am using ARM-DS5 Compiler for compiling and debugging. // initialising the memory locations of the registers using # define gpio1_gpio_swporta_ddr (*((volatile unsigned long *) 0xFF709004)) # define gpio1_gpio_swporta_dr (*((volatile unsigned long *) 0xFF709000)) # define clkmgr_bypass (*((volatile unsigned long *) 0xFFD04004)) # define clkmgr_en (*((volatile unsigned long *) 0xFFD04060)) void Init_showactivity(void); void Init_clock(void); int main() { Init_clock(); Init_showactivity(); while(1); } void Init_showactivity(void) { gpio1_gpio_swporta_ddr |= 0x0000F000; gpio1_gpio_swporta_dr &= 0xFFFF5FFF; } void Init_clock(void) { clkmgr_bypass = 0x00000019; //clkmgr_en = 0x00000006; } Have you got any solution or code for blinking the LED. Could you please guide me..