Forum Discussion
Altera_Forum
Honored Contributor
14 years agoError building a Nios2 project HEX file/On chip RAM
Dear all, I started a couple of day ago working on the tutorial SOPC builder with VHDL. The mini code as many of you know it already is: # define Switches (volatile char *) 0x0003000# de...
Altera_Forum
Honored Contributor
14 years agoOnce you get that sorted out I would recommend making your code cache coherency safe. Using pointers will not bypass the data cache (if one is present) so your code will most likely keep writing the same value out to the LEDs no matter what button combination you push. The PIO comes with cache bypassing macros, you can find them in altera_avalon_pio_regs.h