some learning code trying to use libopencm3 to read values from dht11 temperature sensor
libopencm3@3b89fc5999 | ||
RTT | ||
.clang-format | ||
.editorconfig | ||
.gitignore | ||
.gitmodules | ||
CMakeLists.txt | ||
CMakePresets.json | ||
dht11_data.pvs | ||
dht11_data.sr | ||
dht11.pvs | ||
main.c | ||
Makefile.old | ||
openocd.cfg | ||
print_vars.mk | ||
README.md | ||
rules.mk | ||
toolchain-STM32F1.cmake |
Build
First time:
git submodule update --init
make -C libopencm3
cmake -S . --preset=default
or older cmake:
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=toolchain-STM32F1.cmake
And then to build an .elf
cmake --build build --verbose
RTT debug console
run this while openocd
is running
while true; do telnet localhost 9090; sleep 1; done