aboutsummaryrefslogtreecommitdiffstats
path: root/example/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'example/Makefile')
-rw-r--r--example/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/example/Makefile b/example/Makefile
new file mode 100644
index 0000000..6b0d2fc
--- /dev/null
+++ b/example/Makefile
@@ -0,0 +1,7 @@
+all:
+ arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -std=c++20 -O1 -I .. \
+ -fno-exceptions -fno-rtti -fdata-sections -ffunction-sections \
+ main.cpp startup_stm32u083xx.s \
+ -o main -T STM32U083xx_FLASH.ld -Wl,-gc-sections
+ arm-none-eabi-objcopy -Oihex main main.hex
+