Cortex-M doesn't support ARM instructions so this is why I don't understand why the linker can switch to ARM mode from THUMB.
And the following compiler flags passed:
CFLAGS += -mthumb CFLAGS += -mcpu=cortex-m4 CFLAGS += -mtune=cortex-m4 CFLAGS += -mno-thumb-interwork
Cortex-M doesn't support ARM instructions so this is why I don't understand why the linker can switch to ARM mode from THUMB.
And the following compiler flags passed:
CFLAGS += -mthumb interwork
CFLAGS += -mcpu=cortex-m4
CFLAGS += -mtune=cortex-m4
CFLAGS += -mno-thumb-