- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I run an application program on nios2, but it is rebooting every time when I run the program. The program is build by nios2 IDE 1.1 and run on the uclinux 1.3.
Could give me a direction , the system will reboot in what kind of circumstances? Thank you!Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sunclever
You need to run flat binaries on uClinux. This is done with elf2flt. You can get the IDE to set up you Rules.mak and Settings.mak, check out the reference guide. Then look at the post by OneNet (on the 29th of August), smcnutt gives a nice example on how to write a Makefile. Doug- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, but I used the elf compile tools, in fact I use nios II IDE 1.1 to compile it. And I can write Makefile correctly. But the error is still happening. Why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Without looking at your program, it's really difficult to tell. Unlike a system with memory protection, virtual memory, and all that good stuff... a errant pointer in an application could take down the entire system.
Are you doing a lot of pointer manipulation?
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