Just ran into the same issue…
You need to custom_hwids.py with this:
Import(“env”)
board_config = env.BoardConfig()
board_config.update(“build.hwids”, [
[“0x2886”, “0x0049”]
])
Then this is my complete platformio.ini that works:
[platformio]
include_dir = ./inc
default_envs = XIAORA4M1
[env:XIAORA4M1]
platform = renesas-ra
extra_scripts = pre:custom_hwids.py
; change microcontroller
board_build.mcu = ra4m1
; change MCU frequency
board_build.f_cpu = 48000000L
platform_packages =
toolchain-gccarmnoneeabi @ 1.120301.0
;needed for higher CPP version to be able to use named initializers for structs
board = uno_r4_minima
upload_protocol=dfu
lib_deps =
monitor_speed = 115200
framework = arduino
build_flags =
${env.build_flags}
-Wextra
I also undef the pin definitions for the UNO and replaced them them with the ones from the Xiao RA4M1 Arduino core.