Installing the STM32CubeProgrammer
In addition to the Arduino IDE, you may need to install the STM32CubeProgrammer as well. This software is needed to flash different firmware on the XM125.
Head over to STMicroelectronics, click on the Get Software button. This will scroll down to the bottom of the page. Select the STM32CubeProgrammer for your OS to install. After downloading, unzip the STM32CubeProgrammer and click on the installer. Follow the prompts to install the software.