Go to file
Wouter c79781ae47
Rename ST7565_Configure_GPIO_B11 to ST7565_HardwareReset. (#59)
Co-authored-by: Wouter van Gulik <wouter.van.gulik@mep-info.com>
2023-10-06 20:49:34 +01:00
.github/workflows Support for packed firmware. 2023-09-05 22:39:54 +01:00
app Rename ST7565_Configure_GPIO_B11 to ST7565_HardwareReset. (#59) 2023-10-06 20:49:34 +01:00
bsp/dp32g030
driver Rename ST7565_Configure_GPIO_B11 to ST7565_HardwareReset. (#59) 2023-10-06 20:49:34 +01:00
external
hardware/dp32g030
helper Ability to disable ALARM and TX1750. 2023-09-16 00:52:30 +01:00
ui Fixed boolean values. 2023-09-19 22:45:00 +01:00
.gitattributes
.gitignore Dockerfile modified to build much faster, compile-with-docker script for windows (#54) 2023-09-28 14:51:14 +01:00
.gitmodules
audio.c Use ARRAY_SIZE and VOICE_ID_END instead of magic numbers. (#50) 2023-09-28 13:41:56 +01:00
audio.h Fixed some missing beeps. 2023-09-02 16:57:57 +01:00
bitmaps.c Ability to disable NOAA. 2023-09-14 11:48:56 +01:00
bitmaps.h Ability to disable FM Radio. 2023-09-13 22:55:14 +01:00
board.c Disable some more NOAA related code. 2023-09-19 22:07:59 +01:00
board.h Added missing include. 2023-09-13 21:16:27 +01:00
compile-with-docker.bat Dockerfile modified to build much faster, compile-with-docker script for windows (#54) 2023-09-28 14:51:14 +01:00
compile-with-docker.sh compile-with-docker.sh: Make executable by default. (#42) 2023-09-18 10:49:09 +01:00
dcs.c Renamed Index to Code. 2023-09-07 19:49:01 +01:00
dcs.h Renamed Index to Code. 2023-09-07 19:49:01 +01:00
Dockerfile Dockerfile modified to build much faster, compile-with-docker script for windows (#54) 2023-09-28 14:51:14 +01:00
dp32g030.cfg
firmware.ld
font.c
font.h
frequencies.c Disable some more NOAA related code. 2023-09-19 22:07:59 +01:00
frequencies.h Fixed missing airband step. 2023-09-15 14:54:03 +01:00
functions.c Ability to disable ALARM and TX1750. 2023-09-16 00:52:30 +01:00
functions.h A few more renames. 2023-09-04 23:56:12 +01:00
fw-pack.py Support for packed firmware. 2023-09-05 22:39:54 +01:00
init.c
LICENSE
main.c Ability to disable ALARM and TX1750. 2023-09-16 00:52:30 +01:00
Makefile "make clean" should remove packed binary too (#49) 2023-09-28 13:41:25 +01:00
misc.c gMR_ChannelAttributes maps to channels use FREQ_CHANNEL_LAST 2023-09-19 21:49:34 +01:00
misc.h Disable some more NOAA related code. 2023-09-19 22:07:59 +01:00
printf_config.h
radio.c Radio.c: Simplify check. 2023-09-19 21:49:09 +01:00
radio.h Renamed CSS variables. 2023-09-07 19:57:40 +01:00
README.md Fix ko-fi URL (#45) 2023-09-19 22:13:44 +01:00
scheduler.c Ability to disable NOAA. 2023-09-14 11:48:56 +01:00
settings.c Fixed saving password to EEPROM. 2023-10-06 09:00:13 +01:00
settings.h
sram-overlay.c Fixed correct return type. 2023-09-08 00:39:09 +01:00
sram-overlay.h Fixed correct return type. 2023-09-08 00:39:09 +01:00
start.S Ability to disable AIRCOPY, overlay and UART. 2023-09-13 22:03:40 +01:00
version.c Show version over UART and boot. 2023-09-02 23:02:42 +01:00
version.h Show version over UART and boot. 2023-09-02 23:02:42 +01:00

Open reimplementation of the Quan Sheng UV K5 v2.1.27 firmware

This repository is a preservation project of the UV K5 v2.1.27 firmware. It is dedicated to understanding how the radio works and help developers making their own customisations/fixes/etc. It is by no means fully understood or has all variables/functions properly named, as this is best effort only. As a result, this repository will not include any customisations or improvements over the original firmware.

You can find an alternate branch called "fixes" that contains fixes for real bugs present in the original firmware. This branch will also accumulate fixes/improvements from newer releases by QS (for example v2.01.31).

For improved/better firmware and new features, you can find the following repositories by other collaborators:

Compiler

arm-none-eabi GCC version 10.3.1 is recommended, which is the current version on Ubuntu 22.04.03 LTS. Other versions may generate a flash file that is too big. You can get an appropriate version from: https://developer.arm.com/downloads/-/gnu-rm

Building

To build the firmware, you need to fetch the submodules and then run make:

git submodule update --init --recursive --depth=1
make

Flashing with the official updater

  • Use the firmware.packed.bin file

Flashing with k5prog

  • ./k5prog -F -YYY -b firmware.bin

Flashing with SWD

  • If you own a JLink or compatible device and want to use the Segger software, you can find a flash loader here
  • If you want to use OpenOCD instead, you can use run "make flash" off this repo.
  • The DP32G030 has flash masking to move the bootloader out of the way. Do not try to flash your own way outside of the above methods or risk losing your bootloader.

Support

Credits

Many thanks to various people on Telegram for putting up with me during this effort and helping:

License

Copyright 2023 Dual Tachyon https://github.com/DualTachyon

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.