Forum Discussion
Altera_Forum
Honored Contributor
13 years agoOk I have a different issue. I setup the system in QSYS with the nios 2 processor reading from a on-chip rom that is initialized with an hex file. I tried some code with the nios 2 processor to write all ones to my slave device so that all lights would trigger, however when I compiled the code and tried it, it didnt work. Here is the code.
# include <stdio.h>
void main()
{
int* memory;
memory = 0x882000; // that is the memory address for my slave
*memory = -1;
}