- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was trying to use the Hi-Res Timer, but NIOS II IDE Version 1.1.0 gave me the following error
"Error undefined reference to `alt_timestamp_start' hello_world.c hello_world_0 line 24" for the following simple code: # include <stdio.h># include <alt_types.h># include "sys/alt_timestamp.h" int main() { printf("Hello from Nios II!\n"); alt_timestamp_start(); // Tried to use Hi-Res Timer return 0; } The example "Dhrystone" did work. Thanks for any suggestions.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is this error happening at the linking stage?
If so then the problem may be that you haven't selected a timestamp timer. Please look at the system library properties page and check that you have selected a hardware device for both timers.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I learned that I had to right click on the project and bring up the "system Library Properties" page and enable "high res timer" there.
Thanks!
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