Skip to content

Commit 81e4e8d

Browse files
committed
[update] documentation, CHIBIOS
1 parent 224966f commit 81e4e8d

File tree

3 files changed

+29
-7
lines changed

3 files changed

+29
-7
lines changed

TODO

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
. flash tool
2-
. test support for reading
3-
. writing is not working. refer to the specs, may have changed for stm32l
4-
. then test with blink_flash example
5-
. then update the documentation
2+
. improve flash writing, still use word fast write... too slow
63

74
. documentation
85
. make README points to doc/tutorial
96

10-
. remove libsg dependency using:
11-
https://github.com/afaerber/stlink/tree/master/libstlink
12-
137
. compile and test a realtime kernel, for instance:
148
http://www.chibios.org/dokuwiki/doku.php?id=chibios:articles:stm32l_discovery
159
svn checkout https://chibios.svn.sourceforge.net/svnroot/chibios/trunk ;

doc/tutorial/tutorial.pdf

3.22 KB
Binary file not shown.

doc/tutorial/tutorial.tex

+28
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,34 @@ \section{Reading and writing to flash}
178178
\end{small}
179179

180180

181+
\newpage
182+
\section{Building and installing the CHIBIOS kernel}
183+
\paragraph{}
184+
CHIBIOS is an open source RTOS. More information can be found on the project website:
185+
\begin{center}
186+
http://www.chibios.org/dokuwiki/doku.php
187+
\end{center}
188+
189+
\paragraph{}
190+
It supports several boards, including the STM32L DISCOVERY kit:
191+
\begin{center}
192+
http://www.chibios.org/dokuwiki/doku.php?id=chibios:articles:stm32l\_discovery
193+
\end{center}
194+
195+
\paragraph{}
196+
The installation procedure is detailed below:\\
197+
\begin{small}
198+
\begin{lstlisting}[frame=tb]
199+
# checkout and build CHIBIOS for STM32L DISCOVERY kits
200+
svn checkout https://chibios.svn.sourceforge.net/svnroot/chibios/trunk
201+
cd chibios/trunk/demos/ARMCM3-STM32L152-DISCOVERY
202+
PATH=$TOOLCHAIN_PATH:$PATH make
203+
204+
# flash the image into STM32L
205+
sudo ./flash write build/ch.bin 0x08000000
206+
\end{lstlisting}
207+
\end{small}
208+
181209
\newpage
182210
\section{Notes}
183211

0 commit comments

Comments
 (0)