From 6d33ec12204a65613ded8bfc7ac92055712a4338 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 5 Feb 2025 15:52:50 -0500 Subject: add stm32 example --- example/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 example/Makefile (limited to 'example/Makefile') 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 + -- cgit v1.2.3