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

pyedbglib-based GDB server? #4

Open
maxgerhardt opened this issue Jan 14, 2023 · 1 comment
Open

pyedbglib-based GDB server? #4

maxgerhardt opened this issue Jan 14, 2023 · 1 comment

Comments

@maxgerhardt
Copy link

maxgerhardt commented Jan 14, 2023

With this library being able to talk to a debugger probe like the mEDGB et cetera, does Microchip have plans to create another program that opens up a GDB server and uses this library to facilitiate the low-level debugging?

I've seen something like this in the ATMega4809 + UPDI configuration at https://github.com/stemnic/pyAVRdbg/blob/master/main.py, but it's definitely not feature-complete or working for all MCUs.

I was specifically thinking about the ATMega328P XPlained-mini, which has a mEDGB probe on-board and could speak debugWire to the ATMega328P.

@xedbg
Copy link

xedbg commented Jan 16, 2023

Hi @maxgerhardt,
Background: pyedbglib and pymcuprog are utilities that we use internally primarily for CICD testing of our Curiosity Nano kits. Since these kits are "EDBG based" the same protocol effectively applies to these older tools, and older interfaces like debugWIRE. So pymcuprog was built with stubs to support these, but they are not entirely populated. We use very low-level testing of debug functionality with 'fixed' test patterns, so we don't run through GDB.
So: Microchip has no formal plans to expand this offering, but I would be open to supporting this effort were it to get some momentum. To keep our core functionality separate from these 'side-projects', the code in the repo you refer to has been adapted into this non-Microchip repo:
https://github.com/mraardvark/pyavrdebug
which depends directly on functionality inside pymcuprog.
Yes, it would be nice to expand this further (but at this point its not formally on our radar)

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

2 participants