| Adding printf causes auto makefile to yield 'recipe for target' Error [message #1753532] |
Tue, 07 February 2017 09:47  |
Eclipse User |
|
|
|
Hopefully someone can help me.
I am trying to get my UART working on a STM32F107. My code compiles and runs fine until I add a 'printf'. As soon as I do this I seem to have link issues and my makefile ( that is automatically generated ) produces a 'recipe for target' Error at the '@echo 'Building target: $@' line.
I have reached the limit of my current knowledge trying to identify the cause.
Is there anyone who can help? The makefile is:-
# All Target
all: UART1.elf secondary-outputs
# Tool invocations
UART1.elf: $(OBJS) $(USER_OBJS)
@echo 'Building target: $@'
@echo 'Invoking: Cross ARM GNU C++ Linker'
arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra -g3 -T mem.ld -T libs.ld -T sections.ld -nostartfiles -Xlinker --gc-sections -L"../ldscripts" -Wl,-Map,"UART1.map" --specs=nano.specs -u _printf_float -o "UART1.elf" $(OBJS) $(USER_OBJS) $(LIBS)
@echo 'Finished building target: $@'
@echo ' '
UART1.hex: UART1.elf
@echo 'Invoking: Cross ARM GNU Create Flash Image'
arm-none-eabi-objcopy -O ihex "UART1.elf" "UART1.hex"
@echo 'Finished building: $@'
@echo ' '
UART1.siz: UART1.elf
@echo 'Invoking: Cross ARM GNU Print Size'
arm-none-eabi-size --format=berkeley "UART1.elf"
@echo 'Finished building: $@'
@echo ' '
# Other Targets
clean:
-$(RM) $(CC_DEPS)$(C++_DEPS)$(OBJS)$(C_UPPER_DEPS)$(CXX_DEPS)$(SECONDARY_FLASH)$(SECONDARY_SIZE)$(ASM_DEPS)$(S_UPPER_DEPS)$(C_DEPS)$(CPP_DEPS) UART1.elf
-@echo ' '
secondary-outputs: $(SECONDARY_FLASH) $(SECONDARY_SIZE)
.PHONY: all clean dependents
.SECONDARY:
-include ../makefile.targets
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04020 seconds