Forum Discussion
Altera_Forum
Honored Contributor
12 years agoShare variables between verilog file and niosII application file(.c file)
Hello, I am trying to do a small concept where in I have created a project on DE2-115 board. In the same project, I have also implemented niosII processor and written a simple program to toggle th...
Altera_Forum
Honored Contributor
12 years agoSure, I see you are really confused.
And so am I, since I can't understand what's you point. I guess SharedVar is defined and assigned inside st_0 MM slave device, but you are trying to read its value from onchip_memory2 !!! Then, that's the main problem; the correct base address to be used in IORD is 0x41040. Anyway there are other major flaws and I think you need to learn the basics of Nios system before you can go further with this design.