Target Device: STM32F446 (cortex-m4)
To run:
Go to build directory: cd build
Compile the project: make all
Load into STM32: make load
To Debug:
Build debug binary: make debug \
How to debug on VSCode: https://youtu.be/FNDp1G0bYoU?t=868
- User Code Directory:
src/userland/ - User main function;
src/userland/main.c - External devices (IMU, ESC etc.):
src/userland/device - Modules (kalman filter, pid etc.):
src/userland/modules
Modify build/Makefile:
Add C source path to makefile flag: C_SOURCES