Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThe macros you are using should only be used with a PIO component. To access memory, you can either use a C pointer, or the IORD/IOWR macros:
IOWR(SDRAM_0_BASE,sdram_index,data) IORD(SDRAM_0_BASE,sdram_index) Be careful if you also use the sdram for anything else (reset/exception vectors, application, heap...) as you may crash your application.