- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You probably forgot to include nios2.h.
#include "nios2.h"

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page