aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-01-06 09:33:00 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2017-01-06 09:33:00 +0100
commita61766db0f2954ab2e995717c276e3a30749773a (patch)
tree2c8489e10380b5f3722f5c8da85e0f0afd6ef12b
parent64b906b7d7cca07d0f51030ca300cc2dc33f0ee4 (diff)
downloadstm32f103-playground-a61766db0f2954ab2e995717c276e3a30749773a.tar.gz
stm32f103-playground-a61766db0f2954ab2e995717c276e3a30749773a.tar.bz2
stm32f103-playground-a61766db0f2954ab2e995717c276e3a30749773a.tar.xz
stm32f103-playground-a61766db0f2954ab2e995717c276e3a30749773a.zip
o Adding a small getting started and some TODOs.
-rw-r--r--README.md30
1 files changed, 24 insertions, 6 deletions
diff --git a/README.md b/README.md
index b6c46f8..1b4d8f2 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,21 @@
+# Getting started
+
+The 1-2-3 guide:
+
+ mkdir build
+ cd build
+ cmake ..
+ make
+
+and it should build a set of imaged you can flash.
+
+# TODOs
+
+o Upgrade to cmake 3.6 which gives some improvements and fixes this:
+
+ The CMAKE_FORCE_C_COMPILER macro is deprecated. Instead just set CMAKE_C_COMPILER and allow CMake to identify the compiler.
+
+o Add cmake dependency/find_package on libelf.
# Resources
* http://www.downloads.seng.de/HowTo_ToolChain_STM32_Ubuntu.pdf
@@ -14,17 +32,17 @@
* http://stackoverflow.com/questions/32422075/arm-bare-metal-binary-linking
* https://github.com/ckormanyos/real-time-cpp/blob/master/ref_app/target/micros/stm32f100/make/stm32f100.ld
* http://www.bravegnu.org/gnu-eprog/c-startup.html
-
+
* http://www.st.com/web/en/catalog/tools/PF257890
** STSW-STM32054
-
+
# Programming with OpenOCD
-
+
reset halt
- flash probe 0
+ flash probe 0
stm32f1x mass_erase 0
flash write_bank 0 test1.elf.bin 0
- reset run
+ reset run
# Registers
@@ -96,5 +114,5 @@ Show details on each frame:
Stack frame at 0x20000fe0:
pc = 0x8000050 in HardFault_Handler; saved pc = 0xfffffff9
called by frame at 0x20001000
- Arglist at 0x20000fe0, args:
+ Arglist at 0x20000fe0, args:
Locals at 0x20000fe0, Previous frame's sp is 0x20000fe0