Hi,
Is there a button to reset the microcontroller? After program it sometimes is necessary perform a reset more than one time to debug or any reason and is more comfortable to do it from keil instead of power cycling.
Thanks
Data package....
Buy a SEGGER J-Link or use one that you currently own.
Run J-Link Commander from the Start Menu or JLink.exe from a command prompt.
J-Link>connect ; connect to the J-Link Device J-Link>r0 ; will drive the reset line low on the J-Link J-Link>r1 ; will drive the reset line high on the J-Link
My guess is most JTAG devices have a simple control program that you could do something similar with.
or set up an entry in the uVision 'Tools' menu ...
all solutions are very impractical... a button in the IDE is the right solution
How about the RST icon in the debugger window? It toggles the reset line on the JTAG.
Solution:
As Andy Neil told me the best is to add a custom icon in tools and use the stlink command line utility as follows:
1. Tools -> Customize Tools Menu 2. Add new and name it as "Reset MCU" (example) 3. Command: the path to the st link command line utility called ST-LINK_CLI.exe 4. Arguments: -c -rst
With this you will add a new button called "Reset MCU" and when you click on it it will reset the MCU without needing enter in the debug mode.
@Robert: He's already said that he doesn't want to do that!
I really don't understand the requirement here - but maybe others might agree that it's an essential feature ... ?
Yes, but this does almost exactly what the OP is asking for and the reasons given for not wanting to do it dont exist.
1) You do not need to start in Debug mode. issue resolved.
2) when the issue happens - connect to board. DO NOT start debugging or load code. Just connect to board. This is not in any way slow.
3) Now you can use the RST button in the IDE just as you would like.