mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
FreeRTOS w/blink works
This commit is contained in:
1 parent
c44549bfa5
commit
151e375091
5 files changed
+46
-33
No files matched your search
@@ -13,8 +13,8 @@ INCS = -I$(ARCH) -I. -I../.. -Ifreertos-kernel/include -Ifreertos-tcp/include -I
|
||||
CFLAGS = -W -Wall -Os -g $(MCU) -fdata-sections -ffunction-sections $(INCS) $(MONGOOSE_OPTS) $(EXTRA)
|
||||
LDFLAGS = $(MCU) -specs=nano.specs -Tobj/link.ld -nostartfiles -nostdlib -lc -lm -lnosys -lgcc #-Wl,-Map=obj/$(PROG).map,--cref -Wl,--gc-sections
|
||||
SRCS = main.c # $(wildcard freertos-tcp/*.c)
|
||||
# SRCS += freertos-kernel/portable/MemMang/heap_4.c $(ARCH)/port.c
|
||||
# SRCS += freertos-kernel/list.c freertos-kernel/tasks.c freertos-kernel/queue.c
|
||||
SRCS += freertos-kernel/portable/MemMang/heap_4.c $(ARCH)/port.c
|
||||
SRCS += freertos-kernel/list.c freertos-kernel/tasks.c freertos-kernel/queue.c
|
||||
OBJS = obj/boot.o $(SRCS:%.c=obj/%.o) #obj/mongoose.o # ORDER MATTERS - boot (vector table) first!
|
||||
|
||||
all: $(PROG).hex
|
||||
@@ -43,7 +43,7 @@ obj/mongoose.o:
|
||||
$(DOCKER) arm-none-eabi-gcc $(CFLAGS) -c ../../mongoose.c -o $@
|
||||
|
||||
flash: $(PROG).bin
|
||||
st-flash write $< 0x8000000
|
||||
st-flash --reset write $< 0x8000000
|
||||
|
||||
gdb: $(PROG).elf
|
||||
arm-none-eabi-gdb \
|
||||
@@ -51,8 +51,6 @@ gdb: $(PROG).elf
|
||||
-ex 'target extended-remote :4242' \
|
||||
-ex 'monitor reset halt' \
|
||||
-ex 'monitor reset init' \
|
||||
-ex 'b main' \
|
||||
-ex 'r' \
|
||||
$<
|
||||
|
||||
clean:
|
||||
|
||||
Reference in new issue
Block a user