|
| 1 | +.. _arduino_uno_r4: |
| 2 | + |
| 3 | +Arduino UNO R4 Minima |
| 4 | +##################### |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The Arduino UNO R4 Minima is a development board featuring the Renesas RA4M1 SoC |
| 10 | +in the Arduino form factor and is compatible with traditional Arduino. |
| 11 | + |
| 12 | +Programming and debugging |
| 13 | +************************* |
| 14 | + |
| 15 | +Building & Flashing |
| 16 | +=================== |
| 17 | + |
| 18 | +You 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 | + |
| 22 | +Here 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 | + |
| 29 | +Debugging |
| 30 | +========= |
| 31 | + |
| 32 | +Debugging also can be done in the usual way. |
| 33 | +The following command is debugging the :zephyr:code-sample:`blinky` application. |
| 34 | +Also, 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 | + |
| 43 | +Using pyOCD |
| 44 | +----------- |
| 45 | + |
| 46 | +Various debug adapters, including cmsis-dap probes, can debug the Arduino UNO R4 with pyOCD. |
| 47 | +The default configuration uses the pyOCD for debugging. |
| 48 | +You must install CMSIS-Pack when flashing or debugging Arduino UNO R4 Minima with pyOCD. |
| 49 | +If 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 | +
|
| 56 | +Restoring Arduino Bootloader |
| 57 | +============================ |
| 58 | + |
| 59 | +If 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 |
0 commit comments