Hide last authors
Xiaoling 38.3 1 **Table of** **Contents:**
Xiaoling 1.2 2
Xiaoling 1.1 3 {{toc/}}
4
Xiaoling 35.2 5
6
7
Xiaoling 1.2 8 = 1. Introduction =
Xiaoling 1.1 9
10
Xiaoling 38.4 11 This instruction shows how to upgrade firmware for Dragino products base on STM32 solution. The upgrade can use 2 hardware connections: (% style="color:blue" %)**UART upgrade**(%%) or (% style="color:blue" %)**ST Link v2 upgrade**(%%). Some models supports both methods and some only one of them.
Xiaoling 29.2 12
Xiaoling 38.4 13
Xiaoling 1.2 14 = 2. Hardware Upgrade Method Support List =
Xiaoling 1.1 15
Xiaoling 36.4 16
Xiaoling 57.4 17 (% border="1" style="background-color:#f2f2f2; width:891.222px" %)
Xiaoling 57.5 18 |=(% colspan="3" style="width: 888px;background-color:#D9E2F3;color:#0070C0" %)Dragino STM32 base hardware Upgrade Methods
Xiaoling 57.8 19 |(% style="color:#0070c0; width:284px" %)**Model**|(% style="color:#0070c0; width:409px" %)**UART Connection**|(% style="color:#0070c0; width:204px" %)**ST-Link Connection**
Xiaoling 39.2 20 |(% style="width:284px" %)[[LSN50 v1>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/128-lsn50.html]], [[LoRa ST>>url:http://www.dragino.com/products/lora/item/127-lora-st.html]],|(% style="width:409px" %)Hardware Connect Photo|(% style="width:204px" %)Hardware Connect Photo
21 |(% style="width:284px" %)[[LGT92>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/142-lgt-92.html]], [[LBT1>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/165-lbt1.html]]|(% style="width:409px" %)×|(% style="width:204px" %)[[Hardware Connect Photo>>||anchor="H4.1.2LGT922FLBT1ST-Linkv2Connection"]]
22 |(% style="width:284px" %)[[LT-33222-L>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/138-lt-33222-l.html]], [[LT-22222>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/156-lt-22222-l.html]]|(% style="width:409px" %)Hardware Connect Photo|(% style="width:204px" %)×
23 |(% style="width:284px" %)[[LHT65>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/151-lht65.html]]|(% style="width:409px" %)×|(% style="width:204px" %)Hardware Connect Photo
24 |(% style="width:284px" %)[[RS485-LN>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/154-rs485-ln.html]]|(% style="width:409px" %)Hardware Connect Photo|(% style="width:204px" %)×
Xiaoling 57.4 25 |(% style="width:284px" %)[[LSN50v2>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/155-lsn50-v2.html]], [[NBSN95>>url:http://www.dragino.com/products/nb-iot/item/163-nbsn95.html]],[[LSE01>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/159-lse01.html]],[[LDDS20>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/164-ldds20.html]], [[LDS03A>>https://www.dragino.com/products/lorawan-nb-iot-door-sensor-water-leak/item/196-lds03a.html]],[[LDDS75>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/161-ldds75.html]]|(% style="width:409px" %)[[Hardware Connect Photo>>||anchor="H3.1.2LSN50v22FLSN50v2-D222FLSN50v2-D23"]]|(% style="width:204px" %)[[Hardware Connect Photo>>||anchor="H4.1.1LSN50v22FLSN50v2-D222FLSN50v2-D23Type"]]
Xiaoling 39.2 26 |(% style="width:284px" %)[[LAQ4>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/174-laq4.html]]|(% style="width:409px" %)×|(% style="width:204px" %)[[Hardware Connect Photo>>||anchor="H4.1.3LAQ4ST-Linkv2Connection"]]
27 |(% style="width:284px" %)(((
28 [[RS485-BL>>url:https://www.dragino.com/products/lora-lorawan-end-node/item/167-rs485-bl.html]],
Xiaoling 1.1 29
Xiaoling 39.2 30 [[LDDS75>>https://www.dragino.com/products/distance-level-sensor/item/161-ldds75.html]],[[LLDS12>>url:https://www.dragino.com/products/distance-level-sensor/item/185-llds12.html]],[[LDDS20>>https://www.dragino.com/products/distance-level-sensor/item/164-ldds20.html]],[[LSE01>>https://www.dragino.com/products/agriculture-weather-station/item/159-lse01.html]],
Xiaoling 38.19 31
Xiaoling 39.2 32 [[WSC1-L>>https://www.dragino.com/products/agriculture-weather-station/item/206-wsc1-l.html]],[[GroPoint Air>>https://www.dragino.com/products/agriculture-weather-station/item/227-gropoint-air.html]]
33 )))|(% style="width:409px" %)[[Hardware Connection Photo>>||anchor="H3.1.3RS485-BL2FLDDS752FLDDS202FLSE01"]]|(% style="width:204px" %)[[Hardware Connect Photo>>||anchor="H4.1.4RS485-BL2FLDDS752FLDDS202FLSE01"]]
34 |(% style="width:284px" %)[[LTC2>>url:https://www.dragino.com/products/temperature-humidity-sensor/item/170-ltc2.html]]|(% style="width:409px" %)×|(% style="width:204px" %)[[Hardware Connect Photo>>||anchor="H4.1.5LTC2"]]
Xiaoling 38.19 35
Xiaoling 1.2 36 = 3. UART Upgrade Guide =
Xiaoling 1.1 37
Xiaoling 1.2 38 == 3.1 Hardware Connection ==
Xiaoling 1.1 39
Xiaoling 1.2 40 === 3.1.1 LSN50 v1 ===
Xiaoling 1.1 41
Xiaoling 38.5 42
Xiaoling 9.2 43 [[image:image-20220526173641-1.png]]
Xiaoling 1.1 44
Xiaoling 1.2 45 Connection for LSN50 v1
Xiaoling 1.1 46
Xiaoling 9.2 47
Mengting Qiu 60.1 48 === 3.1.2 LSN50 v2/LSN50v2-D22/LSN50v2-D23/LSN50v2-S31B ===
Xiaoling 1.1 49
Xiaoling 38.6 50
Mengting Qiu 60.1 51 [[image:image-20220526173751-3.png||height="467" width="966"]]a
Xiaoling 1.1 52
Mengting Qiu 60.1 53 [[image:image-20240201094036-1.jpeg||height="662" width="951"]]
54
Xiaoling 1.2 55 Connection for LSN50 Type V2
Xiaoling 1.1 56
Xiaoling 11.2 57
Xiaoling 1.2 58 === 3.1.3 RS485-BL/LDDS75/LDDS20/LSE01 ===
Xiaoling 1.1 59
Xiaoling 38.6 60
Xiaoling 25.2 61 [[image:image-20220526174856-17.png||height="629" width="976"]]
Xiaoling 1.2 62
63 Connection for RS485-BL base mother board
64
Xiaoling 38.6 65
Xiaoling 38.7 66 (% style="color:#4472c4" %) **For UART Update, need:**
Xiaoling 1.2 67
Xiaoling 52.2 68 * **Connect USB-TTL TXD  <~-~-> Device UART_RX**
Xiaoling 57.8 69
Xiaoling 52.2 70 * **Connect USB-TTL RXD  <~-~-> Device UART_TX**
Xiaoling 57.8 71
Xiaoling 52.2 72 * **Connect USB-TTL GND <~-~-> Device GND**
Xiaoling 57.8 73
Xiaoling 52.2 74 * **Put Switch SW1 to ISP position**
Xiaoling 57.8 75
Xiaoling 52.2 76 * **Connect JP2 jumper (Yellow one), so device is power on.**
Xiaoling 1.2 77
78 == 3.2 Upgrade Steps ==
79
Xiaoling 38.6 80
Xiaoling 3.2 81 (((
Xiaoling 38.6 82 (% style="color:blue" %)**Step 1:**(%%) Download [[Flash Loader>>url:https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/flasher-stm32.html]].
Xiaoling 3.2 83 )))
Xiaoling 1.2 84
Xiaoling 3.2 85 (((
Xiaoling 38.6 86 (% style="color:blue" %)**Step 2:**(%%) Download the Image files, which can be found in the product user manual.
Xiaoling 3.2 87 )))
Xiaoling 1.2 88
Xiaoling 3.2 89 (((
Xiaoling 38.6 90 (% style="color:blue" %)**Step 3:**(%%) Open Flashloader; choose the correct COM port to update, Please notice that the serial setting must follow below photos.
Xiaoling 3.2 91 )))
Xiaoling 1.2 92
Xiaoling 3.2 93 (((
Xiaoling 38.7 94 (% style="color:blue" %)**Step 4: **(%%)Set The device into (% style="color:#037691" %)**ISP Mode**(%%). Then Press the (% style="color:#037691" %)**Reset Button**(%%), In the Flash tool, click next and the tool will detect the board type.
Xiaoling 1.2 95
Xiaoling 38.6 96
Xiaoling 39.3 97 (% style="color:red" %)**Note:** ** ISP Mode can be a switch or a button, depends on the product. The device only need to be in ISP mode when press the reset button for UART Upgrade. So if the device is of a button type ISP mode, user can release the ISP button after press the reset button.**
Xiaoling 39.2 98
99
Xiaoling 3.2 100 )))
Xiaoling 1.2 101
Xiaoling 18.2 102 [[image:image-20220526174302-11.png]]
Xiaoling 1.2 103
104 UART Upgrade
105
106
Xiaoling 18.2 107 [[image:image-20220526174231-10.png]]
108
Xiaoling 1.2 109 UART Upgrade
110
111
Xiaoling 18.2 112 [[image:image-20220526174202-9.png]]
113
Xiaoling 5.6 114 (((
Xiaoling 1.2 115 UART Upgrade
Xiaoling 35.4 116
117
Xiaoling 5.6 118 )))
Xiaoling 1.2 119
Xiaoling 3.2 120 (((
Xiaoling 38.6 121 (% style="color:blue" %)**Step 5:**(%%) For switch type ISP Mode, After upgrade,please remember to switch back to Flash mode and press RESET Button to run the firmware.
Xiaoling 3.2 122 )))
Xiaoling 1.2 123
Xiaoling 3.2 124 (((
Xiaoling 38.6 125 (% style="color:blue" %)**Step 6:**(%%) Always run AT+FDR after update firmware. This is to reset the device to factory settings of the new firmware.
Xiaoling 3.2 126 )))
Xiaoling 1.2 127
Xiaoling 57.2 128
Xiaoling 1.2 129 == 3.3 Trouble shooting ==
130
131 === 3.3.1 General Check List ===
132
Xiaoling 38.8 133
Xiaoling 57.9 134 ~1. Double check if follow up exactly the steps as manual.
Xiaoling 57.8 135
Xiaoling 57.9 136 2. Check if hardware works fine:
Xiaoling 57.8 137
Xiaoling 57.9 138 * check if AT command works, in both TX/RX
139 * check if the device are in upgrade mode, see product manual for upgrade mode indicator.
140 * check if reset button works
Xiaoling 57.8 141
Xiaoling 57.9 142 3. If you use Windows10 system. Please change the flash loader to run in Windows7 compatibility mode.
Xiaoling 57.8 143
Xiaoling 57.9 144 4. We see a case the FT232 USB TTL adapter has reliability issue with the PC USB chipset(Intel). In this case, even above, it still has serious reliability issue for uploading. If this happen, change a PC or change a USB to TTL adapter will solve.
Xiaoling 57.8 145
146
Xiaoling 1.2 147 == 3.4 Flash Loader ~-~- Unable to Load data from this file ==
148
Xiaoling 38.9 149
Xiaoling 18.2 150 [[image:image-20220526174137-8.png]]
Xiaoling 1.2 151
Xiaoling 5.5 152 (((
Xiaoling 1.2 153 Unable to Load data from this file
Xiaoling 38.9 154
155
Xiaoling 5.5 156 )))
Xiaoling 1.2 157
Xiaoling 3.2 158 (((
159 The previous LSN50 firmware file is stored in github. If user use right click ~-~-> Save As to get the hex file. This error will happen. Now the LSN50 firmware file has been moved to [[LSN50 Firmware>>url:http://www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/Firmware/]] to avoid this happen.
160 )))
Xiaoling 1.2 161
Xiaoling 57.2 162
Xiaoling 1.2 163 == 3.5 Alternative method to flash via UART ==
164
Xiaoling 38.9 165
Xiaoling 1.2 166 [[Alternative method to flash STM32 via UART.pdf>>url:http://www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/Utility/&file=Alternative%20method%20to%20flash%20STM32%20via%20UART.pdf]]
167
168
169 = 4. ST-Link v2 Upgrade =
170
171 == 4.1 Hardware Connections ==
172
173 === 4.1.1 LSN50 v2/LSN50v2-D22/LSN50v2-D23 Type ===
174
Xiaoling 38.9 175
Xiaoling 25.2 176 [[image:image-20220526174450-12.png||height="570" width="1162"]]
Xiaoling 1.2 177
178 ST-Link Connections for LSn50 V2/LSN50v2-D22/LSN50v2-D23 Type
179
180
181 === 4.1.2 LGT92/LBT1 ST-Link v2 Connection ===
182
Xiaoling 38.10 183
Xiaoling 22.2 184 [[image:image-20220526174518-13.png]]
Xiaoling 1.2 185
Xiaoling 38.10 186
Xiaoling 52.2 187 **Connection to (% style="color:blue" %)LGT92(%%)**
Xiaoling 1.2 188
Xiaoling 52.2 189 * **ST-LINK v2 5.0v  <~-~->  Dupont Cable red pin**
Xiaoling 57.8 190
Xiaoling 52.2 191 * **ST-LINK v2 GND  <~-~->  Dupont Cable black pin**
Xiaoling 57.8 192
Xiaoling 52.2 193 * **ST-LINK v2 SWCLK  <~-~->  Dupont Cable green pin**
Xiaoling 57.8 194
Xiaoling 52.2 195 * **ST-LINK v2 SWDIO  <~-~->  Dupont Cable white pin**
Xiaoling 1.2 196
197 === 4.1.3 LAQ4 ST-Link v2 Connection ===
198
Xiaoling 38.12 199
Xiaoling 25.2 200 [[image:image-20220526174602-14.png||height="506" width="922"]]
Xiaoling 1.2 201
202 Connection to LAQ4
203
204
205 === 4.1.4 RS485-BL/LDDS75/LDDS20/LSE01 ===
206
Xiaoling 38.12 207
Bei Jinggeng 50.1 208 [[image:image-20230306115123-4.png]]
Xiaoling 1.2 209
210 Connection for RS485-BL base mother board
211
Xiaoling 38.12 212
Xiaoling 52.2 213 **When use (% style="color:blue" %)ST-Link v2(%%) to update, need:**
Xiaoling 1.2 214
Xiaoling 57.3 215 * **ST-LINK v2 RESET  <~-~->  NRST**
Xiaoling 57.8 216
Xiaoling 57.3 217 * **ST-LINK v2 GND  <~-~->  GND**
Xiaoling 57.8 218
Xiaoling 57.3 219 * **ST-LINK v2 SWCLK  <~-~->  SWCLK**
Xiaoling 57.8 220
Xiaoling 57.3 221 * **ST-LINK v2 SWDIO  <~-~->  SWDIO**
Xiaoling 57.8 222
Xiaoling 57.3 223 * **ST-LINK (VDD 3.3v,pin19)  <~-~->  ST-LINK (TVCC ,pin1) a wire to connect two pins of ST-Link together.**
Xiaoling 1.2 224
225 === 4.1.5 LTC2 ===
226
Xiaoling 38.13 227
Bei Jinggeng 50.1 228 [[image:image-20230306112740-2.png]]
Xiaoling 1.2 229
230 Connection for LTC2 base mother board
231
Xiaoling 38.13 232
Xiaoling 39.2 233 **Connection:**
Xiaoling 1.2 234
Xiaoling 52.2 235 * **ST-LINK v2 GND  <~-~->  LTC2 GND**
Xiaoling 57.8 236
Xiaoling 52.2 237 * **ST-LINK v2 RESET  <~-~->  LTC2 NRST**
Xiaoling 57.8 238
Xiaoling 52.2 239 * **ST-LINK v2 SWCLK  <~-~->  LTC2 SWCLK**
Xiaoling 57.8 240
Xiaoling 52.2 241 * **ST-LINK v2 SWDIO  <~-~->  LTC2 SWDIO**
Xiaoling 57.8 242
Xiaoling 52.2 243 * **ST-LINK (VDD 3.3v,pin19)  <~-~->  ST-LINK (TVCC ,pin1) a wire to connect two pins of ST-Link together.**
Xiaoling 1.2 244
Bei Jinggeng 51.1 245 = 4.2. Firmware upgrade using STM32 Cubeprogramer =
Xiaoling 50.2 246
Bei Jinggeng 62.1 247 (% style="color:blue" %)**Step1: **(%%)download [[STM32 Cubeprogramer>>https://www.st.com/en/development-tools/stm32cubeprog.html#get-software]]
Xiaoling 1.2 248
Bei Jinggeng 62.1 249 (% style="color:blue" %)**Step2:**(%%) Place the button on the base plate at the ISP and press the reset button
Xiaoling 38.14 250
Bei Jinggeng 62.1 251 [[image:image-20240202115041-1.png||height="303" width="590"]]
Bei Jinggeng 58.1 252
Bei Jinggeng 62.1 253 (% style="color:blue" %)**Step3:**(%%) Enter the download interface
254
Bei Jinggeng 51.1 255 [[image:image-20230222160658-1.png||height="479" width="827"]]
Xiaoling 1.2 256
257
Bei Jinggeng 62.1 258 (% style="color:blue" %)**Step4:**(%%) Connect serial port correctly and select UART/ST-LINK
Xiaoling 1.2 259
Bei Jinggeng 51.1 260 [[image:image-20230222160847-2.png||height="481" width="830"]]
Xiaoling 1.2 261
262
Bei Jinggeng 62.1 263 (% style="color:blue" %)**Step5: **(%%)Select the file to download
Xiaoling 1.2 264
Bei Jinggeng 51.1 265 [[image:image-20230222160947-3.png||height="473" width="818"]]
Xiaoling 1.2 266
Xiaoling 28.2 267
Bei Jinggeng 62.1 268 (% style="color:blue" %)**Step6: **(%%)Click to start programming, and wait for it to download to 100%, pop up a successful download box
Xiaoling 1.2 269
Bei Jinggeng 51.1 270 [[image:image-20230222161119-4.png||height="476" width="821"]]
Xiaoling 39.3 271
Xiaoling 1.2 272
273 == 4.3 Trouble Shootings ==
274
275 === 4.3.1 ST-Link v2 can not detect the hardware ===
276
Xiaoling 35.16 277
Xiaoling 29.2 278 (% style="color:#4f81bd" %)**Possible Issue 1:**
Xiaoling 1.2 279
280 1. Make sure see the LED blink on the ST-Link and release the reset button during blinking.
281
Xiaoling 29.2 282 (% style="color:#4f81bd" %)**Possible Issue 2:**
Xiaoling 1.2 283
284 1. There are different version ST-Link v2. The white one as below is the most stable and recommended one.
Xiaoling 57.8 285
Xiaoling 45.2 286 1. The white version ST-Link v2 such as below photo has different hardware version. The original one doesn't have 3.3v on pin 1/2 and the clone one has 3.3v on pin 1/2. User has to short pin19 (VDD 3.3v) and pin 1/2 (TVCC) for the original one so pin 1/2 has 3.3v power. Otherwise, the original one might have problem to upload firmware to End Node.
Xiaoling 1.2 287
Xiaoling 28.2 288 [[image:image-20220526175418-21.png]]
Xiaoling 1.2 289
290 ST-Link upload issue
291
292
Xiaoling 29.2 293 (% style="color:#4f81bd" %)**Possible Issue 3:**
Xiaoling 1.2 294
295 1. The ST-Link adapter has issue in the RESET pin. this happens for the LHT65 model where the update request use the reset pin of ST-Link.We see this issue happen in below ST-LINK.
296
Xiaoling 29.2 297 [[image:image-20220526175708-22.png]]
Xiaoling 1.2 298
Xiaoling 5.2 299 (((
Xiaoling 1.2 300 RESET pin not function
Xiaoling 5.2 301 )))
Xiaoling 1.2 302
Xiaoling 5.2 303
304 (((
Xiaoling 1.2 305 User can try to mannual reset when use this type of ST-Link, touch the reset pin to GND pin and click the global icon in the ST Utility, If the other 3 wire connection is fine, the ST-LInk adapter LED will blink. and then release the reset. The IC should be detected.
Xiaoling 3.2 306 )))
Xiaoling 5.2 307
308 (((
Xiaoling 1.2 309 For LHT65 we recommend to use the white one show in possible issue 2.
Xiaoling 5.2 310 )))
Xiaoling 1.2 311
Xiaoling 5.2 312 (((
Xiaoling 45.2 313 For LGT92, if user use this type of ST-Link, please also connect the 5v to USB port of LGT92.
Xiaoling 5.2 314 )))
Xiaoling 1.2 315
316
317 === 4.3.2 ST-Link v2 detect the hardware but disconnect after click OK ===
318
Xiaoling 35.10 319
Bei Jinggeng 56.1 320 [[image:image-20230329155923-2.png]]
Xiaoling 1.2 321
322 Do not click OK, click Cancel
323
Xiaoling 31.2 324
Xiaoling 1.2 325 === 4.3.3 Old ST-LINK firmware/ST-LINK already use and USB communication error ===
326
Xiaoling 38.16 327
Xiaoling 3.2 328 (((
Xiaoling 1.2 329 It may be that your stlink firmware is too old.
Xiaoling 3.2 330 )))
Xiaoling 1.2 331
Xiaoling 3.2 332 (((
Xiaoling 1.2 333 You can try these steps:
Xiaoling 3.2 334 )))
Xiaoling 1.2 335
Xiaoling 3.2 336 (((
Xiaoling 1.2 337 You unplug the stlink, and then plug in the stlink again.
Xiaoling 3.2 338 )))
Xiaoling 1.2 339
Xiaoling 3.2 340 (((
Xiaoling 45.2 341 You click **ST-LINK  ->  Firmware update.**
Xiaoling 3.2 342 )))
Xiaoling 1.2 343
Xiaoling 31.2 344 [[image:image-20220526175855-24.png]]
Xiaoling 1.2 345
Xiaoling 38.16 346 (% style="color:blue" %)**step1: **(%%) click Device connect.
Xiaoling 1.2 347
348
Xiaoling 38.16 349
Xiaoling 33.2 350 [[image:image-20220526175954-25.png]]
Xiaoling 4.1 351
Xiaoling 33.2 352 [[image:image-20220526180013-26.png]]
353
Xiaoling 38.16 354 (% style="color:blue" %)**step2: **(%%) Click yes to upgrade successfully.
Bei Jinggeng 44.1 355
356
Bei Jinggeng 51.1 357 == 5. Other Method ==
Xiaoling 45.2 358
Xiaoling 52.2 359
Bei Jinggeng 52.1 360 ST-Link v2 Upgrade Guide
Xiaoling 45.2 361
Bei Jinggeng 52.1 362
Bei Jinggeng 51.1 363 (((
364 (% style="color:blue" %)**Step 1:**(%%) Install [[ST-LINK driver>>url:https://www.stmicroelectronics.com.cn/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-utilities/stsw-link009.html]] first and then install [[ST-LINK Utility>>url:https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-link004.html]]
365 )))
Bei Jinggeng 44.1 366
Bei Jinggeng 51.1 367 (((
368 (% style="color:blue" %)**Step 2: **(%%)Download the Image files, firmware download link can be found on the product user manual.
369 )))
Bei Jinggeng 44.1 370
Bei Jinggeng 51.1 371 (((
372 (% style="color:blue" %)**Step 3:**(%%) Open ST-LINK utility, file ~-~-> open file to select the image to be upgraded.
373 )))
Bei Jinggeng 44.1 374
Bei Jinggeng 51.1 375 (((
376 (% style="color:blue" %)**Step 4:**
377 )))
Bei Jinggeng 44.1 378
Bei Jinggeng 51.1 379 * Case 1: If your board has the **Reset pin** connect to St-Link ((for example: LSN50v2, LHT65, LAQ4), click the blue global “settings” button on ST-LINK.
Xiaoling 57.8 380
Bei Jinggeng 51.1 381 * Case 2: If your board doesn't have reset pin connect to ST-Link, but has a reset button (for example: LGT92). Keep pushing the small reset button on LGT92 and then click the blue global “settings” button on ST-Link utility.
Bei Jinggeng 44.1 382
Bei Jinggeng 51.1 383 [[image:image-20220526175243-19.png]]
Bei Jinggeng 44.1 384
Bei Jinggeng 51.1 385 Click Global Icon
Bei Jinggeng 44.1 386
387
Xiaoling 57.2 388 (% style="color:blue" %)**Step 5**(%%)**:** **Please select the mode as Connect under reset. **After click the Global ICon in Step4, The led on the ST-LINK v2 adapter will now blinks, if you use hand to press the reset button , you need to release the reset button when see the LED blinks, and the ST-Link will detect the STM32 hardware as below. Click cancel to enter next step. Please check hardware connection if ST-Link v2 LED doesn't blink.
Bei Jinggeng 44.1 389
Xiaoling 45.2 390
Bei Jinggeng 56.1 391 [[image:image-20230329155929-3.png]]
Bei Jinggeng 51.1 392
393 Do not click OK, click Cancel
394
395
396 (% style="color:blue" %)**Step 6:**(%%)** **Click verify/upgrade firmware. The ST-Link utility will pop up a download window. Click the start button to download the image to Device.
397
398 [[image:image-20220701171857-1.png]]
399
400 ST-Link v2 Upgrade
401
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0