16
LSI LASTEM SRL Page 1 / 16 Environmental monitoring solutions SVSKA2001 Data logger reprogramming kit User manual

SVSKA2001 Data logger reprogramming kit User manual

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

LSI LASTEM SRL Page 1 / 16

Environmental monitoring solutions

SVSKA2001

Data logger reprogramming kit

User manual

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 2 / 16

Revisions list

Issue Date Author Description of changes

Origin 04/09/2020 Guida - Reschiotto

a 17/09/2020 Reschiotto Change “Skip Flash Erase” option on pages 13 and 14

b 11/10/2021 Reschiotto Replaced pen drive and related references

About this manual The information contained in this manual may be changed without prior notification. No part of this manual

may be reproduced, neither electronically nor mechanically, under any circumstance, without the prior writ-

ten permission of LSI LASTEM.

LSI LASTEM reserves the right to carry out changes to this product without timely updating of this document.

Copyright 2020-2021 LSI LASTEM. All rights reserved.

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 3 / 16

Table of contents

1 Introduction ............................................................................................................................................... 4

2 ST-link-Utility installation and STM32 programming ................................................................................ 5

2.1 Getting started .................................................................................................................................. 5

2.1.1 System requirements ................................................................................................................ 5

2.1.2 Installing the STM32 ST-LINK utility ........................................................................................... 5

2.1.3 Installing ST-LINK, ST-LINK/V2, ST-LINK/V2-1 USB driver signed for Windows7, Windows8,

Windows10 ................................................................................................................................................ 7

2.2 STM32 ST-LINK utility ........................................................................................................................ 9

2.2.1 Connection ST-LINK, ST-LINK/V2, ST-LINK/V2-1, STLINK-V3 to USB port .................................. 9

2.2.2 Main window ............................................................................................................................. 9

3 Reprogramming data loggers .................................................................................................................. 13

3.1 Firmware upload ............................................................................................................................. 13

3.2 Programming bootloader ................................................................................................................ 14

4 SVSKA2001 programming kit disconnection ........................................................................................... 16

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 4 / 16

1 Introduction This manual explains how to install and use the SVSKA2001 kit for reprogramming the Alpha-Log and Pluvi-

One data loggers.

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 5 / 16

2 ST-link-Utility installation and STM32 programming The STM32 ST-LINK utility software facilitates fast in-system programming of the STM32 microcontrollers

during development via the ST-LINK, ST-LINK/V2 and ST-LINK-V3 tools.

Note: The part number of the STM32 ST-LINK utility software is “STM32 ST-LINK Utility v4.5.0.exe".

2.1 Getting started This section describes the requirements and the procedures to install the STM32 ST-LINK utility software.

2.1.1 System requirements

The STM32 ST-LINK utility PC configuration requires as a minimum:

• PC with USB port and Intel® Pentium® processor running a 32-bit version of one of the

following Microsoft® operating systems:

o Windows® XP

o Windows® 7

o Windows® 10

• 256 Mbytes of RAM

• 30 Mbytes of hard disk space available

2.1.2 Installing the STM32 ST-LINK utility

Follow these steps and the on-screen instructions to install the STM32 ST-LINK utility:

1. Insert the LSI LASTEM pen drive on the PC.

2. Open the folder “STLINK-V2”.

3. Double-click the executable, STM32 ST-LINK Utility v4.5.0.exe, to initiate the installation, and follow

the on-screen prompts (from figure fig_01.jpg to fig_07-3.jpg) to install the STM32 ST-LINK utility in

the development environment.

fig. 1 Preparing to install

fig. 2 Click Next to continue

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 6 / 16

fig. 3 Click Yes to accept License Agreement

fig. 4 Click next to install in default folder

fig. 5 Click Finish to complete installation

fig. 6 Click next to install Device Driver

fig. 7 Click on Install

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 7 / 16

fig. 8 Click on Finish

2.1.3 Installing ST-LINK, ST-LINK/V2, ST-LINK/V2-1 USB driver signed for Windows7, Win-

dows8, Windows10

This USB driver (STSW-LINK009) is for ST-LINK/V2, ST-LINK/V2-1 and STLINK-V3 boards and derivatives

(STM8/STM32 discovery boards, STM8/STM32 evaluation boards and STM32 Nucleo boards). It declares to

the system the USB interfaces possibly provided by the ST-LINK: ST Debug, Virtual COM port and ST Bridge

interfaces.

ATT!! The driver must be installed prior to connecting the device, to have a successful enumeration.

Open the folder “STLINK-V2\Driver” of the LSI LASTEM pen drive and double-click the executable:

• dpinst_x86.exe (for 32-bit operating system)

• dpinst_amd64.exe (for 64-bit operating system)

To initiate the installation, follow the on-screen prompts (from figure fig_01.jpg to fig_07-3.jpg) to install

the drivers.

fig. 9 Click Next

fig. 10 Click Install

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 8 / 16

fig. 11 Click Finish

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 9 / 16

2.2 STM32 ST-LINK utility This section provides a detailed description on how to use STM32 ST-LINK utility.

2.2.1 Connection ST-LINK, ST-LINK/V2, ST-LINK/V2-1, STLINK-V3 to USB port

Connect the USB cable:

• Micro-USB to STLINK-V2

• USB type-A to USB port PC

Will turn on red LED on the programmer:

2.2.2 Main window

Open program

And will appear the main window:

Follow these steps for data logger connection and to recognize the ST-LINK probes:

CAUTION! Before proceeding use an antistatic device (e.g. an antistatic wrist strap) to reduce, damp-

ens, inhibits electrostatic discharge; the buildup or discharge of static electricity, can damage electrical

components.

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 10 / 16

1. Remove the two caps and then unscrew the two fixing screws.

2. Remove terminal 1÷13 and 30÷32 from the terminal board. Then on the right side of the terminal

board, apply light pressure downwards and at the same time push it towards the inside of the data

logger for about 6 cm.

3. Connect the 8 pin Female/Female cable to the J13 black connector of the card and to the connector

JTAG/SWD of the probes. Then connect the power cable (terminal block 13+ and 15-) and switch on

the data logger.

4. Click “target” on the title bar and then on Settings

5. If in the window “Serial number” there is written “Old ST-LINK firmware/ST-LINK already used”:

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 11 / 16

Follow next steps, otherwise skip to step n. 6:

it is necessary to update the firmware of the probes. So, close the window and click “ST-LINK” on

the title bar and “Firmware update”:

Click on Device Connect box to recognize programmer:

Then click on Yes to update firmware (the PC must be connected on internet) and wait until “Up-

grade is successful”

Click Ok and close windows St-link Upgrade.

6. Always in “Target” and “Settings” it’s important to set the “Connection settings”:

a. Select “JTAG” for these Lsi Lastem products:

• ELP001 (ELP001)

• DLALA0100 (ALP001)

b. Select “SWD” for these Lsi Lastem products:

• ELP001.1 (ELP002)

• DLALA0100.1 (ALP002)

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 12 / 16

7. Select “Target” from title bar e choose “Connect”:

Will appear the successful connection recognizing the Device family “STM32L4x”:

For reprogramming data loggers see chapter §3.

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 13 / 16

3 Reprogramming data loggers The firmware of the data logger is stored in the microprocessor memory at the address 0x08008000 while

at the address 0x08000000 there is the boot program (bootloader).

To upload the firmware, follow the instructions of chapter §3.1.

For an update of the bootloader, follow the instructions of the chapter §3.2.

3.1 Firmware upload 1. Select “Target” from title bar and choose “Program & Verify”

Will appear the Device programming dialog box:

2. Click on “Browse” and choose the <data logger-x.yy.zz>.bin file to upgrade the product (the first

version of bin file is stored in FW\<data logger code> path of the LSI LASTEM pen drive; before pro-

ceeding contact LSI LASTEM for the latest version).

ATTENTION! It is important to modify the start address like this: 0x08008000 and unselect the Skip

Flash Erase option.

3. Click “Start” and wait for the programming operation end.

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 14 / 16

4. Verify the correct programming result message:

5. Disconnect the power and the cable from board.

6. Reassemble the product in every it parts.

ATT!! Firmware must be loaded at 0x08008000 (Start Address). If the address is wrong, it is necessary to

load the bootloader (as described in chapter §3.2), before repeating the firmware upload.

3.2 Programming bootloader 1. Select “Target” from title bar and choose “Program & Verify”

Will appear the Device programming dialog box:

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 15 / 16

2. Click on “Browse” and choose the Bootloader.bin stored in the LSI LASTEM pen drive (path

FW\<data logger code>).

3. ATTENTION! It is important to modify the start address like this: 0x0800000 and select the Skip

Flash Erase option.

4. Click “Start” and wait the programming operation end.

7. Verify the correct programming result message:

ST-link-Utility installation and STM32 programming

LSI LASTEM SRL IST_03929 Page 16 / 16

Now, continue with the firmware upload (see §3.1).

4 SVSKA2001 programming kit disconnection Once the reprogramming procedures have been completed, disconnect the SVSKA2001 programming kit

and close the data logger as described in chapter §2.2.2, proceeding backwards.