Add build instructions
This commit is contained in:
@@ -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.
|
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
|
## 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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user