group same5x
This commit is contained in:
parent
779149ecce
commit
3944f1c4da
|
@ -9,3 +9,4 @@ te
|
||||||
attch
|
attch
|
||||||
endianess
|
endianess
|
||||||
pris
|
pris
|
||||||
|
busses
|
||||||
|
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
- 'nrf'
|
- 'nrf'
|
||||||
- 'ra'
|
- 'ra'
|
||||||
- 'rp2040'
|
- 'rp2040'
|
||||||
- 'samd11'
|
- 'samd11 same5x'
|
||||||
- 'samd21'
|
- 'samd21'
|
||||||
- 'samd51'
|
- 'samd51'
|
||||||
- 'saml2x'
|
- 'saml2x'
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
DEPS_SUBMODULES += hw/mcu/microchip
|
|
||||||
HWREV ?= 1
|
|
||||||
|
|
||||||
CFLAGS += \
|
|
||||||
-mthumb \
|
|
||||||
-mabi=aapcs \
|
|
||||||
-mlong-calls \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mfpu=fpv4-sp-d16 \
|
|
||||||
-nostdlib -nostartfiles \
|
|
||||||
-D__SAME51J19A__ \
|
|
||||||
-DCONF_CPU_FREQUENCY=80000000 \
|
|
||||||
-DCONF_GCLK_USB_FREQUENCY=48000000 \
|
|
||||||
-DCFG_TUSB_MCU=OPT_MCU_SAME5X \
|
|
||||||
-DD5035_01=1 \
|
|
||||||
-DBOARD_NAME="\"D5035-01\"" \
|
|
||||||
-DSVC_Handler=SVCall_Handler \
|
|
||||||
-DHWREV=$(HWREV)
|
|
||||||
|
|
||||||
# suppress warning caused by vendor mcu driver
|
|
||||||
CFLAGS += -Wno-error=cast-qual
|
|
||||||
|
|
||||||
# All source paths should be relative to the top level.
|
|
||||||
LD_FILE = hw/bsp/$(BOARD)/same51j19a_flash.ld
|
|
||||||
|
|
||||||
SRC_C += \
|
|
||||||
src/portable/microchip/samd/dcd_samd.c \
|
|
||||||
hw/mcu/microchip/same51/gcc/gcc/startup_same51.c \
|
|
||||||
hw/mcu/microchip/same51/gcc/system_same51.c
|
|
||||||
|
|
||||||
ifdef SYSCALLS
|
|
||||||
ifneq ($(SYSCALLS),0)
|
|
||||||
SRC_C += hw/mcu/microchip/same51/hal/utils/src/utils_syscalls.c
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef LOG
|
|
||||||
ifneq ($(LOG),0)
|
|
||||||
SRC_C += hw/mcu/microchip/same51/hal/utils/src/utils_syscalls.c
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
INC += \
|
|
||||||
$(TOP)/hw/mcu/microchip/same51/ \
|
|
||||||
$(TOP)/hw/mcu/microchip/same51/config \
|
|
||||||
$(TOP)/hw/mcu/microchip/same51/include \
|
|
||||||
$(TOP)/hw/mcu/microchip/same51/hal/include \
|
|
||||||
$(TOP)/hw/mcu/microchip/same51/hal/utils/include \
|
|
||||||
$(TOP)/hw/mcu/microchip/same51/hpl/port \
|
|
||||||
$(TOP)/hw/mcu/microchip/same51/hri \
|
|
||||||
$(TOP)/hw/mcu/microchip/same51/CMSIS/Include
|
|
||||||
|
|
||||||
# For freeRTOS port source
|
|
||||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
|
||||||
|
|
||||||
# For flash-jlink target
|
|
||||||
JLINK_DEVICE = ATSAME51J19
|
|
||||||
|
|
||||||
# flash using jlink
|
|
||||||
flash: flash-jlink
|
|
|
@ -1,48 +0,0 @@
|
||||||
DEPS_SUBMODULES += hw/mcu/microchip
|
|
||||||
|
|
||||||
CONF_CPU_FREQUENCY ?= 48000000
|
|
||||||
|
|
||||||
CFLAGS += \
|
|
||||||
-mthumb \
|
|
||||||
-mabi=aapcs \
|
|
||||||
-mlong-calls \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mfpu=fpv4-sp-d16 \
|
|
||||||
-nostdlib -nostartfiles \
|
|
||||||
-D__SAME54P20A__ \
|
|
||||||
-DCONF_CPU_FREQUENCY=$(CONF_CPU_FREQUENCY) \
|
|
||||||
-DCFG_TUSB_MCU=OPT_MCU_SAME5X \
|
|
||||||
-DBOARD_NAME="\"Microchip SAM E54 Xplained Pro\""
|
|
||||||
|
|
||||||
# suppress warning caused by vendor mcu driver
|
|
||||||
CFLAGS += -Wno-error=cast-qual
|
|
||||||
|
|
||||||
# All source paths should be relative to the top level.
|
|
||||||
LD_FILE = hw/bsp/$(BOARD)/same54p20a_flash.ld
|
|
||||||
|
|
||||||
SRC_C += \
|
|
||||||
src/portable/microchip/samd/dcd_samd.c \
|
|
||||||
hw/mcu/microchip/same54/gcc/gcc/startup_same54.c \
|
|
||||||
hw/mcu/microchip/same54/gcc/system_same54.c \
|
|
||||||
hw/mcu/microchip/same54/hal/utils/src/utils_syscalls.c
|
|
||||||
|
|
||||||
INC += \
|
|
||||||
$(TOP)/hw/mcu/microchip/same54/ \
|
|
||||||
$(TOP)/hw/mcu/microchip/same54/config \
|
|
||||||
$(TOP)/hw/mcu/microchip/same54/include \
|
|
||||||
$(TOP)/hw/mcu/microchip/same54/hal/include \
|
|
||||||
$(TOP)/hw/mcu/microchip/same54/hal/utils/include \
|
|
||||||
$(TOP)/hw/mcu/microchip/same54/hpl/port \
|
|
||||||
$(TOP)/hw/mcu/microchip/same54/hri \
|
|
||||||
$(TOP)/hw/mcu/microchip/same54/CMSIS/Include
|
|
||||||
|
|
||||||
# For freeRTOS port source
|
|
||||||
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
|
||||||
|
|
||||||
# For flash-jlink target
|
|
||||||
JLINK_DEVICE = ATSAME54P20
|
|
||||||
|
|
||||||
# flash using edbg from https://github.com/ataradov/edbg
|
|
||||||
flash: $(BUILD)/$(PROJECT).bin
|
|
||||||
edbg --verbose -t same54 -pv -f $<
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
MCU = same51
|
||||||
|
|
||||||
|
HWREV ?= 1
|
||||||
|
|
||||||
|
CFLAGS += \
|
||||||
|
-D__SAME51J19A__ \
|
||||||
|
-DCONF_CPU_FREQUENCY=80000000 \
|
||||||
|
-DCONF_GCLK_USB_FREQUENCY=48000000 \
|
||||||
|
-DD5035_01=1 \
|
||||||
|
-DBOARD_NAME="\"D5035-01\"" \
|
||||||
|
-DSVC_Handler=SVCall_Handler \
|
||||||
|
-DHWREV=$(HWREV)
|
||||||
|
|
||||||
|
# All source paths should be relative to the top level.
|
||||||
|
LD_FILE = $(BOARD_PATH)/same51j19a_flash.ld
|
||||||
|
|
||||||
|
# For flash-jlink target
|
||||||
|
JLINK_DEVICE = ATSAME51J19
|
||||||
|
|
||||||
|
# flash using jlink
|
||||||
|
flash: flash-jlink
|
|
@ -0,0 +1,12 @@
|
||||||
|
MCU = same54
|
||||||
|
|
||||||
|
CFLAGS += \
|
||||||
|
-DCONF_CPU_FREQUENCY=48000000 \
|
||||||
|
-D__SAME54P20A__ \
|
||||||
|
-DBOARD_NAME="\"Microchip SAM E54 Xplained Pro\""
|
||||||
|
|
||||||
|
# All source paths should be relative to the top level.
|
||||||
|
LD_FILE = $(BOARD_PATH)/same54p20a_flash.ld
|
||||||
|
|
||||||
|
# For flash-jlink target
|
||||||
|
JLINK_DEVICE = ATSAME54P20
|
|
@ -0,0 +1,42 @@
|
||||||
|
DEPS_SUBMODULES += hw/mcu/microchip
|
||||||
|
|
||||||
|
SDK_DIR = hw/mcu/microchip/$(MCU)
|
||||||
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
||||||
|
|
||||||
|
CFLAGS += \
|
||||||
|
-mthumb \
|
||||||
|
-mabi=aapcs \
|
||||||
|
-mlong-calls \
|
||||||
|
-mcpu=cortex-m4 \
|
||||||
|
-mfloat-abi=hard \
|
||||||
|
-mfpu=fpv4-sp-d16 \
|
||||||
|
-nostdlib -nostartfiles \
|
||||||
|
-DCFG_TUSB_MCU=OPT_MCU_SAME5X
|
||||||
|
|
||||||
|
# suppress warning caused by vendor mcu driver
|
||||||
|
#CFLAGS += -Wno-error=cast-qual
|
||||||
|
|
||||||
|
SRC_C += \
|
||||||
|
src/portable/microchip/samd/dcd_samd.c \
|
||||||
|
$(SDK_DIR)/gcc/gcc/startup_$(MCU).c \
|
||||||
|
$(SDK_DIR)/gcc/system_$(MCU).c \
|
||||||
|
$(SDK_DIR)/hal/utils/src/utils_syscalls.c
|
||||||
|
|
||||||
|
INC += \
|
||||||
|
$(TOP)/$(SDK_DIR) \
|
||||||
|
$(TOP)/$(SDK_DIR)/config \
|
||||||
|
$(TOP)/$(SDK_DIR)/include \
|
||||||
|
$(TOP)/$(SDK_DIR)/hal/include \
|
||||||
|
$(TOP)/$(SDK_DIR)/hal/utils/include \
|
||||||
|
$(TOP)/$(SDK_DIR)/hpl/port \
|
||||||
|
$(TOP)/$(SDK_DIR)/hri \
|
||||||
|
$(TOP)/$(SDK_DIR)/CMSIS/Include
|
||||||
|
|
||||||
|
# For freeRTOS port source
|
||||||
|
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
||||||
|
|
||||||
|
# flash using edbg from https://github.com/ataradov/edbg
|
||||||
|
flash-edbg: $(BUILD)/$(PROJECT).bin
|
||||||
|
edbg --verbose -t $(MCU) -pv -f $<
|
||||||
|
|
||||||
|
flash: flash-edbg
|
Loading…
Reference in New Issue