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++
12747 Discussions

How to debug linux application?

Altera_Forum
Honored Contributor II
1,296 Views

I can debug the applications of altera NiosII project. But I donnot know how to debug linux application. Can someone tell me how to debug linux applications?  

 

Thanks!
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
444 Views

The basic steps are: 

 

(1) Build your app using -O0 and -g compiler flags 

(2) Ensure that you build the <app>.gdb target 

(3) upload <app>.exe to your development board 

(4) run the following command from within Nios II Linux 

 

# debug <app> 

 

(5) create and run a Nios II Linux application debug configuration from within the Nios II IDE 

 

For more information, please see the Reference Guide. If you are still experiencing problems, please feel free to contact me.
0 Kudos
Reply