projects
/
fw
/
stlink
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[update] documentation
[fw/stlink]
/
doc
/
tutorial
/
tutorial.tex
diff --git
a/doc/tutorial/tutorial.tex
b/doc/tutorial/tutorial.tex
index 1d16735dadb66a943532cff7716e1cdd9eded5e9..1bd06c4e7fb07513f36df806ce848f91b3d209aa 100644
(file)
--- a/
doc/tutorial/tutorial.tex
+++ b/
doc/tutorial/tutorial.tex
@@
-71,15
+71,19
@@
git clone https://github.com/texane/stlink stlink.git
\end{small}
\paragraph{}
\end{small}
\paragraph{}
-
The GDB server is called st-util and is built using
:\\
+
Everything can be built from the top directory
:\\
\begin{small}
\begin{lstlisting}[frame=tb]
\begin{small}
\begin{lstlisting}[frame=tb]
-$> cd stlink.git;
-$> make ;
-$> cd gdbserver ;
+$> cd stlink.git ;
$> make ;
\end{lstlisting}
\end{small}
$> make ;
\end{lstlisting}
\end{small}
+It includes:
+\begin{itemize}
+\item a communication library (stlink.git/libstlink.a),
+\item a GDB server (stlink.git/gdbserver/st-util),
+\item a flash manipulation tool (stlink.git/flash/flash).
+\end{itemize}
\newpage
\newpage
@@
-152,8
+156,8
@@
Flash memory reading and writing is done by a separate tool. A binary running in
be linked against address 0x8000000. The flash tool is then used as shown below:\\
\begin{small}
\begin{lstlisting}[frame=tb]
be linked against address 0x8000000. The flash tool is then used as shown below:\\
\begin{small}
\begin{lstlisting}[frame=tb]
-#
build the flash tool
-$> cd stlink.git/flash ;
make ;
+#
change to the flash tool directory
+$> cd stlink.git/flash ;
# stlinkv1 command to read 4096 from flash into out.bin
$> ./flash read /dev/sg2 out.bin 0x8000000 4096
# stlinkv1 command to read 4096 from flash into out.bin
$> ./flash read /dev/sg2 out.bin 0x8000000 4096