-
Notifications
You must be signed in to change notification settings - Fork 5
/
stm32wrapper4dbg.1
92 lines (78 loc) · 2.16 KB
/
stm32wrapper4dbg.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.\" SPDX-License-Identifier: GPL-2.0-or-later OR BSD-3-Clause
.TH STM32WRAPPER4DBG 1 "2021-01-16"
.SH NAME
stm32wrapper4dbg \- Add debug wrapper to a stm32 fsbl image
.SH SYNOPSIS
.B stm32wrapper4dbg
.RB "" "\-s " "\fIsrcimage\fP" " \-d " "\fIdstimage\fP [" "\-b" "] [" "\-f" "]"
.P
.B stm32wrapper4dbg
.RB "" "\-V"
.SH "DESCRIPTION"
The
.B stm32wrapper4dbg
command is used to add a debug wrapper around the
.B first stage boot loader
(fsbl) images for the
.B STM32MPxxx
processor family.
The wrapper opens the debug port to allow debugging all the software
components in the boot chain.
The wrapped image will be loaded at the same memory addresses of the
original image, thus preserving the address of all the symbols.
The wrapper requires less then 64 bytes; the original image should be
smaller than the available memory to allow both wrapper and image to be
loaded together.
By default the wrapper is loaded in memory
.B after
the image, so the image in \fIdstimage\fP will start at the same memory
address of \fIsrcimage\fP.
.SH "OPTIONS"
.TP
.BI "\-s " "\fIsrcimage\fP"
Read the fsbl image to be wrapped from \fIsrcimage\fP file.
.TP
.BI "\-d " "\fIdstimage\fP"
Write the wrapped fsbl image in \fIdstimage\fP file.
.TP
.BI "\-b"
Add the wrapper
.B before
the image. The image in \fIdstimage\fP will end at the same memory address
of \fIsrcimage\fP.
.TP
.BI "\-f"
Force adding an additional instance of the wrapper to an image file that
already contains the wrapper.
.TP
.BI "\-V"
Display tool version and quit.
.SH EXAMPLES
Wrap the image in a file, then write it to the first partition of the SD card:
.sp
.RS 4
.nf
\fB
stm32wrapper4dbg -f fsbl.stm32 -d wrapped.stm32
dd if=wrapped.stm32 of=/dev/sdd1
.fi \fR
.P
.RE
.P
Wrap the image in the second partition of the SD card and write it to the first partition of the same SD card:
.sp
.RS 4
.nf
\fB
stm32wrapper4dbg -f /dev/sdd2 -d /dev/sdd1
.fi \fR
.P
.RE
.P
.SH AUTHORS
Antonio Borneo <[email protected]>
.SH COPYRIGHT
Copyright \(co 2020-2021 STMicroelectronics - All Rights Reserved
.br
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.