4 ms·
The MX32 series PICs, as well as most "modern" 16F and 18F PICs can be programmed with a low-voltage programming (LVP) mode using the GPIO pins of a Raspberry P
by watchdogtimer 5y ago
The MX32 series PICs, as well as most "modern" 16F and 18F PICs can be programmed with a low-voltage programming (LVP) mode using the GPIO pins of a Raspberry Pi or 32-bit ARM single-board computer (e.g. Orange Pi Zero) and the free open-source in-circuit serial program Pickle[0].
I mostly use Great Cow BASIC[1] with 16F and 18F series PICs on my projects. My workflow[2] is to connect the PIC to a breadboard as in the article, then connect the Pi to the pins on the breadboard using dupont cables. I then ssh into the Pi, write my program in vim on the Pi, compile the program using the command-line version of GCB, and flash it to the PIC using Pickle. (Not sure if this workflow would work in this case, however--will the pic32-rs compiler work on ARM?)
As a bonus, most PICs can be configured so the program pins also are serial UART pins, making it possible to use the same connection for serial I/O between the PIC and the Pi.
[0]-https://wiki.kewl.org/dokuwiki/projects:pickle https://wiki.kewl.org/dokuwiki/projects:pickle
[1]-http://gcbasic.sourceforge.net/ http://gcbasic.sourceforge.net/
[2]-https://www.pedalpc.com/blog/program-pic-raspberry-pi/ https://www.pedalpc.com/blog/program-pic-raspberry-pi/