Forum Discussion
Altera_Forum
Honored Contributor
19 years agoeCos and the Nios IDE 6.0
I am having tremendous problems using the Nios IDE to perform debugging on an eCos based Nios 2 design. Most of the breakpoints I put in do not stop the processor (unless I put them in from the "dis...
Altera_Forum
Honored Contributor
19 years agoThat sounds like you are trying to single-step through optimised code. ecos sets the optimisation level to 3 by default, which changes the code execution order and makes single stepping difficult to do. If you haven't done this already then change the optimisation to zero in the ecos configuration tool, then do a clean build of ecos and your application.
The optimisation level is set in the "Global build options" folder in the ecos configuration tool. Change the global compiler flags from -O3 to -O0 to switch off the optimisation. Mike