Forum Discussion
Altera_Forum
Honored Contributor
11 years agoI guess this happens because Nios uses byte addressing, while C code unsigned int* forces 32bit addressing. Try to cast with unsigned char* .
Anyway the best way to access qsys component registers is through IOWR/IORD macros, which automatically take care of matching the device bus size.