1st-flash(1)                         stlink                         st-flash(1)
2
3
4

NAME

6       st-flash - Flash binary files to STM32 device
7

SYNOPSIS

9       st-flash [OPTIONS] {read|write|erase} [FILE] <ADDR> <SIZE>
10

DESCRIPTION

12       Flash  binary  files to arbitrary sections of memory, or read arbitrary
13       addresses of memory out to a binary file.
14
15       You can use this instead of st-util(1) if you prefer, but  remember  to
16       use the .bin image, rather than the .elf file.
17
18       Use hexadecimal format for the ADDR and SIZE.
19

COMMANDS

21       write FILE ADDR
22              Write firmware FILE to device starting from ADDR
23
24       read FILE ADDR SIZE
25              Read firmware from device starting from ADDR up to SIZE bytes to
26              FILE
27
28       erase  Perform a mass erasing of the device firmware
29
30       reset  Reset the target
31

OPTIONS

33       --version
34              Print version information
35
36       --debug
37              TODO
38
39       --reset
40              TODO
41
42       --opt  Enable ignore ending empty bytes optimization
43
44       --serial iSerial
45              TODO
46
47       --flash=fsize
48              Where fsize is the size in decimal, octal, or hex followed by an
49              optional  multiplier  `k'  for KB, or `m' for MB.  Use a leading
50              “0x” to specify hexadecimal, or a leading zero for octal.
51

EXAMPLES

53       Flash firmware.bin to device
54
55              $ st-flash write firmware.bin 0x8000000
56
57       Read firmware from device (4096 bytes)
58
59              $ st-flash read firmware.bin 0x8000000 0x1000
60
61       Erase firmware from device
62
63              $ st-flash erase
64

SEE ALSO

66       st-util(1), st-info(1)
67
69       This work is copyrighted.  Stlink contributors.  See  LICENSE  file  in
70       the stlink source distribution.
71
72
73
74Open Source STMicroelectronics StlinFkebTo2o0l1s8                        st-flash(1)
Impressum