aboutsummaryrefslogtreecommitdiff
path: root/examples/other/adc_temperature_sensor/README
diff options
context:
space:
mode:
authorThomas Otto2010-03-24 20:36:19 +0100
committerThomas Otto2010-03-24 20:36:19 +0100
commit384a7e688e9a306e3d12459f1b24f9dd4d6c2848 (patch)
tree1f2170e43e801d18b28aec1b9aea24ec0cd2ed4e /examples/other/adc_temperature_sensor/README
parenteb3f45dcdb6c920b5f7bedad47c93386875811f9 (diff)
Added adc_temperature_sensor to examples
Diffstat (limited to 'examples/other/adc_temperature_sensor/README')
-rw-r--r--examples/other/adc_temperature_sensor/README47
1 files changed, 47 insertions, 0 deletions
diff --git a/examples/other/adc_temperature_sensor/README b/examples/other/adc_temperature_sensor/README
new file mode 100644
index 0000000..1883194
--- /dev/null
+++ b/examples/other/adc_temperature_sensor/README
@@ -0,0 +1,47 @@
+------------------------------------------------------------------------------
+README
+------------------------------------------------------------------------------
+
+This example program sends some characters on USART1.
+Afterwards it read out the internal temperature sensor of the stm32 and
+sends the value read out from the ADC to the USART1.
+
+The terminal settings for the receiving device/PC are 115200 8n1.
+
+
+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 i2c_stts75_sensor.hex
+ > reset
+
+Replace the "jtagkey-tiny.cfg" with whatever JTAG device you are using, and/or
+replace "stm.cfg" with your respective config file.
+