开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

STM32 MCU port damaged used to read the CW key input #development #firmware


 

?

Situation: Due to a partially torn CW key jack (ground pins) caused by the coupling of another transceiver, the protection circuit at the key input (implemented with a double TVS diode) and a MCU port on the STM32 were damaged.

?

I have following Options:

  1. Buy a new X6100
  2. Replace the STM32 MCU chip?
  3. Replace the entire mainboard with the STM32 (still looking for a source for this).

The challenge is, regardless of whether I replace the chip or receive a replacement board from the factory without firmware, I need to program the baseband firmware for the STM32. For sure, I need the firmware.

Questions:

  1. Can the STM32 baseband firmware be flashed under all circumstances using the official update process with SD-Card (e.g. the internal bootloader of the STM32 is used)?
  2. Or is a proprietary bootloader required in the STM32?
    • If a proprietary bootloader is required, where can you obtain it and where is the programming interface located on the STM32 mainboard?
?
Is this the programming interface?
?
?
?
Maybe someone here can help or has a contact who can assist with the problem?
?


 

Thomas,
since the Xiegu baseband firmware for the STM32 MCU is encrypted, I think you need their bootloader that has their decryption key to load it.
?
What might work is to decrypt it first, and then load it with the standard STM32 bootloader, since it seems that Xiegu mostly follows the application notes and defaults for a given device.
?
Franco
?


 

On Fri, Dec 6, 2024 at 02:02 PM, Franco Venturi wrote:
What might work is to decrypt it first, and then load it with the standard STM32 bootloader, since it seems that Xiegu mostly follows the application notes and defaults for a given device.
?
?
Any idea were I can get the firmware image to decrypt?


 

The encrypted STM32 baseband firmware is a file whose extension is .xgf in the '/usr/firmware' directory in your X6100; for instance the one for the latest version is called 'X6100_BBFW_V1.1.8_240915003.xgf'.
You can also find it in the sdcard.img file from a Xiegu X6100 upgrade zip; it is in the second partition under '/usr/firmware'.
?
Franco


 

I can confirm that Justin (@ratmandu) had a similar issue and was able to fix his x6100 using the method described by Franco (flashed the decrypted x6100 firmware to 0x8020000) along with a simple STM32 bootloader that he wrote (simple bootloader flashed to 0x8000000). Justin gave us his simple bootloader for others to use as well, which is now downloadable from along with some instructions.

If you need a new STM32 chip, I believe you’d be looking for a?
STM32F427ZG for about $17 + shipping/handling?

On Mon, Dec 9, 2024 at 1:19?PM Franco Venturi via <fventuri=[email protected]> wrote:
The encrypted STM32 baseband firmware is a file whose extension is .xgf in the '/usr/firmware' directory in your X6100; for instance the one for the latest version is called 'X6100_BBFW_V1.1.8_240915003.xgf'.
You can also find it in the sdcard.img file from a Xiegu X6100 upgrade zip; it is in the second partition under '/usr/firmware'.
?
Franco