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.git
Go to the project directory
cd zephyr-switch-interrupt
Compile Project
Setup zephyr environment on your machine from Zephyr: Getting Started
make all
Flash 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