Skip to content

Commit 8e83f36

Browse files
committed
SAM E54 Xplained devkit hardfaults at start with -O2
I don't know why, but other samd5x are using -Os too, see the block above. Closes: #7277
1 parent ad2d190 commit 8e83f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/atmel-samd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ endif
7979

8080
ifeq ($(CHIP_FAMILY), same54)
8181
PERIPHERALS_CHIP_FAMILY=sam_d5x_e5x
82-
OPTIMIZATION_FLAGS ?= -O2
82+
OPTIMIZATION_FLAGS ?= -Os
8383
# TinyUSB defines
8484
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAME5X -DCFG_TUD_MIDI_RX_BUFSIZE=128 -DCFG_TUD_CDC_RX_BUFSIZE=256 -DCFG_TUD_MIDI_TX_BUFSIZE=128 -DCFG_TUD_CDC_TX_BUFSIZE=256 -DCFG_TUD_MSC_BUFSIZE=1024
8585
endif

0 commit comments

Comments
 (0)