Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resuming from breakpoints broken with FreeRTOS #34

Open
cosberg-rzl opened this issue Jan 30, 2024 · 3 comments
Open

Resuming from breakpoints broken with FreeRTOS #34

cosberg-rzl opened this issue Jan 30, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@cosberg-rzl
Copy link

cosberg-rzl commented Jan 30, 2024

Describe the bug:
Setting breakpoints seems to (mostly) work, however resuming from them doesn't appear to work at all. The editor freezes for a bit, then re-enters the same breakpoint you were just at. This happens for "step over", "step into", and "continue". The app is essentially stuck in this state until you reset it externally. While stuck here, most other features seem to generally work. There's an error in the debug console that appears whenever you try to continue from this state:
Error: Unknown or ambiguous symbol. _tx_thread_created_ptr

To Reproduce:
Probably difficult without our project (which we of course can't provide). The steps are pretty simple though, just setting a breakpoint is enough.

Environment:

  • OS: Windows
  • Embedded Workbench: ARM
  • Embedded Workbench version: 9.30.1 and 8.32.1 are both installed.
  • VSC Extension version: Latest at time of writing (v1.30.4)

Additional context:
You're still stuck even if you remove all breakpoints from here, and we're specifically using the "attach to running target" mode with a custom launch.json as the extension doesn't seem able to pick up our settings correctly on its own.

@cosberg-rzl cosberg-rzl added the bug Something isn't working label Jan 30, 2024
@jlonnberg
Copy link
Collaborator

@cosberg-rzl Thanks for the report.
We've added the full support for attach to running target in EWARM 9.40, which is primarily related to the leave-target-running command to avoid an unwanted stop when a debug session ends.

  • Which driver, e.g., I-Jet or JLink, are you using for the project? Can you provide use the launch.json?
  • Moreover, are you running with the leave-target-running option set during the first session to avoid terminating the target?
  • Does the same thing work in the Embedded Workbench?

@cosberg-rzl
Copy link
Author

cosberg-rzl commented Jan 31, 2024

Which driver, e.g., I-Jet or JLink, are you using for the project? Can you provide use the launch.json?

It's an I-Jet. Here's my launch.json, with some sensitive paths edited out:
https://hastebin.skyra.pw/abemadiqes.swift

Moreover, are you running with the leave-target-running option set during the first session to avoid terminating the target?

Yep, as far as I know. It does seem to correctly attach at least.

Does the same thing work in the Embedded Workbench?

Yeah, we don't have any problems in the IAR IDE with any of the debugging options.

@jlonnberg
Copy link
Collaborator

So, I cannot see anything strange here.
Can you please share the debug session output for a session where the problem occurs?
Moreover, can you start the session with the option "--drv_communication_log=./cspycomm.log" added and send us the log-file?

@jlonnberg jlonnberg self-assigned this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants