boards/microchip/pic32c/pic32cm_jh01_cnano/doc/index.rst
.. zephyr:board:: pic32cm_jh01_cnano
Overview
The PIC32CM JH01 Curiosity Nano+ Touch Evaluation Kit (EV29G58A) is a hardware platform that contains a PIC32CM5164JH01048 microcontroller (MCU). The Curiosity Nano+ Touch Evaluation Kit provides easy access to the MCU features and can develop custom applications.
Hardware
PIC32CM5164JH01048 MCU
Arm® Cortex®-M0+ based MCU
One yellow user LED
One mechanical user switch
One user touch button
CAN interface
LIN interface
USB for debugger
On-board nano debugger (nEDBG)
Adjustable target voltage
.. zephyr:board-supported-hw::
The PIC32CM JH01 Curiosity Nano User Guide_ has detailed information about board connections.
Programming & Debugging
.. zephyr:board-supported-runners::
Install Device Pack
Add support for the PIC32CM family devices using the following command:
.. code-block:: console
pyocd pack install pic32cm
Verify Device Support
Confirm that the target is recognized:
.. code-block:: console
pyocd list --targets
You should see an entry similar to:
.. code-block:: text
pic32cm5164jh01048 Microchip PIC32CM5164JH01048 PIC32CM-JH pack
Connect the Board
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_cnano -p -s samples/basic/blinky
This will build the Blinky application for the pic32cm_jh01_cnano board.
Flash the Device
Once the build completes, flash the firmware using:
.. code-block:: console
west flash
Observe the Result
After flashing, LED1 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/PIC32CM5164JH01048
PIC32CM JH01 Curiosity Nano evaluation kit Page: https://www.microchip.com/en-us/development-tool/ev29g58a
.. _PIC32CM JH01 Curiosity Nano User Guide: https://ww1.microchip.com/downloads/aemDocuments/documents/MCU32/ProductDocuments/UserGuides/PIC32CM-JH01-Curiosity-Nano%2B-Touch-User-Guide-DS70005552.pdf