This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 76a334b479a37537194f716bffec67ccdce1879d Author: Saravanan Sekar <[email protected]> AuthorDate: Wed Nov 25 17:07:29 2026 +0530 arch/tricore: Add the TC375 chip. Add ARCH_CHIP_TC375 to the TC3x chip choice. The TC375 has three CPUs, so the startup core synchronization waits for core IDs 0 to 2. TASKING builds it for the tc37x derivative; the AURIX GCC has no TC37x derivative and builds it for the TC1.6.2 core only. Signed-off-by: Saravanan Sekar <[email protected]> --- arch/tricore/src/cmake/chip.cmake | 11 +++++++++-- arch/tricore/src/tc3x/Kconfig | 3 +++ arch/tricore/src/tc3x/Toolchain.defs | 11 +++++++++++ arch/tricore/src/tc3x/chip.h | 6 +++++- 4 files changed, 28 insertions(+), 3 deletions(-) diff --git a/arch/tricore/src/cmake/chip.cmake b/arch/tricore/src/cmake/chip.cmake index 7b82534efe3..51c399d131e 100644 --- a/arch/tricore/src/cmake/chip.cmake +++ b/arch/tricore/src/cmake/chip.cmake @@ -25,9 +25,16 @@ set(PLATFORM_FLAGS) if(CONFIG_ARCH_CHIP_TC3X) if(CONFIG_TRICORE_TOOLCHAIN_TASKING) add_compile_options(--default-near-size=0) - add_compile_options(--cpu=tc39xb) - add_link_options(-Ctc39xb) + if(CONFIG_ARCH_CHIP_TC375) + add_compile_options(--cpu=tc37x) + add_link_options(-Ctc37x) + else() + add_compile_options(--cpu=tc39xb) + add_link_options(-Ctc39xb) + endif() add_link_options(--user-provided-initialization-code) + elseif(CONFIG_ARCH_CHIP_TC375) + list(APPEND PLATFORM_FLAGS -mtc162) else() list(APPEND PLATFORM_FLAGS -mcpu=tc39xx -mtc162) endif() diff --git a/arch/tricore/src/tc3x/Kconfig b/arch/tricore/src/tc3x/Kconfig index 6212c8e7bcf..4fb887e5648 100644 --- a/arch/tricore/src/tc3x/Kconfig +++ b/arch/tricore/src/tc3x/Kconfig @@ -28,6 +28,9 @@ choice prompt "Infineon AURIX TC3x chip selection" default ARCH_CHIP_TC397 +config ARCH_CHIP_TC375 + bool "TC375 SoC" + config ARCH_CHIP_TC397 bool "TC397 SoC" diff --git a/arch/tricore/src/tc3x/Toolchain.defs b/arch/tricore/src/tc3x/Toolchain.defs index 6138ff84a6e..6c7464add9e 100644 --- a/arch/tricore/src/tc3x/Toolchain.defs +++ b/arch/tricore/src/tc3x/Toolchain.defs @@ -20,6 +20,17 @@ # ############################################################################ +ifeq ($(CONFIG_ARCH_CHIP_TC375),y) + ifeq ($(CONFIG_TRICORE_TOOLCHAIN_TASKING),y) + ARCHCPUFLAGS += --cpu=tc37x + ARCHCPUFLAGS += --default-near-size=0 + LDFLAGS += -Ctc37x + LDFLAGS += -Wl--user-provided-initialization-code + else + ARCHCPUFLAGS += -mtc162 + endif +endif + ifeq ($(CONFIG_ARCH_CHIP_TC397),y) ifeq ($(CONFIG_TRICORE_TOOLCHAIN_TASKING),y) ARCHCPUFLAGS += --cpu=tc39xb diff --git a/arch/tricore/src/tc3x/chip.h b/arch/tricore/src/tc3x/chip.h index 7d7af365efd..45c75ba6378 100644 --- a/arch/tricore/src/tc3x/chip.h +++ b/arch/tricore/src/tc3x/chip.h @@ -43,7 +43,11 @@ * in STM ticks (0: no timeout) */ -#define TRICORE_CORE_SYNC_MASK 0x5f +#ifdef CONFIG_ARCH_CHIP_TC375 +# define TRICORE_CORE_SYNC_MASK 0x07 +#else +# define TRICORE_CORE_SYNC_MASK 0x5f +#endif #define TRICORE_CORE_SYNC_TIMEOUT 100000 /* Other cores that tricore_start releases, CPU1 only as with the iLLD
