piotr022 / UV_K5_playground
- воскресенье, 9 июля 2023 г. в 00:00:02
update
Spectrum scanner. It prints a spectrum graph. Zoom in well as resolution can be controled via keyboard.
To show your appreciation and support for ongoing work, you can make a donation.
mod for printing rx signal level (RSSI) in numerical format, also includes small signal level chart.
Chinese mcu DP32G030 has feature called flash masking, here is how it works:
The idea is to run this firmware 'parallel' with the original Quencheng firmware. This can be achieved by relocating the original vector table to the end of the original firmware, and placing a new vector table at the beginning, with entities pointing to the par_runner functions that wrap the original firmware handlers.
Every interrupt is first processed by the par_runner handlers, which can perform tasks like responding to a button press(todo), before invoking the original firmware handler
When building the "par_runner" target automaticly "bootloader" target will be build
building par_runner target will result in following outputs:
To change the original firmware that will be wrapped and placed into the original firmware section, replace ./original_fw/original_fw.bin
or set the variable
CMakeLists.txt set(ORGINAL_FW_BIN orginal_fw.bin)
in ./orginal_fw/CMakeLists.txt
and rebuild par_runner
currently tested on windows, requred:
All folders with executables of the above programs should be added to the PATH environment variable.
for debugging:
$ mkdir build
$ cd build
$ cmake ../ -G Ninja
$ ninja par_runner
outputs ./build/src/par_runner/par_runner.bin / hex / elf
$ ninja par_runner_flash
Select the par_runner build target in the bottom bar and press build.
Enter the 'Run & Debug' tab, select 'kwaczek DBG', and press run.
I'm not responsible for radios bricked by this trojan xD