Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- @grit the problems are due to the caching of the data. The information is only written in the cache and not forwarded to the IO. You could solve your problem either by adding the attribute "volatile" to your IO variable as such:
#define Switches (volatile char *) 0x0001800# define LEDs (volatile char *) 0x0001810
void main()
{ while (1)
*LEDs = *Switches;
} or by following the suggestions by Daixiwen. Hope this helps... --- Quote End --- Hi, Sanmao, Thanks a lot for your adivce. I will try that out. =)