diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -142,7 +142,7 @@ SYSTEM_BUILD_DIR = $(BUILD_DIR)/system #OBJECTS = $(addprefix $(BUILD_DIR)/,$(notdir $(SOURCES:.c=.o))) OBJECTS = $(addprefix $(BUILD_DIR)/,$(SOURCES:.c=.o)) # add an object for the startup code -OBJECTS += $(BUILD_DIR)/startup_stm32f042x6.o +OBJECTS += $(BUILD_DIR)/system/startup_stm32f042x6.o # use the periphlib core library, plus generic ones (libc, libm, libnosys) LIBS = -lstm32cube -lc -lm -lnosys