This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

No binary output from objcopy

Hello!

I am trying to make a bin image of my application for me to flash it into my ARM Cortex M0 processor. I have succeeded in outputting an elf  image, but failed with converting it to a bin with the arm-none-eabi-objcopy tool. Here is the line from the makefile:

Fullscreen
1
2
3
%.$(TARGET).bin: %.$(TARGET).elf
$(TRACE_OBJCOPY)
$(Q)$(OBJCOPY) -O binary $< $@
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Here is all of my Makefile.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#Set the toolchain program names.
CC = arm-none-eabi-gcc
AR = arm-none-eabi-ar
AS = arm-none-eabi-as
LD = arm-none-eabi-gcc
OBJCOPY = arm-none-eabi-objcopy
#Set the processor related flags (common to C code and linker).
CPUFLAGS += -mcpu=cortex-m0plus -mthumb -mfloat-abi=soft
CPUFLAGS += -specs=nano.specs -specs=nosys.specs
#Set common C code flags.
CFLAGS += -D__SAMD21G18A__=1
CFLAGS += -Wall -g -ffunction-sections -fdata-sections -O2
CFLAGS += $(CPUFLAGS)
#Set the linker flags.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0