Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Software Reset

I am trying to implement a software reset (from an incoming command on my system) using the code that is shown in many previous posts on this forum. This uses the following macro:

#define NIOS2_RESET()\

NIOS2_WRITE_STATUS(0);\

NIOS2_WRITE_IENABLE(0);\

((void(*)(void))NIOS2_RESET_ADDR)()

This macro is then called at an appropriate point in my code. However, when I try to compile this I receive a waring of implicit declaration for the middle two lines (NIOS2_WRITE_STATUS and NIOS2_WRITE_IENABLE) and a linker error for the same two lines. I guess I am missing something somewhere, but can anyone tell me what?? Note that this project is not using development kits/boards. Thanks for your help.

1 Reply