Firmware Update Manual
for the
UPAN Stepper Motor Controller

 

 

Requirements

  • USB Type-C Cable: For connecting the controller to your PC.
  • Windows 10 or Windows 11 PC: The application required for the firmware update is compatible with these operating systems.
  • Firmware files and update software – download links will be provided later in this guide.

 

FAQ

Most frequent questions and answers

Step 1: Downloading STM32CubeProgrammer

  1. Open your web browser and go to the official STMicroelectronics website: STM32CubeProgrammer Download.

  2. Scroll down to the ‘Get Software’ section.

  3. Click the download button and follow the instructions to create an ST account (if required).

  4. After logging in, download the appropriate version of STM32CubeProgrammer for your operating system (Windows, macOS, or Linux).

Step 2: Installing STM32CubeProgrammer (Windows Example)

  1. Locate the downloaded installer file (usually in .exe format).

  2. Double-click the file to start the installation process.

  3. Follow the on-screen prompts:

    • Accept the license agreement.

    • Choose the installation directory (default is recommended).

    • Click Next until the installation begins.

  4. Wait for the installation to complete, then click Finish.

  5. (Optional) Restart your computer to ensure all components are properly configured.

Step 3: Verifying the Installation

  1. Open STM32CubeProgrammer from the Start Menu or desktop shortcut.

  2. If the program launches successfully without errors, the installation is complete.

You are now ready to use STM32CubeProgrammer for firmware updates!

Step 1: Downloading UPAN Download Utility

  1. Download UPAN_Download_Utility.zip from the official source 

  2. Save the file to a convenient location on your PC.

Step 2: Extracting the Utility

  1. Locate UPAN_Download_Utility.zip in your downloads folder.

  2. Right-click the file and select Extract All….

  3. Choose the destination folder where you want to extract the files.

  4. Click Extract and wait for the process to complete.

Step 3: Checking Extracted Files

Once extracted, you should see the following files and folders:

  • bin (Folder) – This folder contains the working firmware files. Each firmware version consists of two files: module 1 and module 2. The filenames include the firmware version number (e.g., UPAN_412_v2.0.28_module1.bin and UPAN_412_v2.0.28_module2.bin). To properly flash the firmware, ensure that both files with the same version number are placed in this folder.

  • Boot (Folder) – This folder contains the bootloader firmware. It is only needed when upgrading from older versions of the controller to modern firmware.

  • UPAN_WIN7_DOWNLOAD (Application)

  • UPAN_WIN10_DOWNLOAD (Application)

Now, you are ready to use the UPAN Download Utility!

Step 1: Preparing for Bootloader Update

  1. Ensure that you have installed STM32CubeProgrammer and extracted UPAN Download Utility.

  2. Connect the UPAN controller to your PC using a USB Type-C cable.

  3. Ensure that the device is detected in Device Manager under the correct COM port.

Step 2: Entering Bootloader Mode

  1. Power off the UPAN controller.

  2. Press and hold the Boot button on the controller.

  3. While holding the Boot button, power on the device.

  4. Release the Boot button after a few seconds.

Step 3: Flashing the New Bootloader

  1. Open STM32CubeProgrammer.

  2. In the top-right corner, select USB instead of the default UART connection.

  3. Click the Refresh button and ensure that the correct USB port is selected in the Port field.

  4. Click Connect to establish communication with the controller

  5. Erasing the Chip

    Before installing a new bootloader, you must completely erase the chip.

    1. Click Full Chip Erase to completely erase the flash memory.

    2. Wait for the process to complete before proceeding with bootloader installation.

  6. Navigate to the Erasing & Programming tab.

    Click Browse and select the bootloader file (.bin or .hex). The bootloader file is located in the Boot folder inside the extracted UPAN Download Utility directory.

    Click Start Programming and wait for the process to complete.

Step 4: Verifying the Bootloader Update

After programming, disconnect and reconnect the controller.

In the downloaded archive (UPAN_Download_Utility), locate and open UPAN_WIN10_DOWNLOAD (Application)

You may need to run it as an administrator

  1. Select the COM port to which the UPAN controller is connected.

  2. If the firmware selection window shows 255.255.255, this means the main firmware is not loaded.

  3. Otherwise, your current firmware version will be displayed.

  4. For instructions on updating the firmware, refer to the section ‘How to Update Firmware’.

Step 1: Preparing for Firmware Installation

  1. Ensure that you have successfully updated the bootloader (refer to ‘How to Update the Bootloader’).

  2. Connect the UPAN controller to your PC using a USB Type-C cable.

  3. Open the UPAN Download Utility (UPAN_WIN10_DOWNLOAD application).

    • Run the application as an administrator if needed.

Step 2: Selecting the Firmware

  1. In the UPAN Download Utility, select the COM port associated with the UPAN controller.

  2. From the firmware selection dropdown, choose the correct firmware version.

    • If 255.255.255 is displayed, this means the main firmware is missing or needs to be reinstalled.

Step 3: Flashing the Firmware

  1. Click Start to begin the firmware installation process. Confirm your action in the pop-up window.

  • The controller screen will display a progress indicator.

  • Once the process is complete, a Reboot button will appear on the UPAN controller.

  • Press the Reboot button to load the updated firmware.

  1. Wait for the process to complete. Do not disconnect the controller during flashing.

  2. Once completed, restart the UPAN controller by unplugging and reconnecting it.

Step 4: Verifying the Firmware Installation

  1. Open UPAN Download Utility and check if the firmware version is now correctly displayed.

  2. If the controller functions properly, the firmware installation was successful.

Your UPAN controller is now updated and ready for use!

Since firmware updates are often performed on already-flashed devices, it is important to first determine the currently installed version.

Method 1: Using UPAN Download Utility

  1. Open UPAN Download Utility.

  2. Select the correct COM port.

  3. If the port is correct, the current firmware version will appear in the version field.

Method 2: Using the Controller’s Technical Screen

  1. Turn on the UPAN controller.

  2. Access Technical Screen No. 2 (shortcut: 2+ESC).

  3. The firmware version will be displayed.

Important Note on Re-Flashing the Same Firmware Version

To ensure the firmware update is applied, the uploaded version must be different from the currently installed one. If you need to reflash the same firmware version (e.g., due to suspected flash memory corruption), modify the version number in the file name without changing the overall file name format.

Example: To reflash version 2.0.28, rename both module files by changing 28 to 29 before flashing. You can later revert to the original name if you need to.

Your UPAN controller is now updated and ready for use!

On Windows 10 and 11, the COM port associated with the UPAN controller may not have a recognizable name. To correctly identify it, follow these steps:

  1. Disconnect the controller from the PC.

  2. Open Device Manager.

  3. Expand the Ports (COM & LPT) section (if visible). If not, keep the window open as it is.

  4. Reconnect the controller to the PC.

  5. Observe the Ports (COM & LPT) section again – a new COM port should appear. This is the correct port to use.

  6. Note the COM port number and select it in UPAN Download Utility.

Scroll to Top