4
\$\begingroup\$

I'm using

  • STM32F103C8T6
  • Atollic TrueStudio
  • STLink2.1

Error I get when debugging:

enter image description here

Debug configuration set in TrueStudio:

enter image description here

What worked before was in SW4STM32/Eclipse, with the following settings. I always had to change the reset mode from Connect under Reset to Software System Reset. However, this option is not available in the debug configuration of True Studio.

What can I do to use debugging successfully with STLink2.1 on Atollic TrueStudio?

Pic

\$\endgroup\$
5
\$\begingroup\$

I found the answer elsewhere but I will repeat it here for other people:

  • Close Atollic TrueStudio (not sure if this is needed)
  • Startup ST Utility
  • Press the Reset button and keep it pressed
  • Select Erase Chip (in Target menu)
  • Release the Reset button
  • The chip is erased
  • Close ST Utility
  • Startup Atollic TrueStudio

Debug should work now

\$\endgroup\$
  • 1
    \$\begingroup\$ Saved me a lot of trouble, thanks! \$\endgroup\$ – mega_creamery May 14 at 9:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.