SPLat Logo

Programming HEX Files

NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map

SPLat is now providing HEX files instead of DFU files

Some of our clients receive DFU files for programming devices. Doing this required loading a program called DFUseDemo. This tool has some limitations and has not been supported by STmicro (our CPU vendor) for some time.

For Production, we have now switched to using HEX files and STM32 Cube Programmer. As a result of driver incompatibility, we can no longer generate DFU files.

Obviously, to download a HEX file you could use SPLash. However this has not been updated for a while either, and STM32 Cube Programmer is a more up-to-date tool. Note that it's available for Mac and Linux targets as well as Windows.

Here's how to use the tool:

  1. Uninstall DFUseDemo. (This might be optional, but ST recommends it.)
  2. Download and install STM32 Cube Programmer.
  3. Install the PGM link on the board.
  4. Connect the USB plug to the board.
  5. Power the board ON.
  6. Start STM32 Cube Programmer.
  7. Click on the "Open File" button:Open File
  8. Select the required HEX file.
  9. Click the "Read Unprotect (MCU)" checkbox. (This step is optional if the firmware is already an "unprotected" version.) Read Unprotect
  10. Click the "Download" button. Download
  11. Wait for the download to complete.
  12. Power the board off.
  13. Remove the PGM link.
If you have multiple boards to program, you can refresh the connection for the next board using the "refresh button": Refresh