Altera_Forum
Honored Contributor
20 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 undefined !!! I checked the command line of nios-gdb-server and found the following switch -r/--reset-target Always reset the target processor before use I started a NIOS Shell and isued the command and got the following output: [SOPC Builder]$ nios2-gdb-server -r Using cable "USB-Blaster [USB-0]", device 2, instance 0x00 Resetting and pausing target processor: OK Leaving target processor paused I saw the cpu stopping and PIO ports get cleared, that means reset really seams to work. Now I do the following: 1. issue reset in nios shell 2. start program in nios ide debugger 3. stop program in nios ide debugger new cycle 1. issue reset in nios shell ... can this be done automatic from nios ide ??? does this reset really works on all cpu peripherals ??? why does ide debugger has no option to reset the cpu before launching debugger ??? thanks