This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 2fb73990c31561ce16a6a8f618e7ad64924b0598 Author: zhangyuan29 <[email protected]> AuthorDate: Thu Mar 27 19:51:04 2025 +0800 arch/tricore: use the tasking compiler flags for TC4xx The SmartCode toolchain has no tc4DAx processor, so --cpu=tc4DAx fails with E306. Do not pass --cpu for the TASKING build (the core is selected through --lsl-core=vtc), pass the MISRA/user-mode and default-near-size options instead and link with -Ctc4dx, matching the make-side Toolchain.defs. Signed-off-by: zhangyuan29 <[email protected]> --- arch/tricore/src/cmake/chip.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/tricore/src/cmake/chip.cmake b/arch/tricore/src/cmake/chip.cmake index 5e5261c1702..0cfd2e13f19 100644 --- a/arch/tricore/src/cmake/chip.cmake +++ b/arch/tricore/src/cmake/chip.cmake @@ -32,8 +32,9 @@ if(CONFIG_ARCH_CHIP_TC3XX) endif() elseif(CONFIG_ARCH_CHIP_TC4XX) if(CONFIG_TRICORE_TOOLCHAIN_TASKING) - add_compile_options(--cpu=tc4DAx) - add_link_options(-Ctc4DAx) + add_compile_options(--misrac-version=2004 --user-mode=hypervisor) + add_compile_options(--default-near-size=0) + add_link_options(-Ctc4dx) else() list(APPEND PLATFORM_FLAGS -mcpu=tc4DAx -mtc18) endif()
