raflash
v0.0.2
用于内置的ROM启动加载器的闪光工具RENESAS RA微控制器
强烈建议使用VENV(https://docs.python.org/3/library/venv.html)
添加一个file /etc/udev/rules.d/40-renesas.rules ,添加以下内容:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="045b", ATTRS{idProduct}=="0261", GROUP="plugdev", MODE="0666"
确保再次重新启动Udev:
sudo udevadm trigger
确保您也在Group Plugdev中
usage: raflash [-h] {write,read,erase,info} ...
RA Flasher Tool
options:
-h, --help show this help message and exit
Commands:
{write,read,erase,info}
write Write data to flash
read Read data from flash
erase Erase sectors
info Show flasher information
每个命令都有多种选项。例如,使用raflasher写入-h查看所有写入选项:
usage: raflash write [-h] [--start_address START_ADDRESS] [--size SIZE] [--verify] file_name
positional arguments:
file_name File name
options:
-h, --help show this help message and exit
--start_address START_ADDRESS
Start address
--size SIZE Size in bytes
--verify Verify after writing
注意:仅在RA4硬件上测试
https://www.renesas.com/us/en/document/apn/renesas-ra-family-system-specification-specifications-andard-boot-firmware