I'm having a simple problem with IAR Embedded Workbench, programming an STM32 using an ST-LINK/V2 programmer. I'm trying to run a program that temporarily switches off the JTAG pins, so I can't run it all the way through in debug mode. What I would like to do is load and run the program (without debugging), then connect the debugger to the running program to check a few values and make sure it actually ran.
I can't figure out how to do either of these steps with IAR. I've tried doing a "Download active application" followed by a "Debug without Downloading," but either the program didn't start running or when the debugger connected it reset the program. When I try to use the "Attach to Running Target" option, I get an error message saying "The debugging session could not be started."
Any ideas on how to do this?