1.. _arduino_uno_r4: 2 3Arduino UNO R4 Minima 4##################### 5 6Overview 7******** 8 9The Arduino UNO R4 Minima is a development board featuring the Renesas RA4M1 SoC 10in the Arduino form factor and is compatible with traditional Arduino. 11 12Programming and debugging 13************************* 14 15Building & Flashing 16=================== 17 18You can build and flash an application in the usual way (See 19:ref:`build_an_application` and 20:ref:`application_run` for more details). 21 22Here is an example for building and flashing the :zephyr:code-sample:`blinky` application. 23 24.. zephyr-app-commands:: 25 :zephyr-app: samples/basic/blinky 26 :board: arduino_uno_r4_minima 27 :goals: build flash 28 29Debugging 30========= 31 32Debugging also can be done in the usual way. 33The following command is debugging the :zephyr:code-sample:`blinky` application. 34Also, see the instructions specific to the debug server that you use. 35 36.. zephyr-app-commands:: 37 :zephyr-app: samples/basic/blinky 38 :board: arduino_uno_r4_minima 39 :maybe-skip-config: 40 :goals: debug 41 42 43Using pyOCD 44----------- 45 46Various debug adapters, including cmsis-dap probes, can debug the Arduino UNO R4 with pyOCD. 47The default configuration uses the pyOCD for debugging. 48You must install CMSIS-Pack when flashing or debugging Arduino UNO R4 Minima with pyOCD. 49If not installed yet, execute the following command to install CMSIS-Pack for Arduino UNO R4. 50 51.. code-block:: console 52 53 pyocd pack install r7fa4m1ab 54 55 56Restoring Arduino Bootloader 57============================ 58 59If you corrupt the Arduino bootloader, you can restore it with the following command. 60 61.. code-block:: console 62 63 wget https://raw.githubusercontent.com/arduino/ArduinoCore-renesas/main/bootloaders/UNO_R4/dfu_minima.hex 64 pyocd flash -e sector -a 0x0 -t r7fa4m1ab dfu_minima.hex 65