raflash
v0.0.2
เครื่องมือแฟลชสำหรับ ROM bootloader ในตัวสำหรับ Renesas RA Microcontrollers
ขอแนะนำอย่างยิ่งให้ใช้ 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"
ตรวจสอบให้แน่ใจว่าคุณ retriger udev อีกครั้ง:
sudo udevadm trigger
ตรวจสอบให้แน่ใจว่าคุณอยู่ในกลุ่ม 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 Write -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-specifications-standard-boot-firmware