This is the v1.20.0 version of the MicroPython documentation. The latest development version of this page may be more current.

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.18-293-g339aa09b8-dirty on 2022-03-26; RA6M2_EK with RA6M2
Type "help()" for more information.
>>>