aboutsummaryrefslogtreecommitdiffstats
path: root/example/Makefile
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2025-02-05 15:52:50 -0500
committerClyne Sullivan <clyne@bitgloo.com>2025-02-05 15:52:50 -0500
commit6d33ec12204a65613ded8bfc7ac92055712a4338 (patch)
treee2fbd5fc8a9fa521878b299973aa7c279917d838 /example/Makefile
parent4add095344df7d2a800f09de2e3869384d175c2d (diff)
add stm32 example
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
+