- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, can someone explain me what the NIOS II processod do (if it do someting) after the execution of a program.
For example let's suppose that we execute an hello word program on the processor; After the execution of the program what does the processor do?Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
? It's going to execute your code. If it's just a hello world it will print "hello world" and stay idle for ever
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is an infinite loop that is entered after main runs to completion. The loop will get cached and after an iteration you should see the Nios II masters idle (not access memory).
In the BSP/syslib settings is an option to remove this loop. This is done by turning off the 'clean exit' option but I wouldn't recommend doing so since you will not know how it'll behave after main exits. If you have a main that can't exit then in my opinion it is safe to disable this. Also for Nios II questions I recommend posting in one of these sections instead: http://www.alteraforum.com/forum/forumdisplay.php?f=37 You'll have more Nios II experts see your post that way :)
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