$(CC) $(CFLAGS) -c -I./include -ffreestanding -o main.o main.c
$(CC) $(CFLAGS) -c -I./include -ffreestanding -o uart.o uart.c
$(CC) $(CFLAGS) -c -I./include -ffreestanding -o ivt.o ivt.c
- $(LD) -nostartfiles -T link.ld -o start.out start.o main.o uart.o ivt.o
+ $(CC) $(CFLAGS) -c -I./include -ffreestanding -o systick.o systick.c
+ $(LD) -nostartfiles -T link.ld -o start.out start.o main.o uart.o ivt.o systick.o
$(MKIMG) -Obinary -R .data start.out kernel.bin
run:
- qemu-system-arm -serial stdio -M lm3s6965evb -kernel kernel.bin
+ /usr/local/bin/qemu-system-arm -serial stdio -M stm32-f103c8 -kernel kernel.bin
examine:
arm-none-eabi-objdump -S start.out