Arduino UNO R4 Minima
Overview
The Arduino UNO R4 Minima is a development board featuring the Renesas RA4M1 SoC in the Arduino form factor and is compatible with traditional Arduino.
Programming and debugging
Building & Flashing
You can build and flash an application in the usual way (See Building an Application and Run an Application for more details).
Here is an example for building and flashing the Blinky application.
# From the root of the zephyr repository
west build -b arduino_uno_r4_minima samples/basic/blinky
west flash
Debugging
Debugging also can be done in the usual way. The following command is debugging the Blinky application. Also, see the instructions specific to the debug server that you use.
# From the root of the zephyr repository
west build -b arduino_uno_r4_minima samples/basic/blinky
west debug
Using pyOCD
Various debug adapters, including cmsis-dap probes, can debug the Arduino UNO R4 with pyOCD. The default configuration uses the pyOCD for debugging. You must install CMSIS-Pack when flashing or debugging Arduino UNO R4 Minima with pyOCD. If not installed yet, execute the following command to install CMSIS-Pack for Arduino UNO R4.
pyocd pack install r7fa4m1ab
Restoring Arduino Bootloader
If you corrupt the Arduino bootloader, you can restore it with the following command.
wget https://raw.githubusercontent.com/arduino/ArduinoCore-renesas/main/bootloaders/UNO_R4/dfu_minima.hex
pyocd flash -e sector -a 0x0 -t r7fa4m1ab dfu_minima.hex