pyocd / pyOCD

Open source Python library for programming and debugging Arm Cortex-M microcontrollers
https://pyocd.io
Apache License 2.0
1.13k stars 484 forks source link

Eclipse and pyOCD v0.28.2, pyOCD can not start debugging. #990

Closed lennvn closed 4 years ago

lennvn commented 4 years ago

I updated pyCOD to v0.28.2. When I launch the pyOCD debug configuration, pyCOD stop at "0001590:INFO:server:Semihost server started on port 4444 (core 0)" and the there's no debug window. I used pyOCD 0.22.1 before.

danielRep commented 4 years ago

Afaik, in the case that you're using "Embedded C/C++ PyOCD Debugging" plugin as me, I experience the same issue as you. The problem is related with the use of the deprecated pyocd-gdbserver which is typically setup. I was able to get things working by starting the "pyocd gdb" server externally in a terminal. Hope that works for you.

PS: I didn't test it, but this (https://github.com/pyocd/pyOCD/commit/1ba9b17f3288aaeecb168116b1ff556c678bc105) @flit commit could be possibly related with that issue.

flit commented 4 years ago

Yes, #988 fixes the problem with starting pyocd-gdbserver. (The problem was reported by @joergw on the Eclipse Embedded CDT forum. I really should have created an issue here!)

I'm going to go ahead and close this issue since the fix is committed. A 0.28.3 version will be released probably today or tomorrow that includes the fix.

I should mention that I'm working on a series of improvements to the pyocd plugin in Eclipse Embedded CDT. Unfortunately that's been stalled because I can't seem to get a working development environment (the old docs no longer work, Liviu hasn't written new docs, and I've almost no experience with Eclipse development, which is very complex).

danielRep commented 4 years ago

That kind of improvements will be great @flit !