Updating STM32 Firmware
Torch: / EVK:
The STM32WLE firmware runs the 915MHz LoRa radio inside the RTK Torch.
RTK Torch LoRa radio firmware version 2.0.2
The firmware version number is displayed in the radio menu. If the device does not show this menu option the ESP32 firmware will need to be updated first.
Firmware updates to the STM32WLE can only be done over the serial interface. Follow these steps to update the LoRa radio firmware on the RTK Torch.
-
Download and install STM32CubeProgrammer. While it is available for Windows/Linux/iOS, ST makes it rather difficult to get this software. We're sorry!
-
Download the latest STM32 LoRa binary from the RTK Everywhere Firmware Binaries repo. As of writing, this is RTK_Torch_STM32_LoRa_v2_0_2.bin.
-
Open the main menu and select System (s), Hardware Debug (h), STM32 direct connect (17).
-
The device will automatically reset and show instructions. The device is now operating in pass-through mode at 57600bps, and ready to be programmed. If needed, to exit this pass-through mode, press and release the main power button.
-
Close the terminal connection. This will likely cause the device to reset - that is ok.
-
Open STM32CubeProgrammer. Select UART (blue box) as the programming interface. Set the Baudrate to 57600, No parity, RTS and DTR set to high.
-
Avoid Read Unprotected. Do not enable. This setting writes to fuse bits and if there is a problem with serial communication, it can lead to an inoperable bootloader. The device can be repaired but only at SparkFun (we have to use an ST-Link to reprogram the fuse bits over the SWD interface).
-
Select the COM port associated with COM-B of the RTK device. Not sure? Read here. Once selected, click Connect.
-
Once connected, select Erasing & programming on the left side menu.
-
Above, select the binary file and click Start Programming.
-
After a few seconds, programming will complete.
-
Click disconnect to close the port.
-
Now press and release the power button on the Torch. The device will beep indicating it has exited pass-through mode. You can now use your device normally.
-
To confirm the version, open the Radio menu and enable the radio. Above, version 2.0.2 is seen.