Altera_Forum
Honored Contributor
10 years agoUsing IOWR IOED on Cyclone 5 SoC with HPS
Hi,
I have the standard ALTERA timer_core element in (Cyclone 5 SoC with HPS) FPGA. I try to access its registers using: # define IOWR(offset, x, data) (*((volatile UINT32*)(offset)) = data) // WR access # define IORD(offset, x) (*(volatile UINT32*)(offset)) // RD access However, I get exception. Using the same macros for HPS peripherals is fine, no problem... I wonder, what's wrong? What should I use instead? Thanks! Ran