Skip to content

Zipcar/spi_mplabx_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MPLabX Simulator SPI I/O Plug-in

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

Setup & Build

Prerequisites

  1. MPLab X v4.20
  2. MPLab X SDK
  3. Netbeans (any recent version should work, submit an issue if it doesn't)
  4. JDK 1.8

Config & Build from Source

  1. Clone repo git clone https://github.com/Zipcar/spi_mplabx_plugin.git
  2. Modify config in src/spiconfig.yml to meet your desired values.
  3. Copy spiconfig.yml from the src directory of spi_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
  4. Open Netbeans
  5. File -> Open Project Open the spi_mplabx_plugin project folder
  6. Open spi_mplabx_plugin -> Source Packages -> zipcar.emulator.spi -> Spi.java from the projects tab
  7. Right click spi_mplabx_plugin and click Create NBM

Install

  1. Open MPLab X
  2. Tools -> Plugins -> Downloaded and click Add Plugins...
  3. Navigate to the spi_mplabx_plugin/build folder and open zipcar-emulator-spi.nbm
  4. Congrats, your plugin has been loaded!