From 911837e9644e043cca4de8d35012c50ee521c26d Mon Sep 17 00:00:00 2001 From: Jan Mrna Date: Sat, 21 Mar 2026 10:54:18 +0100 Subject: [PATCH] Add build instructions --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 0185f68..4ecb67c 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,14 @@ So I decided to create a simple driver for these LEDs. We will not use any LED driver IC. We will either simply use constant voltage, or use MCU to do PWM regulation to control the current. ## Design + + +## Notes + +In fw folder run: + +``` +cmake -DCMAKE_TOOLCHAIN_FILE=cmake/gcc-arm-none-eabi.cmake -S ./ -B Debug -DCMAKE_BUILD_TYPE=Debug +arm-none-eabi-objcopy -S -O binary led_driver.elf led_driver.bin +st-flash write led_driver.bin 0x8000000 +```