Forum Discussion
Altera_Forum
Honored Contributor
12 years agoincompatible type for argument 2 of '__builtin_stwio'
I'm trying to write to memory using the IOWR_32DIRECT function, however I'm receiving an error complaining about an incompatible type. I'll have to admit that it's difficult to find the specifics on ...
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Any structures used to (directly) map io registers should also have all their fields marked 'volatile'. --- Quote End --- Which is a huge oversight I made too - I should have written:
# define MyPeripheral ((s_MyPeripheral volatile *) (0x80000000UL | MY_PER_BASE))
Bill