This is a plug-in for MPLabX v4.20, which support basic SPI reading and injection. The plug-in reads and writes to socket 5555, and allows interaction with the developer's platform of choice for simulating peripherals (BLE, eFlash, etc...) The possibilities are endless!
The majority of the code is under src/Spi.java, but if you wish to implement your own SFRObservers, then you'll want to look under src/SpiObserver.java
- MPLab X v4.20
- MPLab X SDK
- Netbeans (any recent version should work, submit an issue if it doesn't)
- JDK 1.8
- Clone repo
git clone https://github.com/Zipcar/spi_mplabx_plugin.git
- Modify config in
src/spiconfig.yml
to meet your desired values. - Copy
spiconfig.yml
from thesrc
directory ofspi_mplabx_plugin
to your MPLab X bin folder.- MacOS:
/Applications/microchip/mplabx/vX.XX/mplab_platform/bin
- Windows:
C:\Program Files (x86)\Microchip\MPLABX\vX.XX\mplab_ide\bin
- Ubuntu 16.04:
/opt/microchip/mplabx/vX.XX/mplab_platform/bin
- MacOS:
- Open Netbeans
File -> Open Project
Open thespi_mplabx_plugin
project folder- Open
spi_mplabx_plugin -> Source Packages -> zipcar.emulator.spi -> Spi.java
from the projects tab - Right click
spi_mplabx_plugin
and clickCreate NBM
- Open MPLab X
Tools -> Plugins -> Downloaded
and clickAdd Plugins...
- Navigate to the
spi_mplabx_plugin/build
folder and openzipcar-emulator-spi.nbm
- Congrats, your plugin has been loaded!