Failed to Stop Debugging Session (SWD / JLink Ultra+)

Discuss how to use the features of Atollic TrueSTUDIO, including the editor, assembler, C/C++ compiler, linker, debugger, static code analysis and team collaboration tools.

Moderators: Markus Girdland, Mattias Norlander

Alexander_Zorn
Posts: 10
Joined: Wed Mar 20, 2019 7:06 am

Failed to Stop Debugging Session (SWD / JLink Ultra+)

Postby Alexander_Zorn » Wed Mar 20, 2019 7:14 am

Hello,

very frequently i have a problem, while stopping the debugging session to an STM32 (STM32L475RE) via SWD.

I figured out that it may depend on the restoring register feature.

=================================
### log when everything looks fine:
...
Resetting target
Read 2 bytes @ address 0x080001CE (Data = 0x2300)
Read 2 bytes @ address 0x080001CE (Data = 0x2300)
Read 2 bytes @ address 0x080001CE (Data = 0x2300)
Setting breakpoint @ address 0x080001CE, Size = 2, BPHandle = 0x0001
Setting breakpoint @ address 0x080001DE, Size = 2, BPHandle = 0x0002
Starting target CPU...
...Breakpoint reached @ address 0x080001CE
Reading all registers
Read 4 bytes @ address 0x080001CE (Data = 0x607B2300)
Removing breakpoint @ address 0x080001CE, Size = 2
Removing breakpoint @ address 0x080001DE, Size = 2
Read 4 bytes @ address 0xE000ED04 (Data = 0x00000000)
Read 4 bytes @ address 0xE000ED2C (Data = 0x00000000)
Read 4 bytes @ address 0xE000ED28 (Data = 0x00000000)
Read 4 bytes @ address 0xE000ED38 (Data = 0xE000EDF8)
Read 4 bytes @ address 0xE000ED34 (Data = 0xE000EDF8)
GDB closed TCP/IP connection
GDB closed TCP/IP connection

=================================
### log when IDE hangs and debugging can't be stopped:
...
Reading all registers
Read 4 bytes @ address 0x080001D8 (Data = 0x73DEF503)
Performing single step...
...Breakpoint reached @ address 0x080001DC
Reading all registers
Read 4 bytes @ address 0x080001DC (Data = 0x687B607B)
Performing single step...
...Breakpoint reached @ address 0x080001DE
Reading all registers
Read 4 bytes @ address 0x080001DE (Data = 0xE7F7687B)
Removing breakpoint @ address 0x080001DE, Size = 2
Read 4 bytes @ address 0xE000ED04 (Data = 0x00000000)
Read 4 bytes @ address 0xE000ED2C (Data = 0x00000000)
Read 4 bytes @ address 0xE000ED28 (Data = 0x00000000)
Read 4 bytes @ address 0xE000ED38 (Data = 0xE000EDF8)
Read 4 bytes @ address 0xE000ED34 (Data = 0xE000EDF8)
GDB closed TCP/IP connection
GDB closed TCP/IP connection
Restoring target state and closing J-Link connection...
Shutting down...


I'm using Atollic V9.3.0 (Build id: 20190212-0734) with Segger J-Link V6.42b (i have same issues with other segger Versions)

hopefully someone can help me
thank you guys

EminYagmahan
Posts: 3
Joined: Wed Mar 20, 2019 3:55 pm

Re: Failed to Stop Debugging Session (SWD / JLink Ultra+)

Postby EminYagmahan » Wed Mar 20, 2019 4:25 pm

Hello,

I would like to confirm the behavior. I use the same processor with ST-LINK V2 and SWD. Unfortunately there is currently no way around it except to restart the IDE.

Best regards
Emin Yagmahan

kurta999
Posts: 22
Joined: Thu Sep 06, 2018 8:27 am
Location: Slovakia
Contact:

Re: Failed to Stop Debugging Session (SWD / JLink Ultra+)

Postby kurta999 » Wed Mar 20, 2019 4:28 pm

For me this happens sometimes 2-3x on a daily basis. I would be very greateful for a fix.

Alexander_Zorn
Posts: 10
Joined: Wed Mar 20, 2019 7:06 am

Re: Failed to Stop Debugging Session (SWD / JLink Ultra+)

Postby Alexander_Zorn » Thu May 02, 2019 4:21 am

Hello again,

in our company we are using Atollic True Studio on 4 different machines, of course with 4 different host configurations. The only thing in common is, that they all run linux.
On every machine we have this issue, sometimes every second debug run, sometimes only every fifth.

Is there a solution for fixing this?

thank you!

Lawrence
Posts: 63
Joined: Mon Nov 09, 2015 5:13 pm

Re: Failed to Stop Debugging Session (SWD / JLink Ultra+)

Postby Lawrence » Thu May 02, 2019 6:25 am

Get windows machine.

Never seen a company with linux PC.

Macs, linux machines belong in garbage bin.

Alexander_Zorn
Posts: 10
Joined: Wed Mar 20, 2019 7:06 am

Re: Failed to Stop Debugging Session (SWD / JLink Ultra+)

Postby Alexander_Zorn » Thu May 02, 2019 7:08 am

@Lawrence: Thank you for your helpful answer, but switching to Windows is definitely no option.

Alexander_Zorn
Posts: 10
Joined: Wed Mar 20, 2019 7:06 am

Re: Failed to Stop Debugging Session (SWD / JLink Ultra+)

Postby Alexander_Zorn » Thu May 02, 2019 9:25 am

I found another thread, with similar topic:

viewtopic.php?f=6&t=1219&p=3412

Lawrence
Posts: 63
Joined: Mon Nov 09, 2015 5:13 pm

Re: Failed to Stop Debugging Session (SWD / JLink Ultra+)

Postby Lawrence » Sat May 04, 2019 7:58 am

Try the new ST cube Library.

Advertised as supporting Linux.

Have fun with your Linux running all the nice CAD-CAM software and physics sims.

Those can come in handy when you design robots. On a nice heavy and powerful laptop.

Sabia
Posts: 2
Joined: Sun Feb 25, 2018 4:58 pm

Re: Failed to Stop Debugging Session (SWD / JLink Ultra+)

Postby Sabia » Sat May 04, 2019 5:36 pm

Lawrence wrote:Get windows machine.

Never seen a company with linux PC.

Macs, linux machines belong in garbage bin.


Sounds like you don’t have much experience.

On the topic, I also have the issue that the OP has, on a WINDOWS 10 machine with J-Trace debugger. So there.

Alexander_Zorn
Posts: 10
Joined: Wed Mar 20, 2019 7:06 am

Re: Failed to Stop Debugging Session (SWD / JLink Ultra+)

Postby Alexander_Zorn » Mon May 06, 2019 5:07 am

Lawrence wrote:Try the new ST cube Library.

Advertised as supporting Linux.

Have fun with your Linux running all the nice CAD-CAM software and physics sims.

Those can come in handy when you design robots. On a nice heavy and powerful laptop.


I don't think the problem is caused by any firmware running on the target, so why should it better to use another HAL? For me it looks like a problem with controlling the GDB from Segger or the Interface from Atollic to the GDB.

Btw. in our company with about 5000 employees there is no need for an embedded Hard- and Softwaredeveloper to do stuff like CAD or Simulations, there are other departments (of course with other hardware) for this topics. And we need linux host for other embedded linux projects.

But thank you again for your very, very helpful answer. Persons like you will make this forum great, thank you for that.


Return to “Atollic TrueSTUDIO tool discussions”

Who is online

Users browsing this forum: No registered users and 9 guests