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

When OpenOCD starts up slowly or abnormally, the IDE will report an error. #625

Open
laomaolaile opened this issue Feb 10, 2025 · 6 comments

Comments

@laomaolaile
Copy link

When OpenOCD starts up slowly or abnormally, the IDE will report an error.

Image

Image

Is it possible to consider allowing the OpenOCD startup timeout period to be configurable by the user?

Image

@ilg-ul
Copy link
Contributor

ilg-ul commented Feb 10, 2025

This might be a possibility, but I'd be also interested to know the reason why openocd takes so long to start.

@TommyMurphyTM1234
Copy link

@djanovy
Copy link

djanovy commented Feb 10, 2025

Just a guess, but would adding the set remotetimeout work?

Image

@ilg-ul
Copy link
Contributor

ilg-ul commented Feb 10, 2025

I'm not an openocd user and I don't have any experience with these timeouts, so I don't know if this configurable timeout is helpful or not.

If you do, please suggest a PR and I'll consider it.

@TommyMurphyTM1234
Copy link

Just a guess, but would adding the set remotetimeout work?

Image

I don't think so. That helps when OpenOCD is up and running but, for some reason, slow to respond to GDB Remote Serial Protocol commands and needs more time before timeouts much in.

What this issue is referring to is where Embedded CDT is trying to launch OpenOCD in the first place but, for some reason, it takes "too long" to launch, and Embedded CDT times out, gives up and reports an error.

I have no idea what the timeout used here is, if it's some general timeout in Eclipse/CDT or specific to the Embedded CDT OpenOCD launch support, and if it's configurable via eclipse.ini or some other configuration file even if not via the GUI.

@laomaolaile
Copy link
Author

My scenario is Eclipse installed on a workstation, and there may be some software interception in between, such as antivirus software. In this case, there may be a timeout situation. Or openocd could have been directly killed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants