Changes for page Firmware Upgrade Instruction for STM32 base products
Last modified by Bei Jinggeng on 2024/02/02 11:51
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -23,6 +23,7 @@ 23 23 |(% style="width:444px" %)[[RS485-BL>>url:https://www.dragino.com/products/lora-lorawan-end-node/item/167-rs485-bl.html]], LDDS75,[[LLDS12>>url:https://www.dragino.com/products/distance-level-sensor/item/185-llds12.html]],LDDS20,[[LSE01>>https://www.dragino.com/products/agriculture-weather-station/item/159-lse01.html]],WSC1-L,GroPoint Air|(% style="width:239px" %)[[Hardware Connection Photo>>url:https://wiki.dragino.com/index.php/Firmware_Upgrade_Trouble_Shooting#RS485-BL.2FLDDS75.2FLDDS20.2FLSE01]]|(% style="width:204px" %)[[Hardware Connect Photo>>url:https://wiki.dragino.com/index.php/Firmware_Upgrade_Instruction_for_STM32_base_products#RS485-BL.2FLDDS75.2FLDDS20.2FLSE01_2]] 24 24 |(% style="width:444px" %)[[LTC2>>url:https://www.dragino.com/products/temperature-humidity-sensor/item/170-ltc2.html]]|(% style="width:239px" %)×|(% style="width:204px" %)[[Hardware Connect Photo>>url:https://wiki.dragino.com/index.php/Firmware_Upgrade_Instruction_for_STM32_base_products#LTC2]] 25 25 26 + 26 26 = 3. UART Upgrade Guide = 27 27 28 28 == 3.1 Hardware Connection == ... ... @@ -29,13 +29,13 @@ 29 29 30 30 === 3.1.1 LSN50 v1 === 31 31 32 -[[i mage:image-20220511163746-2.png||height="322" width="433"]]33 +[[File:STM32 UART Upgrade 1.png>>url:https://wiki.dragino.com/index.php?title=Special:Upload&wpDestFile=STM32_UART_Upgrade_1.png]] 33 33 34 34 Connection for LSN50 v1 35 35 36 36 === 3.1.2 LSN50 v2/LSN50v2-D22/LSN50v2-D23 === 37 37 38 -[[image:https://wiki.dragino.com/images/thumb/f/f8/STM32_UART_Upgrade_2.png/600px-STM32_UART_Upgrade_2.png||height="2 67" width="551"]]39 +[[image:https://wiki.dragino.com/images/thumb/f/f8/STM32_UART_Upgrade_2.png/600px-STM32_UART_Upgrade_2.png||height="291" width="600"]] 39 39 40 40 Connection for LSN50 Type V2 41 41 ... ... @@ -53,28 +53,18 @@ 53 53 * Put Switch SW1 to ISP position 54 54 * Connect JP2 jumper (Yellow one), so device is power on. 55 55 57 + 56 56 == 3.2 Upgrade Steps == 57 57 58 -((( 59 59 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]]. 60 -))) 61 61 62 -((( 63 63 Step 2: Download the Image files, which can be found in the product user manual. 64 -))) 65 65 66 -((( 67 67 Step 3: Open Flashloader; choose the correct COM port to update, Please notice that the serial setting must follow below photos. 68 -))) 69 69 70 -((( 71 71 Step 4: Set The device into **ISP Mode**. Then Press the **Reset Button**, In the Flash tool, click next and the tool will detect the board type. 72 -))) 73 73 74 -(% class="box warningmessage" %) 75 -((( 76 -**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. 77 -))) 68 +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. 78 78 79 79 [[image:https://wiki.dragino.com/images/thumb/0/0e/STM32_UART_Upgrade_3.png/600px-STM32_UART_Upgrade_3.png||height="361" width="600"]] 80 80 ... ... @@ -88,15 +88,13 @@ 88 88 89 89 UART Upgrade 90 90 91 -((( 92 92 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. 93 -))) 94 94 95 -((( 96 96 Step 6: Always run AT+FDR after update firmware. This is to reset the device to factory settings of the new firmware. 97 - 98 -))) 99 99 86 + 87 +\\ 88 + 100 100 == 3.3 Trouble shooting == 101 101 102 102 === 3.3.1 General Check List === ... ... @@ -103,12 +103,13 @@ 103 103 104 104 1. Double check if follow up exactly the steps as manual. 105 105 1. Check if hardware works fine: 106 -1 *. check if AT command works, in both TX/RX107 -1 *. check if the device are in upgrade mode, see product manual for upgrade mode indicator.108 -1 *. check if reset button works95 +11. check if AT command works, in both TX/RX 96 +11. check if the device are in upgrade mode, see product manual for upgrade mode indicator. 97 +11. check if reset button works 109 109 1. If you use Windows10 system. Please change the flash loader to run in Windows7 compatibility mode. 110 110 1. 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. 111 111 101 + 112 112 == 3.4 Flash Loader ~-~- Unable to Load data from this file == 113 113 114 114 [[image:https://wiki.dragino.com/images/9/96/FlashLoader-troube_1.png||height="521" width="399"]] ... ... @@ -115,9 +115,7 @@ 115 115 116 116 Unable to Load data from this file 117 117 118 -((( 119 -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. 120 -))) 108 +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 [[LSN5 Firmware>>url:http://www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/Firmware/]] to avoid this happen. 121 121 122 122 == 3.5 Alternative method to flash via UART == 123 123 ... ... @@ -146,6 +146,7 @@ 146 146 * ST-LINK v2 SWCLK <~-~-> Dupont green pin 147 147 * ST-LINK v2 SWDIO <~-~-> Dupont white pin 148 148 137 + 149 149 === 4.1.3 LAQ4 ST-Link v2 Connection === 150 150 151 151 [[image:https://wiki.dragino.com/images/thumb/0/03/STM32_STLINK_Upgrade_LAQ4.png/600px-STM32_STLINK_Upgrade_LAQ4.png||height="331" width="600"]] ... ... @@ -180,23 +180,16 @@ 180 180 * ST-LINK v2 SWCLK <~-~-> LTC2 SWCLK 181 181 * ST-LINK v2 SWDIO <~-~-> LTC2 SWDIO 182 182 172 + 183 183 == 4.2 ST-Link Upgrade Guide == 184 184 185 -((( 186 186 **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]] 187 -))) 188 188 189 -((( 190 190 **Step 2**: Download the Image files, firmware download link can be found on the product user manual. 191 -))) 192 192 193 -((( 194 194 **Step 3**: Open ST-LINK utility, file ~-~-> open file to select the image to be upgraded. 195 -))) 196 196 197 -((( 198 198 **Step 4**: 199 -))) 200 200 201 201 * 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. 202 202 * 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. ... ... @@ -205,15 +205,14 @@ 205 205 206 206 Click Global Icon 207 207 208 - (((190 + 209 209 **Step 5**: 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 210 -))) 211 211 212 212 [[image:https://wiki.dragino.com/images/thumb/2/20/ST-LINK-troube_2.png/600px-ST-LINK-troube_2.png||height="366" width="600"]] 213 213 214 214 Do not click OK, click Cancel 215 215 216 - **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.197 +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. 217 217 218 218 [[image:https://wiki.dragino.com/images/thumb/9/9a/STM32_ST-Link_Upgrade_3.png/600px-STM32_ST-Link_Upgrade_3.png||height="389" width="600"]] 219 219 ... ... @@ -228,6 +228,7 @@ 228 228 229 229 1. Make sure see the LED blink on the ST-Link and release the reset button during blinking. 230 230 212 + 231 231 Possible Issue 2: 232 232 233 233 1. There are different version ST-Link v2. The white one as below is the most stable and recommended one. ... ... @@ -244,27 +244,13 @@ 244 244 245 245 [[image:https://wiki.dragino.com/images/a/a3/ST-LINK-troube_4.png||height="337" width="406"]] 246 246 247 -((( 248 248 RESET pin not function 249 -))) 250 250 251 -((( 252 - 253 -))) 254 - 255 -((( 256 -((( 257 257 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. 258 -))) 259 -))) 260 260 261 -((( 262 262 For LHT65 we recommend to use the white one show in possible issue 2. 263 -))) 264 264 265 -((( 266 266 For LGT92, if user use this type of ST-Link, please also connect the 5v to USB port of LGT92 267 -))) 268 268 269 269 270 270 === 4.3.2 ST-Link v2 detect the hardware but disconnect after click OK === ... ... @@ -275,30 +275,30 @@ 275 275 276 276 === 4.3.3 Old ST-LINK firmware/ST-LINK already use and USB communication error === 277 277 278 -((( 279 279 It may be that your stlink firmware is too old. 280 -))) 281 281 282 -((( 283 283 You can try these steps: 284 -))) 285 285 286 -((( 287 287 You unplug the stlink, and then plug in the stlink again. 288 -))) 289 289 290 -((( 291 291 You click ST-LINK->Firmware update. 292 -))) 293 293 294 294 [[image:https://wiki.dragino.com/images/thumb/f/f4/Stlink22.png/600px-Stlink22.png||height="401" width="600"]] 295 295 296 - **step1**:click Device connect.256 +step1 297 297 258 +click Device connect. 259 + 298 298 [[image:https://wiki.dragino.com/images/1/12/Stlink23.png||height="238" width="486"]] 299 299 262 +step2 263 + 264 +Click yes to upgrade successfully. 265 + 300 300 [[image:https://wiki.dragino.com/images/a/a2/Stlink24.png||height="128" width="230"]] 301 301 302 - **step2:**Click yes to upgrade successfully.268 +step3 303 303 304 - 270 +[[Category>>url:https://wiki.dragino.com/index.php/Special:Categories]]: 271 + 272 +* [[Pages with broken file links>>url:https://wiki.dragino.com/index.php?title=Category:Pages_with_broken_file_links&action=edit&redlink=1]]