An additional procedure document is available.https://drive.google.com/file/d/1O62rVQrN4xbb8cWmzLj_xok-11Rifnxv/view
Preparation
- Install MPLAB X(or MPLAB X IPE)
- Install XC32 (When using MPLAB X)
- Download the hex file (when using MPLAB X IPE) ⇒The latest hex file is the release page's mruby/c2.1 compatible, pic32mx170_mrubyc.production.hex.
- Purchase one of the following: pickit3, pickit4, or MPLAB Snap ⇒If you use a compatible pickit3 or Snap for writing, please supply power from the USB cable.
Procedure using "MPLAB X IDE"
- Launch MPLAB X
- Team → git → clone
- Repogitory URL:https://github.com/YoshihiroOgura/-pic32mx170_mrubyc.git
- For DIP packages, use this circuit or kit; for surface-mount packages, connect the pickit directly to "J3".
- Execute write
- Production → Set Project Configration → Custamize...
- Conf:[default] → Select the programmer to use from Hardware Tools (e.g., Pickit3).
- Apply
- Conf:[default] → PICkit3, etc. → Check the Power option.
- Apply → OK
If it doesn't work, connect the USB cable to supply power or follow the steps below.
Procedure using "MPLAB X IPE"
- Launch MPLAB X IPE
- Set the project configuration Family:32-bit MCUs (PIC32)
- Press the "Apply" button.
- Connect the PC to the pickit3 or pickit4
- Select "Setting" -> "Advanced Mode". A screen like the following will be displayed. Enter [microchip] in the "Password" field and click "Log in"
- The screen changes and items are displayed on the left side. Access "Power"
- Check the box for "Power target circuit from PICkit3". Select "Operate" and return to the previous screen.
- Press the "Connect" button.
- Specify the path to "pic32_170.production.hex" in the "Hex File" field.
- Connect the board to the PICkit3.
- Click "Program" to start writing.
- If "Programming complete" is displayed in the "Output" field, the writing is complete.
Device:PIC32MX170F256B