1 # Renesas RA flash tool
2 Flash tool for the built in ROM bootloader for Renesas RA microcontrollers
8 ## Local and development install
9 *Strongly Recommended to use venv (https://docs.python.org/3/library/venv.html)*
10 - python -m venv .venv
11 - source .venv/bin/activate
12 - pip install -r requirements.txt
15 ## Access rights to USB device
17 Add a file `/etc/udev/rules.d/40-renesas.rules` and add the following:
19 SUBSYSTEMS=="usb", ATTRS{idVendor}=="045b", ATTRS{idProduct}=="0261", GROUP="plugdev", MODE="0666"
21 Make sure you retrigger udev again:
26 Make sure you are also in the group *plugdev*
30 usage: raflash [-h] {write,read,erase,info} ...
35 -h, --help show this help message and exit
38 {write,read,erase,info}
39 write Write data to flash
40 read Read data from flash
42 info Show flasher information
44 Each command has various options. For example, use RAFlasher write -h to see all write options:
46 usage: raflash write [-h] [--start_address START_ADDRESS] [--size SIZE] [--verify] file_name
52 -h, --help show this help message and exit
53 --start_address START_ADDRESS
55 --size SIZE Size in bytes
56 --verify Verify after writing
64 ## Supported functionality
67 - [X] Erase / sector erase
68 - [X] Info / area information
69 - [ ] ID Authentication
70 - [ ] Baud rate (only for SCI)
77 ## Supported interfaces
83 - [ ] RA2 (should potentially work)
86 *Note: only tested on RA4 hardware*
89 https://www.renesas.com/us/en/document/apn/renesas-ra-family-system-specifications-standard-boot-firmware