File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -396,6 +396,8 @@ OTHER_PICO_FLAGS := \
396396 -Wl,--wrap=__aeabi_uidivmod \
397397 -Wl,--wrap=__aeabi_uldivmod
398398
399+ SRC_S = shared/runtime/gchelper_thumb1.s
400+
399401ifeq ($(CHIP_VARIANT ) ,RP2040)
400402CFLAGS += \
401403 -march=armv6-m \
@@ -422,8 +424,6 @@ SRC_S_UPPER_CHIP_VARIANT := \
422424 sdk/src/rp2_common/pico_float/float_aeabi_rp2040.S \
423425 sdk/src/rp2_common/pico_mem_ops/mem_ops_aeabi.S \
424426
425- SRC_S = shared/runtime/gchelper_thumb1.s
426-
427427PICO_LDFLAGS += \
428428 $(PICO_WRAP_FLOAT_AEABI_FLAGS ) \
429429 $(PICO_WRAP_FLOAT_SCI_FLAGS ) \
@@ -436,12 +436,12 @@ UF2_ID = 0xE48BFF56
436436DOUBLE_EABI = rp2040
437437endif
438438ifeq ($(CHIP_VARIANT ) ,RP2350)
439- CFLAGS += \
440- -march=armv8-m.main+fp+dsp \
439+ AFLAGS = -march=armv8-m.main+fp+dsp \
441440 -mthumb \
442- -mabi=aapcs-linux \
443441 -mcpu=cortex-m33 \
444442 -mfloat-abi=softfp
443+ CFLAGS += $(AFLAGS ) \
444+ -mabi=aapcs-linux
445445
446446# ARM Secure family id
447447UF2_ID = 0xe48bff59
@@ -463,8 +463,6 @@ SRC_S_UPPER_CHIP_VARIANT := \
463463 sdk/src/rp2_common/pico_float/float_sci_m33_vfp.S \
464464 sdk/src/rp2_common/pico_float/float_common_m33.S \
465465
466- SRC_S = shared/runtime/gchelper_thumb2.s
467-
468466PICO_LDFLAGS += $(PICO_WRAP_FLOAT_SCI_FLAGS ) $(PICO_WRAP_DOUBLE_FLAGS )
469467
470468ifeq ($(CHIP_PACKAGE ) ,A)
Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ ifneq (,$(wildcard boards/$(BOARD)/sensor.c))
9090SRC_C += boards/$(BOARD ) /sensor.c
9191endif
9292
93- SRC_S = shared/runtime/gchelper_thumb2.s
93+ AFLAGS = -mcpu=cortex-m33 -mthumb -mfpu=fpv5-sp-d16 -mfloat-abi=hard
94+ SRC_S = shared/runtime/gchelper_thumb1.s
9495
9596SRC_C += shared/runtime/gchelper_native.c
9697
You can’t perform that action at this time.
0 commit comments