6
\$\begingroup\$

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?

asked Jul 1, 2013 at 15:48
\$\endgroup\$
2
  • 4
    \$\begingroup\$ This question is not too bad. It deals with usage of an IDE s/w, whose major users are EEs. Voting to leave open. \$\endgroup\$ Commented Jul 1, 2013 at 16:40
  • \$\begingroup\$ No idea how to solve the problem under IAR, but with the open source stlink tool on github it's trivial to connect GDB over SWD to an already running target - but not very informative unless you have the .elf and debug symbols, which would probably require rebuilding your project with a GCC based toolchain. \$\endgroup\$ Commented Jun 30, 2014 at 13:42

1 Answer 1

-1
\$\begingroup\$

Old topic, no answer. For anyone who comes here, the solution is explained by IAR at THIS link.

MrGerber
1,6362 gold badges14 silver badges21 bronze badges
answered Oct 1, 2016 at 21:47
\$\endgroup\$
2
  • 3
    \$\begingroup\$ Stack exchange sites require that answers have stand-alone value, not simply be links to something external. \$\endgroup\$ Commented Oct 2, 2016 at 2:04
  • 1
    \$\begingroup\$ It will help people out anyways, specially because this question is kind of the first result popping out on google. \$\endgroup\$ Commented Oct 2, 2016 at 11:41

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.