aboutsummaryrefslogtreecommitdiff
path: root/examples/other/systick/README
diff options
context:
space:
mode:
authorThomas Otto2010-04-13 22:33:52 +0200
committerThomas Otto2010-04-13 22:33:52 +0200
commit7c32f6333224eff28c2f5bb5725dcb47fd0084ab (patch)
treef5591653d36120b01b84ed9a747eb74323ffd462 /examples/other/systick/README
parent905b5112b69b83acac1a6f896d363da4d2e7c648 (diff)
Added little systick example.
Diffstat (limited to 'examples/other/systick/README')
-rw-r--r--examples/other/systick/README43
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/other/systick/README b/examples/other/systick/README
new file mode 100644
index 0000000..7e9c5e5
--- /dev/null
+++ b/examples/other/systick/README
@@ -0,0 +1,43 @@
+------------------------------------------------------------------------------
+README
+------------------------------------------------------------------------------
+
+This example program blinks a LED on PortB Pin 6. 1 second on / 1 second off.
+Blinking is done thru the systick timer interrupt.
+
+Building
+--------
+
+ $ make
+
+Running 'make' on the top-level libopenstm32 directory will automatically
+also build this example. Or you can build the library "manually" and
+then run 'make' in this directory.
+
+You may want to override the toolchain (e.g., arm-elf or arm-none-eabi):
+
+ $ PREFIX=arm-none-eabi make
+
+For a more verbose build you can use
+
+ $ make V=1
+
+
+Flashing
+--------
+
+You can flash the generated code using OpenOCD:
+
+ $ make flash
+
+Or you can do the same manually via:
+
+ $ openocd -f interface/jtagkey-tiny.cfg -f target/stm32.cfg
+ $ telnet localhost 4444
+ > reset halt
+ > flash write_image erase systick.hex
+ > reset
+
+Replace the "jtagkey-tiny.cfg" with whatever JTAG device you are using, and/or
+replace "stm.cfg" with your respective config file.
+