This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

failed to merge target specific data of a file

Hi everyone,

I'm trying to compile a ble_app_uart exemple using my own Makefile (The exemple compiles and works fine), but i got an error from the linker.

error: objects_application/main.o uses VFP register arguments, objects_application/TeepTrakApp52.out does not
ld.exe: failed to merge target specific data of file objects_application/main.o

Here are my cflags and ldflags:

#CFLAGS
CFLAGS = -DSOFTDEVICE_PRESENT
CFLAGS += -UART_PRESENT
CFLAGS += -DNRF52840_XXAA
CFLAGS += -DBOARD_PCA10056
CFLAGS += -DCONFIG_GPIO_AS_PINRESET
CFLAGS += -DSWI_DISABLE0
CFLAGS += -DNRF_SD_BLE_API_VERSION=5
CFLAGS += -DS140
CFLAGS += -DBLE_STACK_SUPPORT_REQD
CFLAGS += -mcpu=cortex-m4
CFLAGS += -mthumb -mabi=aapcs --std=gnu99
CFLAGS += -Wall -Werror -O3 -g3
CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
CFLAGS += -ffunction-sections -fdata-sections -fno-strict-aliasing
CFLAGS += -fno-builtin --short-enums
CFLAGS += -DREALTIME_TABLES -DBL_BAUD_RATE=9600 -DSECU3T

#LDFLAGS
LDFLAGS = -Xlinker -Map=$(LISTING_DIRECTORY)/$(OUTPUT_FILENAME).map
LDFLAGS += -mthumb -mabi=aapcs -L $(TOOLCHAIN_PATH) -T$(LINKER_SCRIPT)
LDFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16
LDFLAGS += -Wl,--gc-sections
LDFLAGS += --specs=nano.specs

Do you guys have any idea to fix this ?

Best regards,

flyfe.

Related