Forum Discussion
Altera_Forum
Honored Contributor
21 years agoprogramatically set the PC
Hello, I have a system with a 1s10 and Nios II with an exception address pointing to an internal Boot Monitor ROM. I have built (in SOPC builder) into the Boot ROM a .c file which turns on som...
Altera_Forum
Honored Contributor
21 years agoHi John,
You can do something like this:#define SOME_ADDR 0x ....
void whatever ()
{
void (*foo)(void) = (void (*)(void)) SOME_ADDR;
...
foo(); /* call SOME_ADDR */
} Regards, --Scott