Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Why rebooting?

Altera_Forum
Honored Contributor II
1,265 Views

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!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
501 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
501 Views

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?

0 Kudos
Altera_Forum
Honored Contributor II
501 Views

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?
0 Kudos
Reply