fix: refacto architecture

Signed-off-by: Nicolas Robert <nicolas.robert@epita.fr>
This commit is contained in:
robert committed 2021-11-05 05:16:23 +01:00
1 parent a43b77cb62
commit 609322eb36
3 files changed
+5 -4

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
CC=arm-none-eabi-gcc
OBJCOPY=arm-none-eabi-objcopy
SRC=src/test.c
LDS=src/test.lds
OPTI=-O0
CFLAGS= $(OPTI) -g -gdwarf-2 -mthumb -fno-builtin -mcpu=cortex-m4 -Wall -std=c99 -ffunction-sections -fdata-sections -mabi=aapcs -fno-unroll-loops -ffast-math -ftree-vectorize -fverbose-asm
LDFLAGS=-nostartfiles -Wl,-gc-sections -T$(LDS) -L. --specs=nano.specs
all: test.bin
test.o: $(SRC)
$(CC) $(CFLAGS) -c -o $@ $<
test.elf: test.o $(LDS)
$(CC) $(LDFLAGS) test.o -o test.elf
test.bin: test.elf
$(OBJCOPY) -O binary -S test.elf test.bin
debug: test.bin
st-flash write test.bin 0x8000000
st-util
run: test.bin
st-flash write test.bin 0x8000000
clean:
$(RM) test.o test.elf test.bin
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.