Forum Discussion
Altera_Forum
Honored Contributor
21 years agoWhy rebooting?
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!3 Replies
- Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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?
- Altera_Forum
Honored Contributor
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?