Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tools:pymcuprog [2022/11/10 13:22]
darron
tools:pymcuprog [2023/09/30 15:12] (current)
darron [Microchip DM164140 - MPLAB Xpress Evaluation Board]
Line 1: Line 1:
-https://pypi.org/project/pymcuprog/+====PyMCUProg====
  
-https://github.com/microchip-pic-avr-tools/pymcuprog+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 "alpha" support 
 +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).
  
-pip3 install pymcuprog+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===
  
-get packs?+Connect a MCHP SNAP in CMSIS mode to the [[https://wiki.kewl.org/dokuwiki/boards:seeedxiao|Seeduino Xiao]] 
 +and see if it functions. 
 +===Install===
  
-https://packs.download.microchip.com/+Python 3 is a requirement and the tool is installed using pip.
  
-nothing there useful+<code> 
 +apt install python3 python3-pip 
 +rehash 
 +pip3 install pymcuprog 
 +</code>
  
 +===Supported MCUs===
 +
 +Listing the devices directory will inform you of the supported controllers.
 +
 +<code>
 ls /usr/local/lib/python3.7/dist-packages/pymcuprog/deviceinfo/devices/ ls /usr/local/lib/python3.7/dist-packages/pymcuprog/deviceinfo/devices/
 +</code>
  
 +The help file mentions getting software [[https://packs.download.microchip.com/|packs]]
 +for more options but visiting the pack site offers nothing useful.
  
 ===Microchip ATMEGA328PB XPLAINED MINI=== ===Microchip ATMEGA328PB XPLAINED MINI===
  
 +Supported interface but unsupported microcontroller (ATMega328PB).
 +
 +==USB==
 +
 +This is a virtual console port (AKA USB software modem).
 +
 +<code>
 Bus 001 Device 024: ID 03eb:2145 Atmel Corp. ATMEGA328P-XMINI (CDC ACM) Bus 001 Device 024: ID 03eb:2145 Atmel Corp. ATMEGA328P-XMINI (CDC ACM)
 +</code>
  
 +==Test==
  
 Unknown MCU Unknown MCU
Line 38: Line 67:
 </code> </code>
  
-===Microchip DM164140 - MPLABXpress Evaluation Board ===+===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.
 +
 +<code>
 Bus 001 Device 023: ID 04d8:0057 Microchip Technology, Inc.  Bus 001 Device 023: ID 04d8:0057 Microchip Technology, Inc. 
 +</code>
  
 +==Test==
 +
 +<code>
 pymcuprog ping pymcuprog ping
 Connecting to anything possible Connecting to anything possible
 pyedbglib.hidtransport.hidtransportbase - ERROR - No CMSIS-DAP devices found. pyedbglib.hidtransport.hidtransportbase - ERROR - No CMSIS-DAP devices found.
 Unable to connect to USB device Unable to connect to USB device
 +</code>
 +
 +===Resources===
 +
 +[[https://pypi.org/project/pymcuprog/|Main site]]
  
 +[[https://github.com/microchip-pic-avr-tools/pymcuprog|Development site]]