Procedure
This guide covers a basic setup using STM32CubeProgrammer (version 2.23.0). It walks through a standard programming process using the software's default settings. If you need advanced configuration or additional features later on, check out the STM32CubeProgrammer User Manual.
Preparing STM32CubeProgrammer for Programming
- Open up STM32CubeProgrammer.
- Go to top left portion of screen and select the Erasing and Programming section.
- After clicking on that section, select the browse option next to File path.
- Select the files with a
.hexending that have the correct firmware for Gen 1 and Gen 2 Chillers.
- The files will then be available to use when programming PCBA Boards.
- Now that your STM32CubeProgrammer is ready to use, you will want to use the provided ST Link Programmer to connect to the PCBA Boards.
Connecting the ST Link to the PCBA Boards
- Open up the provided box containing the ST Link Programmer. This should come with the ST Link Programmer, a rainbow ribbon cable assembly, and a USB extension cable.
- Next, connect the ST link programmer with the rainbow ribbon cable assembly. Also connect the other side of the ribbon cable into the PCBA Board (Gen 2 Board in example).
- After the cable is successfully assembled and connected to the board. Open up STM32CubeProgrammer on your laptop.
- Now plug in the ST link programmer into the USB port on your laptop and have the program ready.
Programming using STM32CubeProgrammer
- Now that the board is connected and ready to be programmed, click on the connect button.
- After clicking connect, the board should be connected and you should be able to access the software.
- The first step on flashing a board is to do a full chip erase on the board to clear out any bricked firmware.
- Click on the full chip erase button.
- Now that the firmware has been erased, go to the top left portion of the screen and check the Verify Programming box and Run after programming box. This will run the firmware after updating to ensure the board was successfully flashed.
- Now that those settings are changed, click on the left side panel and open up the Option bytes section. Also make sure to switch the view from Detailed view to Compact view at the top of the screen.
- The settings seen in the Option bytes panel provided are the settings required for the PCBA board to work as intended. If any of the settings appear different, make sure to change them to match and after the settings appear the same, click the apply button.
- The Option bytes should now be programmed onto the PCBA Board and ready to take firmware.
- Now go to top left portion of screen and select the Erasing and Programming section.
- After switching back over to the erasing and programming section, click on the browse option near file path and select the correct firmware to upload onto the board.
- Below is what a picture of a Generation 1 Board will look like. You can tell by the size of the board and there will also be writing on the board that will say ColdPlunge Main PCBA V1.32 or V1.43. For this board you will want to program it using STM_v1_16_20130_firmware.hex or higher. Make sure to check the STM is v1 before programming.
- Below is a picture of what a Generation 2 PCBA Board will look like. You can tell by the size of the board and there will also be writing on the board that will say MAIN CONTROL BOARD v2.0. For this board you will want to program it using STM_v2_10_30405_firmware.hex or higher. Make sure to check the STM is v2 before programming.
- After selecting the correct firmware, select the Start Programming button and the new firmware should upload to the board.
- After the board has been successfully programmed with new firmware, the PCBA Board LED light should be glowing or strobing, depending on the generation.
- Finally, the last step is to click the disconnect button and remove the USB after disconnecting.
Comments
0 comments
Please sign in to leave a comment.