Interfacing push button with STM32 Blue Pill board and toggle a LED on button click by using interrupts.
Clone the project
- Using https
git clone https://github.com/csrohit/zephyr-switch-interrupt- Using ssh
git clone git@github.com:csrohit/zephyr-switch-interrupt.gitGo to the project directory
cd zephyr-switch-interruptCompile Project
Setup zephyr environment on your machine from Zephyr: Getting Started
make allFlash Binary
To flash you need to have
- Openocd installed on your machine. You can do it from here: Getting Openocd
- Connect Stlink to PC and blue pill board using swd headers.
- Put blue pill board in programming mode
make flash- or you can flash the hex file using STM32 Cube Programmer