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 +```