-
Notifications
You must be signed in to change notification settings - Fork 4
Firmware
The firmware of this display module is developed using Atollic TrueStudio, GCC toolchain, and STM32Cube. To compile and build the firmware we recommended to use the latest version of Atollic TrueStudio and GCC toolchain.
The compilation process is straightforward and it does not need any additional libraries or configurations. For more details check the documentation of Atollic TrueStudio and STM32Cube.
There are a couple of methods available to upload firmware to the STM32F103CBT6 MCU. The most recommended approach is to use the ST-Link V2 Programmer & Emulator. This module is designed to work with most of the ST-Link V2 programmers and clones.
To flash the display module ST-Link V2 programmer needs to connect with ICDP port (J2). The wiring connections between ICDP port (J2) and programmer are stated in the following table.
ICDP (J2) | ST-Link V2 |
---|---|
3.3V | 3.3V (or 3V3) |
DATA | SWDIO |
CLK | SWCLK |
GND | GND |
To upload the firmware, we suggest using STM32 ST-LINK Utility (STSW-LINK004) software. This utility is available to download at STSW-LINK004 product page at st.com.
Once the physical connection is established use following steps to connect the display module with ST-LINK Utility software:
- Disconnect USB connection with the display board.
- Launch STM32 ST-LINK Utility and open Target > Setting window and adapter change settings as follows:
Option | Value |
---|---|
Port | SWD |
Mode | Connect under rest |
Debug in low power mode | Enable |
Reset mode | Hardware reset |
- Close the settings window.
- Short-circuit (close) SW1 jumper with a metal tweezer and press Target > Connect menu option in the STM32 ST-LINK Utility.
- Release (open) SW1 jumper and then STM32 ST-LINK Utility should connect with the MCU.
- Load compiled firmware into the STM32 ST-LINK Utility using File > Open File... menu option.
- Flash new firmware using Target > Program option.
- After the firmware update, disconnect ICDP link by clicking Target > Disconnect.
- Detach ST-Link V2 programmer from the board.