1
0
some learning code trying to use libopencm3 to read values from dht11 temperature sensor
Go to file
2023-04-30 21:38:25 +03:00
libopencm3@3b89fc5999 Add dcc debug write and fix mcu part number 2021-06-26 11:34:10 +03:00
RTT nosys printf maybe works now??? 2021-08-09 10:43:10 +03:00
.clang-format Sorta does something 2021-06-28 00:14:12 +03:00
.editorconfig Add 7 segment display 2021-08-22 22:31:36 +03:00
.gitignore more hacks 2021-07-21 23:04:05 +03:00
.gitmodules init 2021-05-01 21:46:58 +03:00
CMakeLists.txt more hacks 2021-07-21 23:04:05 +03:00
CMakePresets.json more hacks 2021-07-21 23:04:05 +03:00
dht11_data.pvs Add Sigrok Pulseview data files 2021-07-08 16:28:44 +03:00
dht11_data.sr Add Sigrok Pulseview data files 2021-07-08 16:28:44 +03:00
dht11.pvs Add Sigrok PulseView Session setup 2021-07-08 01:13:21 +03:00
main.c Remap pins for soldered version 2023-04-30 21:38:25 +03:00
Makefile.old Add cmake 2021-07-20 22:49:38 +03:00
openocd.cfg Remap pins for soldered version 2023-04-30 21:38:25 +03:00
print_vars.mk Add cmake 2021-07-20 22:49:38 +03:00
README.md more hacks 2021-07-21 23:04:05 +03:00
rules.mk Add dcc debug write and fix mcu part number 2021-06-26 11:34:10 +03:00
toolchain-STM32F1.cmake more hacks 2021-07-21 23:04:05 +03:00

Build

First time:

  1. git submodule update --init
  2. make -C libopencm3
  3. cmake -S . --preset=default

or older cmake:

  1. cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=toolchain-STM32F1.cmake

And then to build an .elf

  1. cmake --build build --verbose

RTT debug console

run this while openocd is running

while true; do telnet localhost 9090; sleep 1; done