- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using the Nios Evaluation Kit here.
Given the following source#include <stdio.h>
int main()
{
int i;
for(i=0;i<10;i++)
printf("Hello From Nios\n\n");
return 0;
}
I've set the jtag uart as my stdout. What I get is the following: HHlloo rrmmNNiss
eelooFFoo Niiss
Helll rrmm iiss
HllooFFrmmNNoos
eell Frrm iiss
HHlll rommNNiss
eell Frro iiss
ello FFoo iis
eelooFFoo Noo
HHell rro Noos
I'm running this program on the onchip memory. It seems random: the output is different at every run. Any clue?
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi motumboe,
1. Try to set the reset address to sram or sdram other than on-chip memory, to see if it can work 2. run other applications to see if it can work. 3. examine in SOPC builer, system library in NIOS II IDE to see if anything is wrong with the setting. Hope it can help you a bit.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved :-)
I explain how, for anyone's benefit who may be having the same problem. As you correctly suggested, I checked out the System library in Nios II. It turned out that I had no system clock timer or timetamp timer. Setting a timer for each of them solved the problem http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi motumboe,
it's a very strange explanation, because the program you posted, doesn't use any timing function and you have no operating system that needs a system clock timer. Are u sure u haven't done other changes? or why does your design need a timer?
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