boards/microchip/pic32c/pic32cm_jh01_cpro/doc/index.rst
.. zephyr:board:: pic32cm_jh01_cpro
Overview
The PIC32CM JH01 Curiosity Pro evaluation kit is a hardware platform to evaluate the Microchip PIC32CM JH01 microcontroller, and the evaluation kit part number is EV81X90A. The evaluation kit offers a set of features that enables the PIC32CM JH01 users to get started with the PIC32CM JH01 peripherals, and to obtain an understanding of how to integrate the device in their own design.
Hardware
.. zephyr:board-supported-hw::
The PIC32CM JH01 Curiosity Pro User Guide_ has detailed information about board connections.
Programming & Debugging
.. zephyr:board-supported-runners::
Install Device Pack
.. code-block:: console
pyocd pack install pic32cm
Verify Device Support
.. code-block:: console
pyocd list --targets
.. code-block:: text
pic32cm5164jh01100 Microchip PIC32CM5164JH01100 PIC32CM-JH pack
Connect the Board
Install J-Link Software
J-Link software_ tools from Segger.JLink, JLinkGDBServer)
are available in your system's PATH.Connect the Board
J32 Debug Probe_ to the board's CORTEX DEBUG header.Build the Application
You can build a sample Zephyr application, such as Blinky, using the west tool.
Run the following commands from your Zephyr workspace:
.. code-block:: console
west build -b pic32cm_jh01_cpro -p -s samples/basic/blinky
This will build the Blinky application for the pic32cm_jh01_cpro board.
Flash the Device
Once the build completes, flash the firmware using:
.. code-block:: console
west flash
By default, this command uses the PyOCD runner to program the device.
If both the J-Link probe (connected via the CORTEX DEBUG header) and the PyOCD supported debug interface (connected through the DEBUG USB port) are available, you can explicitly select the desired runner as shown below:
.. code-block:: console
west flash --runner jlink
or
.. code-block:: console
west flash --runner pyocd
This ensures the application is flashed using the respective connected interface.
Observe the Result
After flashing, LED0 on the board should start blinking, indicating that the application is running successfully.
References
PIC32CM JH01 Product Page: https://www.microchip.com/en-us/product/PIC32CM5164JH01100
PIC32CM JH01 Curiosity Pro evaluation kit Page: https://www.microchip.com/en-us/development-tool/ev81x90a
.. _PIC32CM JH01 Curiosity Pro User Guide: https://ww1.microchip.com/downloads/aemDocuments/documents/MCU32/ProductDocuments/UserGuides/PIC32CM-JH01-Curiosity-Pro-Evaluation-Kit-User-Guide-DS70005482.pdf
.. _J-Link software: https://www.segger.com/downloads/jlink
.. _J32 Debug Probe: https://www.microchip.com/en-us/development-tool/dv164232