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

Breackpoints on the newlib source code

Altera_Forum
Honored Contributor II
991 Views

I have a small problem using NIOS II IDE. 

 

Suppose to create a Hello world application. 

 

Open the instruction set simulator, and start debugging the application. 

 

I would like to put some breackpoints in the newlib source code (like in "printf"), but it seems I can't. In fact, I can put breakpoints only on the source code contained in the "hello_world_0" Project. 

 

The thing it happens to me is that when I step into a newlib function (e.g., printf), the left side bar where I can add breackpoints disappear :-) 

 

What I'm doing wrong?  

 

Thanks for all, 

 

Paolo
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
267 Views

You need to create and Advanced project in the IDE which points at the newlib source code and then you're in business. 

 

To do this from the IDE go File->New->Project Select Altera Nios II Advanced C/C++ Project and then the location for this is underneath your install in the directory altera\kits\nios2\bin\nios2-gnutools\src\newlib
0 Kudos
Altera_Forum
Honored Contributor II
267 Views

Works great! Thanks :-) 

 

Paolo
0 Kudos
Reply