[update] documentation, libsg2 dependency
[fw/stlink] / doc / tutorial / tutorial.tex
index 4dc82da05804d956ac093b0cdd49bd199e5a3e01..21bd13a570abf0553a919a42366df03d86a5c50f 100644 (file)
@@ -52,8 +52,16 @@ STLINK is an opensource software to program and debug the discovery kits. Those
 kits have an onboard chip that translates USB commands sent by the host PC into
 JTAG commands. This chip is called STLINK, which is confusing since the software
 has the same name. It comes into 2 versions (STLINK v1 and v2). From a software
-point of view, those version differ only in the transport layer used to communicate
+point of view, those versions differ only in the transport layer used to communicate
 (v1 uses SCSI passthru commands, while v2 uses raw USB).
+
+\paragraph{}
+Before continuing, the following dependencies are required:
+\begin{itemize}
+\item libusb-1.0
+\item libsg2
+\end{itemize}
+
 \paragraph{}
 The STLINK software source code is retrieved using:\\
 \begin{small}
@@ -115,7 +123,8 @@ $> target extended localhost:4242
 \end{small}
 
 \paragraph{}
-To load the program in SRAM, use:\\
+By default, the program was linked such that the base address is 0x20000000. From the architecture
+memory map, GDB knows this address belongs to SRAM. To load the program in SRAM, simply use:\\
 \begin{small}
 \begin{lstlisting}[frame=tb]
 $> load blink.elf
@@ -127,7 +136,7 @@ GDB automatically set the PC register to the correct value, 0x20000000 in this c
 can run the program using:\\
 \begin{small}
 \begin{lstlisting}[frame=tb]
-$> run
+$> continue
 \end{lstlisting}
 \end{small}