microchip-pic-avr-tools / pymcuprog

a Python utility for programming various Microchip MCU devices using Microchip CMSIS-DAP based debuggers
MIT License
96 stars 22 forks source link

NO CMIS-DAP devices found #25

Closed mcsmark closed 2 years ago

mcsmark commented 2 years ago

Hi i use : pymcuprog ping I get this output: Connecting to anything possible pyedbglib.hidtransport.hidtransportbase - ERROR - No CMSIS-DAP devices found. Unable to connect to USB device

But the MLAB-SNAP is connected. with libusb i see this info bus/device idVendor/idProduct bus-0/\.\libusb0-0001--0x04d8-0x9018 04D8/9018

mcsmark commented 2 years ago

i conctacted hidapi and they say it is not a hid device so their lib will not work. so i wonder is mlab-snap ever tested?

xedbg commented 2 years ago

Yes, Snap is tested, and it is a HID device if its in AVR / EDBG / CMSIS-DAP mode. To get it into that mode, use Microchip Studio or MPLABX to make the switch by programming an AVR device.

mcsmark commented 2 years ago

thanks, yes that was the solution.