-
Notifications
You must be signed in to change notification settings - Fork 4
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
not an issue but a question #3
Comments
Hi @mcsmark, However, pymcuprog is primarily targeted towards AVR UPDI devices, and the other device families are only partially supported for experimental/test purposes - are you planning to use an UPDI device? If so - you can install the latest beta pymcuprog from the test.pypi.org, and use the newly-added debug functions, for example: (note - this does not program the flash)
|
ha, that is great news. first of all, thank you for taking the time to reply. i first wanted to use pymcuprog but i see i need the beta. i do use updi interface and i understand it will only work for that. i just tried with the beta but there seems to be some problem. INFO: Manufacturer: Microchip Technology Incorporated so that works well. but the avr.start_debugging() hangs in this code : |
Oh... I can try to replicate a similar session here - which Snap debugger FW version are you using? |
Connecting to anything possible it should be the latest since it was updated with firmware just few days ago using mplax-x |
OK, that should be fine. Two things to try next:
|
ok, thanks, i will try that. |
ok, that fixed the problem. i see some errors when i use stop_debuggin INFO: Stop debugging session dont know if that is normal or not. but it works. i am really happy with this 👍 |
Well, thanks for the feedback - we will take a look to see what might cause this. |
ok, great. i will test all functions, if i find a problem i share it here. |
ok so the good news it all works perfect. that is using HID transport. But now there is a new SNAP V2 which does not have a HID driver anymore. A real pity since HID does not need users to install drivers. |
The Snap firmware you are referring to is the same Snap firmware that has been used to program PIC devices for many years already - now it also has support for AVR devices, so MPLAB no longer switches to an "AVR mode". To access the HID mode and continue to use pyedbglib, use Studio to switch the tool into that mode. |
Aha, so there is no mode anymore and an entire new protocol that can do all. So pymcuprog can also not use this new protocol. |
The "V2" protocol put device support details on the outside of the firmware (ie: data driven from the host) so its very different and in no useful way compatible with EDBG. This means that the Snap firmware remains unchanged when new devices are released. (FYI avrdude has reverse-engineered this protocol if you are interested in the details.) |
thanks for this info. I found some info about switching from PIC to AVR and vice versa. But that works only with V1. When i understand you, the V2 bulk driver is also supported in AVRDUDE and does not need to switch into HID mode. It will switch modes but without going into HID mode. |
Yes, V2 does not have a mode switch (no longer dual-boot) and also has nothing to do with pyedbglib. |
thanks, it is clear to me now :-) |
i wonder what the best way is to ask a question? I do not have an issue but more some questions about API usage.
i would like to use the debug functions from avr8protocol.
like step,run, etc. but i have no idea how to setup a session so i can use these commands.
The text was updated successfully, but these errors were encountered: