06 how to install custom firmware - wildekek/rdtech-firmware-unisoft GitHub Wiki
How to Install Custom Firmware
7 6. How to Install Custom Firmware Required Files and Utilities: As of this document’s latest update: UniSoft’s most recent RD60xx Firmware as posted on EEVBlog. Note: You will need to ensure you have the correct Firmware for your RD60xx model. Windows: UniSoft’s most recent ‘Flasher’ Utility. Recommended to load the custom firmware when using Windows. Windows 10 Driver for USB interface connection Only needed if your computer doesn’t see the RD60xx on a Windows 10 computer. Any OS (MacOS, Linux, Windows): Timo Kokkonen's Riden flashtool. Requires command line and Python 3. 6.1. Prepare the RD60xx IF using the default RD60xx (Riden) Firmware: 1. Press “SHIFT”+”MENU” to enter the menu system. 2. Ensure ‘Interface’ is set to: USB, (using the direction keys: ◄►▲▼) Note: This image may not perfectly represent the current Riden firmware setting screen. Screen changes may occur between firmware versions.
8 IF updating an existing UniSoft Firmware:
- Ensure ‘USB Interface’ is set to the desired baud rate. (115200 is default for Flasher utility.) In all cases:
- Make sure any WiFi or serial connection is inactive. If you remotely connect to the PSU while flashing firmware, flashing will fail, and you will need to redo it from the ‘Boot’ Mode (see below).
- Confirm the device ‘Address’.
- Turn OFF the Primary Power Supply.
- Ensure you have a USB cable connected from your computer to the micro-USB port on the front of the RD60xx. IF any difficulties are encountered, or existing firmware is corrupted: Press the “ENTER” button while turning ON the Primary Power Supply. (This will manually put the RD60xx into ‘Boot’ Mode.) Note: IF update process fails after manually entering ‘Boot’ Mode, remove the RTC coin-cell battery and repeat the process. 6.2. If you use UniSoft's RDFlasher on Windows
- In your computer’s file manager: ● Ensure the latest firmware .BIN file is in the ‘FIRMWARES’ sub-folder of the RDFlasher utility. ○ If not, the Flasher will not be able to detect the file. ● Start ‘RDFLasher.exe’
9 2) In the RDFlasher utility: a) Ensure your Port, Baudrate and Device Address are set for your RD60xx. b) Turn ON the RD60xx’s Primary Power Supply, and wait until it has booted. c) Click the ‘Connect’ button. d) Select the desired firmware from the “Firmware File” dropdown box. e) Click the ‘Write’ button. f) Wait for the writing process to complete. DO NOT turn off the power during this process! Notes: If you flash back to the stock firmware from the custom firmware, you should restore default settings: To reset default parameters: Press "0" while powering on the RD60xx.
10 6.3. If you use Timo Kokkonen's Riden flashtool This tool can be used on many devices and OSes that have support for python3: Windows, Mac, Linux. It also works on devices like the Raspberry Pi. It requires use of the command line. Be sure you are familiar with that. Familiarity with Python is not strictly needed.
- Place the correct firmware file in a directory of your choice. Note the command line path to that file.
- Make sure you know the serial device that the RD60xx presents to the OS: look what serial device gets created when you connect a USB cable from your computer to the micro-USB port on the front of the RD60xx. The exact name depends on your device and your OS. On MacOS, the device might be something like "/dev/tty.usbserial-31110"
- Make sure you have Python3 installed (any recent Linux and MacOS will have it, Windows may be more troublesome).
- Make sure you have "pyserial" installed. Most modern OS’s have it installed. If not, you can install it through pip3 via the command pip3 install pyserial. If you don’t have pip3, and don’t know how to install that, you might also be able to install pyserial directly through your OS's package manager (probably as python3-serial)
- Pick a directory you want to install the software in
- Fetch the software from github, via your preferred method. Some different ways of doing it are: a) via command line git, if you have it: git clone [email protected]:tjko/riden-flashtool.git b) via a download of the full zip and subsequent unzip to the desired directory. c) via a download of only the python script file flash-rd.py directly to the desired directory.
- Connect a USB cable from your computer to the micro-USB port on the front of the RD60xx
- Follow the instructions from github. An example from a Raspberry Pi is mentioned. On MacOS, you might need something like python3 flash-rd.py /dev/tty.usbserial-31110 ../RD60121_V1.34.1g.bin
- Wait for the writing process to complete. DO NOT turn off the power during this process! Notes: If you flash back to the stock firmware from the custom firmware, you should restore default settings: To reset default parameters: Press "0" while powering on the RD60xx.