This project provides a standalone Open Flashloader implementation built using:
- arm-none-eabi-gcc
- CMake
- Ninja
- Python build script
- CMSIS-based flash programming interface
The output is a .elf binary compatible with SEGGER JFlash.
- AmebaDPlus (RTL8721DXX)
- AmebaGreen2 (RTL8721F)
- AmebaSmart (RTL8730EX)
| Dependency | Purpose |
|---|---|
| arm-none-eabi-gcc | Cross compiler |
| CMake ≥ 3.20 | Build generator |
| Ninja | Fast build tool |
| Python 3 | Build automation |
From the project root:
./build.pyto perform build on all supported chips.
To perform a clean build
rm -rf build/
Then run build.py
After a successful build, you will find:
output/
└── CHIPNAME_FLASHSIZE.elf
SEGGER JFLASH
- SEGGER JLINK PLUS or higher
-
cdinto thescriptsdirectory. -
Build the installer by first executing
package.pyand thenCI.py -
Execute the
RTKJLinkDevicesInstallerexecutable.
Note
AmebaDPlus is used as the example
Copy the respective device .xml located in devices/ to the following directory:
Windows
C:\Users\user\AppData\Roaming\SEGGER\JLinkDevices\Realtek\AmebaDPlus\RTL8721DXX.xml
or
Linux /home/user/.SEGGER/JLinkDevices\Realtek\AmebaDPlus\RTL8721DXX.xml
Place the FlashLoader.elf in the same level directory as the RTL8721DXX.xml
Note
You should have already added the jlink_scripts into a folder called JLinkDevices\Realtek\AmebaDPlus\jlink_script
Reference: J-Link Device Support Kit
This project is licensed under the MIT License - see the LICENSE file for details.