rp2040

RP2040 Programming without SDK
Log | Files | Refs

commit 188186f19d14278e5217ce39b21042f16fd4562c
parent 056c15496411dcc4edfbf92eeb6cefa4dce6ea6b
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Wed, 28 Feb 2024 09:40:27 +0900

modify Makefile

Diffstat:
Mex3/Makefile | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ex3/Makefile b/ex3/Makefile @@ -1,12 +1,13 @@ AS = arm-none-eabi-as LD = arm-none-eabi-ld +CC = arm-none-eabi-gcc OBJCOPY = arm-none-eabi-objcopy BINCRC = ../tools/bincrc BIN2UF2 = ../tools/bin2uf2 MCPU = -mcpu=cortex-m0plus ASFLAGS = $(MCPU) -CFLAGS = $(MCPU) -ffreestanding -nostartfiles -O0 -fpic -c +CFLAGS = $(MCPU) -mthumb -ffreestanding -nostartfiles -O0 -fpic -c LDFLAGS = --no-relax -nostdlib all: tools a.uf2 @@ -22,7 +23,7 @@ clean: $(CC) $(CFLAGS) -o $@ $< a.elf: boot2.o start.o main.o memmap.ld - $(LD) $(LDFLAGS) -o $@ -T memmap.ld boot2.o start.o + $(LD) $(LDFLAGS) -o $@ -T memmap.ld boot2.o start.o main.o a.bin: a.elf $(OBJCOPY) -O binary a.elf $@