[update] documentation
[fw/stlink] / doc / tutorial / tutorial.tex
index 53a220dec3d612ce7d1e73505afbb43fe46835b6..f177e2b87c703c012f64e4411ab9a712b21385e1 100644 (file)
@@ -144,6 +144,19 @@ $> continue
 The board BLUE and GREEN leds should be blinking (those leds are near the user and reset buttons).
 
 
 The board BLUE and GREEN leds should be blinking (those leds are near the user and reset buttons).
 
 
+\newpage
+\section{Notes}
+\paragraph{}
+By default, the disassemble command in GDB operates in ARM mode. The programs running on CORTEX-M3
+are compiled in THUMB mode. To correctly disassemble them under GDB, uses an odd address. For instance,
+if you want to disassemble the code at 0x20000000, use:\\
+\begin{small}
+\begin{lstlisting}[frame=tb]
+$> disassemble 0x20000001
+\end{lstlisting}
+\end{small}
+
+
 \newpage
 \section{References}
 \begin{itemize}
 \newpage
 \section{References}
 \begin{itemize}