This is the documentation for the latest development branch of MicroPython and may refer to features that are not available in released versions.

If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

1. Getting started with MicroPython on the Renesas RA

This tutorial will guide you through setting up MicroPython, getting a prompt, using the hardware peripherals, using internal flash file system, reset and boot modes, and Factory reset the internal file system.

1.1. Requirements

You need a board. For the information of available boards, please refer to the general information about Renesas RA port: General information about Renesas RA port.

You need a USB-Serial conversion cable to connect the board and your PC. Please get a type with separate signal pins so that you can connect to the UART TX and RX pins on the board.

1.3. Getting a prompt of MicroPython

Cross connect USB-Serial conversion cable RX/TX/GND pins to TX/RX/GND pins on the board.

Board

USB Serial RX

USB Serial TX

EK-RA4M1

P411

P410

EK-RA4W1

P205

P206

EK-RA6M1

P411

P410

EK-RA6M2

P411

P410

RA4M1 CLICKER

P401

P402

Access the MicroPython REPL (the Python prompt) via USB serial or UART with 115200 baud rate, 1 stop bit and no parity bit using your favorite terminal software, picocom on Linux or Tera Term on Windows. You can try on Linux:

$ picocom /dev/ttyACM0

You can see the MicroPython REPL prompt like below:

MicroPython v1.20.0 on 2023-04-27; EK-RA6M2 with RA6M2
Type "help()" for more information.
>>>