[update] documentation
[fw/stlink] / doc / tutorial / tutorial.tex
index 0fa7ab5bd6779a7fe4585c17fd8cff36fcfe95d8..81605e26c227cfecdec93de668a68adc0042f143 100644 (file)
@@ -115,7 +115,8 @@ $> target extended localhost:4242
 \end{small}
 
 \paragraph{}
-To load the program, 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
@@ -123,10 +124,11 @@ $> load blink.elf
 \end{small}
 
 \paragraph{}
-Then, you can run the program using:\\
+GDB automatically set the PC register to the correct value, 0x20000000 in this case. Then, you
+can run the program using:\\
 \begin{small}
 \begin{lstlisting}[frame=tb]
-$> run
+$> continue
 \end{lstlisting}
 \end{small}