You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
iabdalkader bfa6f34404 renesas-ra: Rename machine SPI type consistently across ports. 2 years ago
..
boards ports: Use micropython-lib version of drivers in manifests. 2 years ago
ra renesas-ra/machine_pin: Support drive keyword and fix GPIO setting. 2 years ago
Makefile extmod: Make extmod.mk self-contained. 2 years ago
RA4M1_hal.h renesas-ra: Add new port to Renesas RA. 3 years ago
RA4W1_hal.h renesas-ra: Add new port to Renesas RA. 3 years ago
RA6M1_hal.h renesas-ra: Add new port to Renesas RA. 3 years ago
RA6M2_hal.h renesas-ra: Add new port to Renesas RA. 3 years ago
README.md docs: Update links for Arm GCC toolchain. 2 years ago
boardctrl.c renesas-ra: Add new port to Renesas RA. 3 years ago
boardctrl.h renesas-ra/modmachine: Allow boards to provide custom bootloader code. 2 years ago
build_all_boards.sh renesas-ra: Add new port to Renesas RA. 3 years ago
extint.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
extint.h renesas-ra: Add new port to Renesas RA. 3 years ago
factoryreset.c renesas-ra: Add new port to Renesas RA. 3 years ago
factoryreset.h renesas-ra: Add new port to Renesas RA. 3 years ago
fatfs_port.c renesas-ra: Add new port to Renesas RA. 3 years ago
flash.c renesas-ra: Add new port to Renesas RA. 3 years ago
flash.h renesas-ra: Add new port to Renesas RA. 3 years ago
flashbdev.c renesas-ra: Add new port to Renesas RA. 3 years ago
gccollect.c renesas-ra/softtimer: Switch to use softtimer code from shared/runtime. 2 years ago
gccollect.h renesas-ra: Add new port to Renesas RA. 3 years ago
help.c renesas-ra: Add new port to Renesas RA. 3 years ago
irq.c renesas-ra: Add new port to Renesas RA. 3 years ago
irq.h renesas-ra: Add new port to Renesas RA. 3 years ago
led.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
led.h renesas-ra: Add new port to Renesas RA. 3 years ago
machine_adc.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
machine_i2c.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
machine_pin.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
machine_rtc.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
machine_spi.c renesas-ra: Rename machine SPI type consistently across ports. 2 years ago
machine_timer.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
machine_uart.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
main.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
modmachine.c renesas-ra: Rename machine SPI type consistently across ports. 2 years ago
modmachine.h renesas-ra: Rename machine SPI type consistently across ports. 2 years ago
moduos.c renesas-ra: Rename pyb_uart_ to machine_uart_. 3 years ago
modutime.c all: Remove third argument to MP_REGISTER_MODULE. 2 years ago
mpconfigboard_common.h renesas-ra: Add new port to Renesas RA. 3 years ago
mpconfigport.h all: Remove MICROPY_PY_IO_FILEIO config option. 2 years ago
mpconfigport.mk renesas-ra: Add new port to Renesas RA. 3 years ago
mphalport.c renesas-ra: Use MP_REGISTER_ROOT_POINTER(). 2 years ago
mphalport.h renesas-ra/machine_pin: Support drive keyword and fix GPIO setting. 2 years ago
mpthreadport.c renesas-ra: Add new port to Renesas RA. 3 years ago
mpthreadport.h renesas-ra: Add new port to Renesas RA. 3 years ago
pendsv.c renesas-ra: Add new port to Renesas RA. 3 years ago
pendsv.h renesas-ra: Add new port to Renesas RA. 3 years ago
pin.h renesas-ra: Add new port to Renesas RA. 3 years ago
powerctrl.c renesas-ra: Add new port to Renesas RA. 3 years ago
powerctrl.h renesas-ra: Add new port to Renesas RA. 3 years ago
powerctrlboot.c renesas-ra: Add new port to Renesas RA. 3 years ago
pybthread.c renesas-ra: Add new port to Renesas RA. 3 years ago
pybthread.h renesas-ra: Add new port to Renesas RA. 3 years ago
qstrdefsport.h renesas-ra: Add new port to Renesas RA. 3 years ago
ra_it.c renesas-ra: Add new port to Renesas RA. 3 years ago
ra_it.h renesas-ra: Add new port to Renesas RA. 3 years ago
rtc.h renesas-ra: Rename pyb_rtc_ to machine_rtc_. 3 years ago
spi.h renesas-ra: Add new port to Renesas RA. 3 years ago
storage.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
storage.h renesas-ra: Add new port to Renesas RA. 3 years ago
systick.c renesas-ra/softtimer: Switch to use softtimer code from shared/runtime. 2 years ago
systick.h renesas-ra: Add new port to Renesas RA. 3 years ago
timer.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
timer.h renesas-ra: Add new port to Renesas RA. 3 years ago
uart.c renesas-ra: Rename pyb_uart_ to machine_uart_. 3 years ago
uart.h renesas-ra: Rename pyb_uart_ to machine_uart_. 3 years ago
usrsw.c py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
usrsw.h renesas-ra: Add new port to Renesas RA. 3 years ago

README.md

The Renesas RA port

This is a port of MicroPython to the Renesas RA family of microcontrollers. Currently supported features are:

  • Filesystem on the internal flash using FatFs.
  • utime module with sleep, time, and ticks functions.
  • uos module with VFS support.
  • machine module with the following classes: Pin, ADC, I2C, SPI, SoftI2C, SoftSPI, UART, RTC
  • sdcard driver if frozen driver is installed.

Currently supported board product names are:

  • EK-RA6M2
  • RA4M1 CLICKER
  • EK-RA6M1
  • EK-RA4M1
  • EK-RA4W1

Please refer to the quick reference of renesas-ra port for more information about the boards.

Build instructions

  • MicroPython cross-compier The MicroPython cross-compiler must be built first, which will be used to pre-compile (freeze) built-in Python code. THis cross-compiler is built and run on the host machine, using:

    $ make -C mpy-cross
    

    This command should be executed from the root directory of this repository. All other commands below should be executed from the ports/renesas-ra/ directory.

  • Arm compiler An Arm compiler is required for the build, along with the associated binary utilities. The default compiler is arm-none-eabi-gcc, which is available for Linux, Mac and Windows hosts via https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads. The compiler can be changed using the CROSS_COMPILE variable when invoking make.

  • Obtain submodules First the submodules must be obtained using:

    $ make submodules
    
  • Build binary image .hex Then to build for a given board subdirectory name, run:

    $ make BOARD=RA6M2_EK clean
    $ make BOARD=RA6M2_EK
    

    The default board subdirectory name is RA6M2_EK (which is for EK-RA6M2 board) but any of the names of the subdirectories in the boards/ directory can be passed as the argument to BOARD=; for example RA4M1_CLICKER, RA4M1_EK, RA4W1_EK and RA6M1_EK. The above command should produce binary images firmware.hex in the build-RA6M2_EK/` subdirectory (or the equivalent directory for the board specified).

Supported/Unsupprted funtions

Please refer to the renesas-ra quick reference.

Known issues

all boards

  • machine.lightsleep(time_ms) and machine.deepsleep(time_ms) raise uncaught exceptions.

    machine.deepsleep(1000) Uncaught exception in ExtInt interrupt handler line 16 TypeError:

RA4M1-CLICKER

  • mpremote: mount command is not available due to limited memory resources.

EK-RA4M1

  • mpremote: mount command is not available due to limited memory resources.

EK-RA4W1

  • mpremote: "Execution: timeout waiting for remote" error happens when importing a file on /remote.