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

Debugging eCos

Altera_Forum
Honored Contributor II
1,105 Views

Hello Community, 

 

I have some problems with eCos and debugging! I use the Altera Stratix Development Board. There are a JTAG Interface. Now I want to develop an application for eCos but I can´t debug any application with the JTAG interface. If I want to debug an internal eCos function there occurs an "no sources found" error! What I have to reconfig in my ConfigTool to debug applications and eCos functions with the JTAG interface? Or I have to debug with RedBoot? When I build a RedBoot Library I got an global pointer exception! I trying with the Linke -G0 Flag but it does´t work! Can anybody help me?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
370 Views

Hello, 

 

I have found my failture! I had the "Build common GDB stub ROM image" enabled. This are Global Build options: 

 

- Global Compiler settings: -g -G0 -O0 ... 

- Global Linker settings: -g -G0 ... 

- Build common GDB stub ROM image: disabled 

 

regards,  

neowork
0 Kudos
Altera_Forum
Honored Contributor II
370 Views

Quote:- What I have to reconfig in my ConfigTool to debug applications and eCos functions with the JTAG interface?  

 

 

Ans :- In the Nios2ConfigTool, eCos HAL -> Nios2 architecture ->Debug Device 

Make it /dev/uart1 

 

Similarly select the console device also based on your need. 

 

Hope this is what u meant! 

 

Thanks 

Akhil
0 Kudos
Reply