8 lines
272 B
Makefile
8 lines
272 B
Makefile
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
|
|
|