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       --serial iSerial
43              TODO
44
45       --flash=fsize
46              Where fsize is the size in decimal, octal, or hex followed by an
47              optional  multiplier  `k'  for KB, or `m' for MB.  Use a leading
48              “0x” to specify hexadecimal, or a leading zero for octal.
49

EXAMPLES

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

SEE ALSO

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