Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:pymcuprog [2022/11/10 01:52] – darron | tools:pymcuprog [2023/09/30 15:12] (current) – [Microchip DM164140 - MPLAB Xpress Evaluation Board] darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | https:// | + | ====PyMCUProg==== |
- | https:// | + | Python cross platform programmer and debugger for Microchip CMSIS interfaces. |
- | apt install python3 python3-pip | + | Processor support is limited and various components are marked with " |
+ | at this time. | ||
- | rehash | + | It can work with boards with built-in interfaces or the SNAP and PICKIT 4 |
+ | interfaces updated with new firmware and switched into AVR mode (untested). | ||
+ | Interesting side note, the SNAP was £7 and the PICKIT 4 £45 in 2019 and now | ||
+ | cost £39 for the SNAP and £88 for the PICKIT 4 in 2022. Microchip | ||
+ | offer this free tool with limited support yet very expensive hardware to use it | ||
+ | with. | ||
+ | ===TODO=== | ||
+ | |||
+ | Connect a MCHP SNAP in CMSIS mode to the [[https:// | ||
+ | and see if it functions. | ||
+ | ===Install=== | ||
+ | |||
+ | Python 3 is a requirement and the tool is installed using pip. | ||
+ | |||
+ | < | ||
+ | apt install python3 python3-pip | ||
+ | rehash | ||
pip3 install pymcuprog | pip3 install pymcuprog | ||
+ | </ | ||
+ | |||
+ | ===Supported MCUs=== | ||
+ | |||
+ | Listing the devices directory will inform you of the supported controllers. | ||
+ | |||
+ | < | ||
+ | ls / | ||
+ | </ | ||
+ | |||
+ | The help file mentions getting software [[https:// | ||
+ | for more options but visiting the pack site offers nothing useful. | ||
+ | |||
+ | ===Microchip ATMEGA328PB XPLAINED MINI=== | ||
+ | |||
+ | Supported interface but unsupported microcontroller (ATMega328PB). | ||
+ | |||
+ | ==USB== | ||
+ | |||
+ | This is a virtual console port (AKA USB software modem). | ||
+ | |||
+ | < | ||
+ | Bus 001 Device 024: ID 03eb:2145 Atmel Corp. ATMEGA328P-XMINI (CDC ACM) | ||
+ | </ | ||
+ | |||
+ | ==Test== | ||
+ | |||
+ | Unknown MCU | ||
+ | |||
+ | < | ||
+ | pymcuprog ping | ||
+ | Connecting to anything possible | ||
+ | Connected to mEDBG CMSIS-DAP from Atmel (serial number ATML2523052700002178) | ||
+ | Debugger firmware version 1.22.134 | ||
+ | Debugger hardware revision 0 | ||
+ | Device mounted: ' | ||
+ | No device specified. | ||
+ | Unable to setup stack for device atmega328pb | ||
+ | Currently supported devices (in ' | ||
+ | attiny84a, avr32dd32, avr16dd28, pic16f17146, | ||
+ | </ | ||
+ | |||
+ | ===Microchip DM164140 - MPLAB Xpress Evaluation Board === | ||
+ | |||
+ | Unsupported interface, microcontroller (PIC16F18855) support unknown. | ||
+ | |||
+ | ==USB== | ||
+ | |||
+ | This is mass storage device and no idea if the firmware can be altered | ||
+ | otherwise. | ||
+ | |||
+ | < | ||
+ | Bus 001 Device 023: ID 04d8:0057 Microchip Technology, Inc. | ||
+ | </ | ||
+ | |||
+ | ==Test== | ||
- | get packs? | + | < |
+ | pymcuprog ping | ||
+ | Connecting to anything possible | ||
+ | pyedbglib.hidtransport.hidtransportbase - ERROR - No CMSIS-DAP devices found. | ||
+ | Unable to connect to USB device | ||
+ | </ | ||
- | https:// | + | ===Resources=== |
- | eg. | + | [[https:// |
- | https://packs.download.microchip.com/Microchip.ATmega_DFP.3.0.158.atpack | + | [[https://github.com/microchip-pic-avr-tools/ |