Forum Discussion
Altera_Forum
Honored Contributor
21 years agohowto start debugger with reset ?
I want to start the debugger with resetting the cpu before starting. This is to get a defined behavior of the system as it would be started with poweron. Otherwise each program starts is unde...
Altera_Forum
Honored Contributor
21 years agonios2-gdb-server only resets its CPU if it has to because always resetting it will break some multiprocessor systems.
As you've figured out, there is a parameter which can be added to nios2-gdb-server which will force nios2-gdb-server to always reset the CPU. If you want to integrate this into the IDE then you should hack the shell script nios2-download to set --reset-target if an elf file is provided. Note that the IDE calls nios2-download twice at the moment, once before nios2-terminal and once after. Hacking your shell scripts is of course not supported by Altera.