From f897c86a8ec6a6d813997d1a374226965b0638de Mon Sep 17 00:00:00 2001 From: Andreas Neubauer Date: Tue, 10 Nov 2026 10:31:18 +0100 Subject: [PATCH 1/4] Added the TriCore TC1.6.2 port for GNU with a TC375 Lite Kit example The port adds ThreadX support for the Infineon AURIX TC3xx family. It keeps thread contexts in CSA chains. Threads enter the scheduler through a system call, and interrupt handlers request the switch through a GPSR software interrupt at the lowest priority. It relies on the Infineon iLLD 1.22.0, which is not included; AURIX_ILLD_DIR names it at build time. The example runs the ThreadX demo on CPU0 of the TC375 Lite Kit. --- .gitignore | 1 + README.md | 42 +- cmake/tricore_tc1_6_2.cmake | 45 + ports/tricore_tc1_6_2/gnu/CMakeLists.txt | 65 + .../aurix_lite_kit_v2/Cpu0_Main.c | 63 + .../aurix_lite_kit_v2/Cpu1_Main.c | 59 + .../aurix_lite_kit_v2/Cpu2_Main.c | 59 + .../example_build/aurix_lite_kit_v2/Ifx_Cfg.h | 63 + .../aurix_lite_kit_v2/Ifx_Cfg_Ssw.c | 109 + .../aurix_lite_kit_v2/Ifx_Cfg_Ssw.h | 224 +++ .../aurix_lite_kit_v2/Ifx_Cfg_SswBmhd.c | 561 ++++++ .../aurix_lite_kit_v2/Ifx_Cfg_Trap.h | 30 + .../aurix_lite_kit_v2/Lcf_Gnuc_Tricore_Tc.lsl | 1751 +++++++++++++++++ .../aurix_lite_kit_v2/build_env.sh | 81 + .../aurix_lite_kit_v2/build_threadx.sh | 32 + .../aurix_lite_kit_v2/build_threadx_sample.sh | 57 + .../aurix_lite_kit_v2/sample_threadx.c | 387 ++++ .../tx_initialize_low_level.c | 102 + ports/tricore_tc1_6_2/gnu/inc/tx_port.h | 637 ++++++ ports/tricore_tc1_6_2/gnu/readme_threadx.txt | 201 ++ .../tricore_tc1_6_2/gnu/src/tx_port_tricore.h | 86 + .../gnu/src/tx_thread_context_restore.c | 76 + .../gnu/src/tx_thread_context_save.c | 76 + .../gnu/src/tx_thread_interrupt_control.c | 103 + .../gnu/src/tx_thread_schedule.c | 270 +++ .../gnu/src/tx_thread_stack_build.c | 193 ++ .../gnu/src/tx_thread_system_return.c | 83 + .../gnu/src/tx_timer_interrupt.c | 158 ++ 28 files changed, 5593 insertions(+), 21 deletions(-) create mode 100644 cmake/tricore_tc1_6_2.cmake create mode 100755 ports/tricore_tc1_6_2/gnu/CMakeLists.txt create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu0_Main.c create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu1_Main.c create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu2_Main.c create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg.h create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.c create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.h create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_SswBmhd.c create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Trap.h create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Lcf_Gnuc_Tricore_Tc.lsl create mode 100755 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_env.sh create mode 100755 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx.sh create mode 100755 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx_sample.sh create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/sample_threadx.c create mode 100755 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/tx_initialize_low_level.c create mode 100755 ports/tricore_tc1_6_2/gnu/inc/tx_port.h create mode 100755 ports/tricore_tc1_6_2/gnu/readme_threadx.txt create mode 100644 ports/tricore_tc1_6_2/gnu/src/tx_port_tricore.h create mode 100755 ports/tricore_tc1_6_2/gnu/src/tx_thread_context_restore.c create mode 100755 ports/tricore_tc1_6_2/gnu/src/tx_thread_context_save.c create mode 100755 ports/tricore_tc1_6_2/gnu/src/tx_thread_interrupt_control.c create mode 100755 ports/tricore_tc1_6_2/gnu/src/tx_thread_schedule.c create mode 100755 ports/tricore_tc1_6_2/gnu/src/tx_thread_stack_build.c create mode 100755 ports/tricore_tc1_6_2/gnu/src/tx_thread_system_return.c create mode 100755 ports/tricore_tc1_6_2/gnu/src/tx_timer_interrupt.c diff --git a/.gitignore b/.gitignore index 087f0e67e..00340f9e4 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ CTestTestfile.cmake *.dep *.o *.axf +*.elf *.map *.a *.htm diff --git a/README.md b/README.md index 256162ae4..bc1f2c850 100644 --- a/README.md +++ b/README.md @@ -94,27 +94,27 @@ The master branch has the most recent code with all new features and bug fixes. ### ThreadX ``` -arc_em cortex_a12 cortex_m0 cortex_r4 -arc_hs cortex_a15 cortex_m23 cortex_r5 -arm11 cortex_a17 cortex_m3 cortex_r7 -arm9 cortex_a34 cortex_m33 -c667x cortex_a35 cortex_m4 -linux cortex_a5 cortex_m55 -risc-v32 cortex_a53 cortex_m7 -rxv1 cortex_a55 cortex_m85 -rxv2 cortex_a57 -rxv3 cortex_a5x -win32 cortex_a65 -xtensa cortex_a65ae - cortex_a7 - cortex_a72 - cortex_a73 - cortex_a75 - cortex_a76 - cortex_a76ae - cortex_a77 - cortex_a8 - cortex_a9 +arc_em cortex_a12 cortex_m0 cortex_r4 +arc_hs cortex_a15 cortex_m23 cortex_r5 +arm11 cortex_a17 cortex_m3 cortex_r7 +arm9 cortex_a34 cortex_m33 +c667x cortex_a35 cortex_m4 +linux cortex_a5 cortex_m55 +risc-v32 cortex_a53 cortex_m7 +rxv1 cortex_a55 cortex_m85 +rxv2 cortex_a57 +rxv3 cortex_a5x +tricore_tc1_6_2 cortex_a65 +win32 cortex_a65ae +xtensa cortex_a7 + cortex_a72 + cortex_a73 + cortex_a75 + cortex_a76 + cortex_a76ae + cortex_a77 + cortex_a8 + cortex_a9 ``` ### ThreadX Modules diff --git a/cmake/tricore_tc1_6_2.cmake b/cmake/tricore_tc1_6_2.cmake new file mode 100644 index 000000000..d04259309 --- /dev/null +++ b/cmake/tricore_tc1_6_2.cmake @@ -0,0 +1,45 @@ +# Copyright (c) 2026 safecubed GmbH +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT + +# Portions of this file were generated with AI assistance. + +# Toolchain file for the TriCore TC1.6.2 port (Infineon AURIX TC3) with the +# AURIX GCC. +# +# The port includes Infineon iLLD headers. AURIX_ILLD_DIR shall name the +# directory that holds the iLLD, Infra and Service folders of a TC37A iLLD +# distribution. See ports/tricore_tc1_6_2/gnu/readme_threadx.txt. + +set(CMAKE_SYSTEM_NAME Generic) +set(CMAKE_SYSTEM_PROCESSOR tricore) + +set(THREADX_ARCH "tricore_tc1_6_2") +set(THREADX_TOOLCHAIN "gnu") + +set(CMAKE_C_COMPILER tricore-elf-gcc) +set(CMAKE_CXX_COMPILER tricore-elf-g++) +set(AS tricore-elf-as) +set(AR tricore-elf-ar) +set(OBJCOPY tricore-elf-objcopy) +set(OBJDUMP tricore-elf-objdump) +set(SIZE tricore-elf-size) + +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) + +set(CMAKE_C_FLAGS "-mtc162 -std=c99 -fno-common -fstrict-volatile-bitfields -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags") +set(CMAKE_EXE_LINKER_FLAGS "-mtc162 -nocrt0 -Wl,--gc-sections" CACHE INTERNAL "exe link flags") +set(CMAKE_C_FLAGS_DEBUG "-O0 -g3" CACHE INTERNAL "c debug compiler flags") +set(CMAKE_C_FLAGS_RELEASE "-O0" CACHE INTERNAL "c release compiler flags") +set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O0 -g3" CACHE INTERNAL "c relwithdebinfo compiler flags") +set(CMAKE_C_FLAGS_MINSIZEREL "-O0" CACHE INTERNAL "c minsizerel compiler flags") diff --git a/ports/tricore_tc1_6_2/gnu/CMakeLists.txt b/ports/tricore_tc1_6_2/gnu/CMakeLists.txt new file mode 100755 index 000000000..39cc59602 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/CMakeLists.txt @@ -0,0 +1,65 @@ +target_sources(${PROJECT_NAME} + PRIVATE + # {{BEGIN_TARGET_SOURCES}} + ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_context_restore.c + ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_context_save.c + ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_interrupt_control.c + ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_schedule.c + ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_stack_build.c + ${CMAKE_CURRENT_LIST_DIR}/src/tx_thread_system_return.c + ${CMAKE_CURRENT_LIST_DIR}/src/tx_timer_interrupt.c + # {{END_TARGET_SOURCES}} +) + +target_include_directories(${PROJECT_NAME} + SYSTEM + PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/inc +) + +# The port includes Infineon iLLD headers (Compilers.h, Bsp.h, IfxCpu.h, +# IfxStm.h). AURIX_ILLD_DIR shall name the directory that holds the iLLD, Infra +# and Service folders: either the iLLD release package for all TC3xx devices +# (iLLD/TC3xx, for example src/BaseSw of iLLD 1.22.0) or the TC37A iLLD of an +# AURIX Development Studio project (iLLD/TC37A). The iLLD in turn includes the +# board configuration Ifx_Cfg.h from AURIX_CFG_DIR, which defaults to the +# TC375 Lite Kit configuration in example_build/aurix_lite_kit_v2. +if(NOT AURIX_ILLD_DIR) + message(FATAL_ERROR "AURIX_ILLD_DIR not defined") +endif() +set(AURIX_CFG_DIR "${CMAKE_CURRENT_LIST_DIR}/example_build/aurix_lite_kit_v2" CACHE PATH + "Directory that holds the board's Ifx_Cfg.h") + +if(IS_DIRECTORY "${AURIX_ILLD_DIR}/iLLD/TC3xx/Tricore") + set(AURIX_ILLD "${AURIX_ILLD_DIR}/iLLD/TC3xx/Tricore") + set(AURIX_SFR "${AURIX_ILLD_DIR}/Infra/Sfr/TC37x") + set(AURIX_PINMAP "${AURIX_ILLD}/_PinMap/TC37x") +elseif(IS_DIRECTORY "${AURIX_ILLD_DIR}/iLLD/TC37A/Tricore") + set(AURIX_ILLD "${AURIX_ILLD_DIR}/iLLD/TC37A/Tricore") + set(AURIX_SFR "${AURIX_ILLD_DIR}/Infra/Sfr/TC37A/_Reg") + set(AURIX_PINMAP "${AURIX_ILLD}/_PinMap") +else() + message(FATAL_ERROR "AURIX_ILLD_DIR contains neither iLLD/TC3xx/Tricore nor iLLD/TC37A/Tricore") +endif() + +target_include_directories(${PROJECT_NAME} + PUBLIC + ${AURIX_CFG_DIR} + ${AURIX_ILLD} + ${AURIX_ILLD}/Cpu/Std + ${AURIX_ILLD}/Cpu/Irq + ${AURIX_ILLD}/Cpu/Trap + ${AURIX_ILLD}/Scu/Std + ${AURIX_ILLD}/Src/Std + ${AURIX_ILLD}/Stm/Std + ${AURIX_ILLD}/Port/Std + ${AURIX_ILLD}/_Impl + ${AURIX_ILLD}/_PinMap + ${AURIX_PINMAP} + ${AURIX_ILLD_DIR}/Infra/Platform + ${AURIX_ILLD_DIR}/Infra/Platform/Tricore/Compilers + ${AURIX_SFR} + ${AURIX_ILLD_DIR}/Service/CpuGeneric + ${AURIX_ILLD_DIR}/Service/CpuGeneric/SysSe/Bsp + ${AURIX_ILLD_DIR}/Service/CpuGeneric/_Utilities +) diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu0_Main.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu0_Main.c new file mode 100644 index 000000000..f59958577 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu0_Main.c @@ -0,0 +1,63 @@ +/********************************************************************************************************************** + * \file Cpu0_Main.c + * \brief Main function definition for Cpu core 0. + * \copyright Copyright (C) Infineon Technologies AG 2019 + * + * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of + * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use + * are agreed, use of this file is subject to following: + * + * Boost Software License - Version 1.0 - August 17th, 2003 + * + * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and + * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, + * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the + * Software is furnished to do so, all subject to the following: + * + * The copyright notices in the Software and this entire statement, including the above license grant, this restriction + * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all + * derivative works of the Software, unless such copies or derivative works are solely in the form of + * machine-executable object code generated by a source language processor. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + *********************************************************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* Entry point of CPU0. + + The iLLD start-up code (Ifx_Ssw_Tc0.c) calls core0_main once it has + initialised CPU0. core0_main enters the ThreadX kernel, which calls + tx_application_define in sample_threadx.c. The linker script places this + file's code and data in CPU0's memories by its name. */ + +#include "Ifx_Types.h" +#include "IfxCpu.h" +#include "IfxScuWdt.h" +#include "tx_api.h" + +/* Start-up synchronisation event shared by CPU0, CPU1 and CPU2. */ +IFX_ALIGN(4) IfxCpu_syncEvent g_cpuSyncEvent = 0; + +void core0_main(void) +{ + /* The CPU0 watchdog and the safety watchdog are disabled. An application + that keeps them enabled shall service them periodically. */ + IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword()); + IfxScuWdt_disableSafetyWatchdog(IfxScuWdt_getSafetyWatchdogPassword()); + + /* Wait until all CPUs have started. */ + IfxCpu_emitEvent(&g_cpuSyncEvent); + IfxCpu_waitEvent(&g_cpuSyncEvent, 1); + + /* tx_kernel_enter does not return. */ + tx_kernel_enter(); + + while (1) + { + } +} diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu1_Main.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu1_Main.c new file mode 100644 index 000000000..c1a54520e --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu1_Main.c @@ -0,0 +1,59 @@ +/********************************************************************************************************************** + * \file Cpu1_Main.c + * \brief Main function definition for Cpu core 1. + * \copyright Copyright (C) Infineon Technologies AG 2019 + * + * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of + * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use + * are agreed, use of this file is subject to following: + * + * Boost Software License - Version 1.0 - August 17th, 2003 + * + * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and + * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, + * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the + * Software is furnished to do so, all subject to the following: + * + * The copyright notices in the Software and this entire statement, including the above license grant, this restriction + * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all + * derivative works of the Software, unless such copies or derivative works are solely in the form of + * machine-executable object code generated by a source language processor. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + *********************************************************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* Entry point of CPU1. + + The iLLD start-up code (Ifx_Ssw_Tc1.c) calls core1_main once it has + initialised CPU1. CPU1 takes part in the start-up synchronisation and + then stays idle. The linker script places this file's code and data in + CPU1's memories by its name. */ + +#include "Ifx_Types.h" +#include "IfxCpu.h" +#include "IfxScuWdt.h" + +extern IfxCpu_syncEvent g_cpuSyncEvent; + +void core1_main(void) +{ + IfxCpu_enableInterrupts(); + + /* The CPU1 watchdog is disabled. An application that keeps it enabled + shall service it periodically. */ + IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword()); + + /* Wait until all CPUs have started. */ + IfxCpu_emitEvent(&g_cpuSyncEvent); + IfxCpu_waitEvent(&g_cpuSyncEvent, 1); + + while (1) + { + } +} diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu2_Main.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu2_Main.c new file mode 100644 index 000000000..8117da6a9 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu2_Main.c @@ -0,0 +1,59 @@ +/********************************************************************************************************************** + * \file Cpu2_Main.c + * \brief Main function definition for Cpu core 2. + * \copyright Copyright (C) Infineon Technologies AG 2019 + * + * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of + * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use + * are agreed, use of this file is subject to following: + * + * Boost Software License - Version 1.0 - August 17th, 2003 + * + * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and + * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, + * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the + * Software is furnished to do so, all subject to the following: + * + * The copyright notices in the Software and this entire statement, including the above license grant, this restriction + * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all + * derivative works of the Software, unless such copies or derivative works are solely in the form of + * machine-executable object code generated by a source language processor. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + *********************************************************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* Entry point of CPU2. + + The iLLD start-up code (Ifx_Ssw_Tc2.c) calls core2_main once it has + initialised CPU2. CPU2 takes part in the start-up synchronisation and + then stays idle. The linker script places this file's code and data in + CPU2's memories by its name. */ + +#include "Ifx_Types.h" +#include "IfxCpu.h" +#include "IfxScuWdt.h" + +extern IfxCpu_syncEvent g_cpuSyncEvent; + +void core2_main(void) +{ + IfxCpu_enableInterrupts(); + + /* The CPU2 watchdog is disabled. An application that keeps it enabled + shall service it periodically. */ + IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword()); + + /* Wait until all CPUs have started. */ + IfxCpu_emitEvent(&g_cpuSyncEvent); + IfxCpu_waitEvent(&g_cpuSyncEvent, 1); + + while (1) + { + } +} diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg.h b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg.h new file mode 100644 index 000000000..d2301aecb --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg.h @@ -0,0 +1,63 @@ +/********************************************************************************************************************** + * \file Ifx_Cfg.h + * \brief Project configuration file. + * \copyright Copyright (C) Infineon Technologies AG 2019 + * + * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of + * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use + * are agreed, use of this file is subject to following: + * + * Boost Software License - Version 1.0 - August 17th, 2003 + * + * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and + * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, + * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the + * Software is furnished to do so, all subject to the following: + * + * The copyright notices in the Software and this entire statement, including the above license grant, this restriction + * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all + * derivative works of the Software, unless such copies or derivative works are solely in the form of + * machine-executable object code generated by a source language processor. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + *********************************************************************************************************************/ + +#ifndef IFX_CFG_H +#define IFX_CFG_H 1 + +/*********************************************************************************************************************/ +/*------------------------------------------Configuration for IfxScu_cfg.h-------------------------------------------*/ +/*********************************************************************************************************************/ +/* External oscillator frequency in Hz */ +#define IFX_CFG_SCU_XTAL_FREQUENCY (20000000) /* Allowed values are: 40000000, 25000000, 20000000, 16000000 */ +/* System PLL frequency in Hz */ +#define IFX_CFG_SCU_PLL_FREQUENCY (300000000) /* Allowed values are: 300000000, 200000000, 160000000, 133000000 + * or 80000000 */ +/* Peripheral PLL1 frequency in Hz */ +#define IFX_CFG_SCU_PLL1_FREQUENCY (320000000) /* Allowed values are: 320000000, 160000000 */ +/* Peripheral PLL2 frequency in Hz */ +#define IFX_CFG_SCU_PLL2_FREQUENCY (200000000) /* Allowed values are: 200000000 */ + +/*********************************************************************************************************************/ +/*-----------------------------------Configuration for Software managed interrupt------------------------------------*/ +/*********************************************************************************************************************/ +/* #define IFX_USE_SW_MANAGED_INT */ /* Decomment this line if the project needs to use Software managed interrupts */ + +/*********************************************************************************************************************/ +/*---------------------------------Configuration for Trap Hook Functions' Extensions---------------------------------*/ +/*********************************************************************************************************************/ +#define IFX_CFG_EXTEND_TRAP_HOOKS /* Decomment this line if the project needs to extend trap hook functions */ + +/*********************************************************************************************************************/ +/*-----------------------------------------Configuration for Device and Pin package----------------------------------*/ +/*********************************************************************************************************************/ +/* The iLLD release package for all TC3xx devices selects the device and the pin package with these macros. + * The TC375 Lite Kit carries a TC375TP in an LQFP-176 package. */ +#define DEVICE_TC37X 1 +#define IFX_PIN_PACKAGE_LQFP176 1 + +#endif /* IFX_CFG_H */ diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.c new file mode 100644 index 000000000..79c9d9815 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.c @@ -0,0 +1,109 @@ +/********************************************************************************************************************** + * \file Ifx_Cfg_Ssw.c + * \brief Configuration file for the Startup Software + * \copyright Copyright (C) Infineon Technologies AG 2019 + * + * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of + * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use + * are agreed, use of this file is subject to following: + * + * Boost Software License - Version 1.0 - August 17th, 2003 + * + * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and + * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, + * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the + * Software is furnished to do so, all subject to the following: + * + * The copyright notices in the Software and this entire statement, including the above license grant, this restriction + * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all + * derivative works of the Software, unless such copies or derivative works are solely in the form of + * machine-executable object code generated by a source language processor. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + *********************************************************************************************************************/ + +/*********************************************************************************************************************/ +/*-----------------------------------------------------Includes------------------------------------------------------*/ +/*********************************************************************************************************************/ +#include "Ifx_Cfg_Ssw.h" +#include "Ifx_Ssw_Infra.h" + +/*********************************************************************************************************************/ +/*---------------------------------------------Function Implementations----------------------------------------------*/ +/*********************************************************************************************************************/ +#if defined(__TASKING__) +#pragma optimize RL +#elif defined(__HIGHTEC__) +#pragma GCC optimize ("O1") +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma GCC optimize ("O1") +#endif + +#if (IFX_CFG_SSW_ENABLE_PMS_INIT == 1U) +void Ifx_Ssw_Pms_Init(void) +{ + if (IfxPmsEvr_runInitSequence(&IfxPmsEvr_cfgSequenceDefault) == 0) + { + __debug(); + /* Application may have call to error handling here */ + } + + Ifx_Ssw_jumpBackToLink(); +} + +#if (IFX_CFG_SSW_ENABLE_PMS_INIT_CHECK == 1U) +void Ifx_Ssw_Pms_InitCheck(void) +{ + + if (IfxPmsEvr_areInitValuesRight(&IfxPmsEvr_checkRegCfgDefault) == 0) + { + __debug(); + /* Application may have call to error handling here */ + } + Ifx_Ssw_jumpBackToLink(); +} +#endif /* End of Ifx_Ssw_Pms_InitCheck() */ +#endif /* End of Ifx_Ssw_Pms_Init() */ + +#if (IFX_CFG_SSW_ENABLE_LBIST == 1) +void Ifx_Ssw_Lbist(void) +{ + if (!IfxScuLbist_isDone()) + { + if(Ifx_Ssw_isColdPoweronReset()) + { + IfxScuLbist_triggerInline(&IfxScuLbist_defaultConfig); + } + } + if (!IfxScuLbist_evaluateResult(IfxScuLbist_defaultConfig.signature)) + { + __debug(); + /* Application may have call to error handling here */ + + /* Infinite loop to ensure that the error is notified as 'debugger is not connected at this point of time' */ + while(1); + } + + Ifx_Ssw_jumpBackToLink(); +} +#endif + +/* Hooks for application specific hardware and software extensions. The start-up code of the iLLD release package + * for all TC3xx devices calls them from __Core0_start; earlier iLLD versions do not. */ +void hardware_init_hook(void) +{} + +void software_init_hook(void) +{} + +#if defined(__TASKING__) +#pragma endoptimize +#elif defined(__HIGHTEC__) +#pragma GCC reset_options +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma GCC reset_options +#endif diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.h b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.h new file mode 100644 index 000000000..2ba973687 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.h @@ -0,0 +1,224 @@ +/********************************************************************************************************************** + * \file Ifx_Cfg_Ssw.h + * \brief Configuration header file for the Startup Software + * \copyright Copyright (C) Infineon Technologies AG 2019 + * + * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of + * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use + * are agreed, use of this file is subject to following: + * + * Boost Software License - Version 1.0 - August 17th, 2003 + * + * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and + * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, + * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the + * Software is furnished to do so, all subject to the following: + * + * The copyright notices in the Software and this entire statement, including the above license grant, this restriction + * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all + * derivative works of the Software, unless such copies or derivative works are solely in the form of + * machine-executable object code generated by a source language processor. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + *********************************************************************************************************************/ + +#ifndef IFX_CFG_SSW_H_ +#define IFX_CFG_SSW_H_ + +/*********************************************************************************************************************/ +/*-----------------------------------------------------Includes------------------------------------------------------*/ +/*********************************************************************************************************************/ +#include "Ifx_Cfg.h" +#include "Ifx_Ssw.h" + +/*********************************************************************************************************************/ +/*------------------------------------------------------Macros-------------------------------------------------------*/ +/*********************************************************************************************************************/ +/* Set this macro to 1, to configure the PMS EVR. */ +#ifndef IFX_CFG_SSW_ENABLE_PMS_INIT +#define IFX_CFG_SSW_ENABLE_PMS_INIT (1U) +#endif + +/* Set this macro to 1, to check the PMS EVR configuration. */ +#ifndef IFX_CFG_SSW_ENABLE_PMS_INIT_CHECK +#define IFX_CFG_SSW_ENABLE_PMS_INIT_CHECK (1U) +#endif + +/* Set this macro to 1, to do LBIST checks. */ +#ifndef IFX_CFG_SSW_ENABLE_LBIST +#define IFX_CFG_SSW_ENABLE_LBIST (0U) +#endif + +/* Set this macro to 1, to do MONBIST checks. */ +#ifndef IFX_CFG_SSW_ENABLE_MONBIST +#define IFX_CFG_SSW_ENABLE_MONBIST (0U) +#endif + +/* Set this macro to 1, to do MMIC checks. */ +#ifndef IFX_CFG_SSW_ENABLE_MMIC_CHECK +#define IFX_CFG_SSW_ENABLE_MMIC_CHECK (0U) +#endif + +/* Set this macro to 1, to initialize the PLL. */ +#ifndef IFX_CFG_SSW_ENABLE_PLL_INIT +#define IFX_CFG_SSW_ENABLE_PLL_INIT (1U) +#endif + +/* Set this macro to 1, to do MBIST checks. */ +#ifndef IFX_CFG_SSW_ENABLE_MBIST +#define IFX_CFG_SSW_ENABLE_MBIST (0U) +#endif + +/* Set this macro to 1, to do SMU Alarm handling. */ +#ifndef IFX_CFG_SSW_ENABLE_SMU +#define IFX_CFG_SSW_ENABLE_SMU (0U) +#endif + +/* Set this macro to 1, to enable emem initialisation. */ +#ifndef IFX_CFG_SSW_ENABLE_EMEM_INIT +#define IFX_CFG_SSW_ENABLE_EMEM_INIT (0U) +#endif + +/*********************************************************************************************************************/ +/*---------------------------------------------Function Implementations----------------------------------------------*/ +/*********************************************************************************************************************/ +#if IFX_CFG_SSW_ENABLE_PMS_INIT == 1U +#include "IfxPmsEvr.h" + +extern void Ifx_Ssw_Pms_Init(void); +extern void Ifx_Ssw_Pms_InitCheck(void); + +/* Callout hook API macro for PMS Initialization. + * This callout hook is referenced in Startup sequence. This need to be configured by application to + * initialize the PMS EVR module. This hook is by default defined to empty call by startup implementation. + * THIS CALLOUT HOOK SHALL NOT BE IMPLEMENTED AS FUNCTION CALL! + */ +#define IFX_CFG_SSW_CALLOUT_PMS_INIT() \ + { \ + Ifx_Ssw_jumpToFunctionWithLink(&Ifx_Ssw_Pms_Init); \ + IFX_CFG_SSW_CALLOUT_PMS_CHECK(); \ + } + +#if IFX_CFG_SSW_ENABLE_PMS_INIT_CHECK == 1U + +/* Callout hook API macro for PMS Initialization check. + * This callout hook is referenced in Startup sequence. This need to be configured by application to + * cross verify the PMS configuration with the required values. This hook is by default defined to empty + * call by startup implementation. + * THIS CALLOUT HOOK SHALL NOT BE IMPLEMENTED AS FUNCTION CALL! + */ +#define IFX_CFG_SSW_CALLOUT_PMS_CHECK() \ + { \ + Ifx_Ssw_jumpToFunctionWithLink(&Ifx_Ssw_Pms_InitCheck); \ + } +#else +#define IFX_CFG_SSW_CALLOUT_PMS_CHECK() +#endif /* End of IFX_CFG_SSW_ENABLE_PMS_INIT_CHECK */ + +#endif /* End of IFX_CFG_SSW_ENABLE_PMS_INIT */ + +/* Callout hook API macro for LBIST check. + * This callout hook is referenced in Startup sequence. This need to be configured by application to + * do LBIST checks. This hook is by default defined to empty call by startup implementation. + * THIS CALLOUT HOOK SHALL NOT BE IMPLEMENTED AS FUNCTION CALL! + */ +#if IFX_CFG_SSW_ENABLE_LBIST == 1U +#include "IfxScuLbist.h" + +extern void Ifx_Ssw_Lbist(void); + +#define IFX_CFG_SSW_CALLOUT_LBIST() \ + { \ + Ifx_Ssw_jumpToFunctionWithLink(&Ifx_Ssw_Lbist); \ + } + +#endif /* End of IFX_CFG_SSW_ENABLE_LBIST */ + +/* Callout hook API macro for MONBIST check. + * This callout hook is referenced in Startup sequence. This need to be configured by application to + * do MONBIST checks. This hook is by default defined to empty call by startup implementation. + * THIS CALLOUT HOOK SHALL NOT BE IMPLEMENTED AS FUNCTION CALL! + */ +#if IFX_CFG_SSW_ENABLE_MONBIST == 1U + +#include "IfxSmuStdby.h" + +extern void Ifx_Ssw_Monbist(void); + +#define IFX_CFG_SSW_CALLOUT_MONBIST() \ +{ \ + Ifx_Ssw_jumpToFunctionWithLink(&Ifx_Ssw_Monbist); \ +} +#endif /* End of IFX_CFG_SSW_ENABLE_MONBIST */ + +/* Callout hook API macro for PLL initialization. + * This callout hook is referenced in Startup sequence. This need to be configured by application to + * initialize the PLL. This hook is by default defined to empty call by startup implementation. + */ +#if IFX_CFG_SSW_ENABLE_PLL_INIT == 1U +#include "IfxScuCcu.h" + +#define IFX_CFG_SSW_CALLOUT_PLL_INIT() \ + { \ + if (IfxScuCcu_init(&IfxScuCcu_defaultClockConfig) == 1) \ + { \ + __debug(); \ + } \ + } + +#endif /* End of IFX_CFG_SSW_ENABLE_PLL_INIT */ + +/* Callout hook API macro for MBIST check. + * This callout hook is referenced in Startup sequence. This need to be configured by application to + * do MBIST checks. This hook is by default defined to empty call by startup implementation. + */ +#if IFX_CFG_SSW_ENABLE_MBIST == 1U +#include "IfxMtu.h" + +#define IFX_CFG_SSW_CALLOUT_MBIST() \ + { \ + IFX_EXTERN const IfxMtu_MbistConfig *const mbistGangConfig[]; \ + if (IfxMtu_runMbistAll(mbistGangConfig) == 1U) \ + { \ + __debug(); \ + } \ + } + +#endif /* End of IFX_CFG_SSW_ENABLE_MBIST */ + +/* Callout hook API macro for MMIC check. + * This need to be configured by application to do MMIC checks. + * This hook is by default defined to empty call by startup implementation. + */ +#if IFX_CFG_SSW_ENABLE_MMIC_CHECK == 1U +#define IFX_CFG_SSW_CALLOUT_MMIC_CHECK() +#endif /* End of IFX_CFG_SSW_ENABLE_MMIC_CHECK */ + +/* Callout hook API macro for SMU alarm handling. + * This need to be configured by application to do SMU alarm handling. + * This hook is by default defined to empty call by startup implementation. + */ +#if IFX_CFG_SSW_ENABLE_SMU == 1U +#define IFX_CFG_SSW_CALLOUT_SMU() +#endif /* End of IFX_CFG_SSW_ENABLE_SMU */ + +/* Callout hook API macro to unlock EMEM. + * This callout hook is referenced in Startup sequence. This need to be configured by application to + * initialize EMEM. This unlocks the EMEM. This hook is by default defined to empty call by startup implementation. + */ +#if IFX_CFG_SSW_ENABLE_EMEM_INIT == 1U +#include "IfxEmem_reg.h" + +extern void Ifx_Ssw_UnlockEmem(void); + +#define IFX_CFG_SSW_CALLOUT_EMEM_INIT() \ + { \ + Ifx_Ssw_UnlockEmem(); \ + } +#endif + +#endif /* IFX_CFG_SSW_H_ */ diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_SswBmhd.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_SswBmhd.c new file mode 100644 index 000000000..2280a3f07 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_SswBmhd.c @@ -0,0 +1,561 @@ +/********************************************************************************************************************** + * \file Ifx_Cfg_SswBmhd.c + * \brief This file contains the Bmhd for Aurix TC3XX. + * \copyright Copyright (C) Infineon Technologies AG 2019 + * + * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of + * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use + * are agreed, use of this file is subject to following: + * + * Boost Software License - Version 1.0 - August 17th, 2003 + * + * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and + * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, + * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the + * Software is furnished to do so, all subject to the following: + * + * The copyright notices in the Software and this entire statement, including the above license grant, this restriction + * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all + * derivative works of the Software, unless such copies or derivative works are solely in the form of + * machine-executable object code generated by a source language processor. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + *********************************************************************************************************************/ + +/*********************************************************************************************************************/ +/*-----------------------------------------------------Includes------------------------------------------------------*/ +/*********************************************************************************************************************/ +#include "Ifx_Ssw.h" + +/*********************************************************************************************************************/ +/*--------------------------------------------------BMHD constants---------------------------------------------------*/ +/*********************************************************************************************************************/ +#if defined(__TASKING__) +#pragma section farrom "bmhd_0_orig" +#elif defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_0_orig" a +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_0_orig" a +#elif defined(__DCC__) +#pragma section CONST ".bmhd_0_orig" far-absolute R +#elif defined(__ghs__) +#pragma ghs section rodata= ".bmhd_0_orig" +#endif +const Ifx_Ssw_Bmhd bmhd_0_orig = +{ + 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ + 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ + 0xA0000000, /* 0x004: .stad: User Code start address */ + 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ + 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ + }, + { + 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ + 0x00000000, /* 0x104: .pw1: Password protection word 1 */ + 0x00000000, /* 0x108: .pw2: Password protection word 2 */ + 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ + 0x00000000, /* 0x110: .pw4: Password protection word 4 */ + 0x00000000, /* 0x114: .pw5: Password protection word 5 */ + 0x00000000, /* 0x118: .pw6: Password protection word 6 */ + 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ + }, + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x130 - 0x13F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x140 - 0x14F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x150 - 0x15F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x160 - 0x16F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x170 - 0x17F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x180 - 0x18F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x190 - 0x19F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x1A0 - 0x1AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x1B0 - 0x1BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x1C0 - 0x1CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x1D0 - 0x1DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x1E0: Reserved (0x1E0 - 0x1EF) */ + }, + 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ +}; + +#if defined(__TASKING__) +#pragma section farrom "bmhd_0_copy" +#elif defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_0_copy" a +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_0_copy" a +#elif defined(__DCC__) +#pragma section CONST ".bmhd_0_copy" far-absolute R +#elif defined(__ghs__) +#pragma ghs section rodata= ".bmhd_0_copy" +#endif +const Ifx_Ssw_Bmhd bmhd_0_copy = +{ + 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ + 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ + 0xA0000000, /* 0x004: .stad: User Code start address */ + 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ + 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ + }, + { + 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ + 0x00000000, /* 0x104: .pw1: Password protection word 1 */ + 0x00000000, /* 0x108: .pw2: Password protection word 2 */ + 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ + 0x00000000, /* 0x110: .pw4: Password protection word 4 */ + 0x00000000, /* 0x114: .pw5: Password protection word 5 */ + 0x00000000, /* 0x118: .pw6: Password protection word 6 */ + 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ + }, + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x120 - 0x13F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x120 - 0x14F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x120 - 0x15F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x120 - 0x16F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x120 - 0x17F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x120 - 0x18F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x120 - 0x19F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x120 - 0x1AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x120 - 0x1BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x120 - 0x1CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x120 - 0x1DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1E0: Reserved (0x120 - 0x1EF) */ + }, + 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ +}; + +#if defined(__TASKING__) +#pragma section farrom "bmhd_1_orig" +#elif defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_1_orig" a +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_1_orig" a +#elif defined(__DCC__) +#pragma section CONST ".bmhd_1_orig" far-absolute R +#elif defined(__ghs__) +#pragma ghs section rodata= ".bmhd_1_orig" +#endif +const Ifx_Ssw_Bmhd bmhd_1_orig = +{ + 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ + 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ + 0xA0000000, /* 0x004: .stad: User Code start address */ + 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ + 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ + }, + { + 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ + 0x00000000, /* 0x104: .pw1: Password protection word 1 */ + 0x00000000, /* 0x108: .pw2: Password protection word 2 */ + 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ + 0x00000000, /* 0x110: .pw4: Password protection word 4 */ + 0x00000000, /* 0x114: .pw5: Password protection word 5 */ + 0x00000000, /* 0x118: .pw6: Password protection word 6 */ + 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ + }, + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x130 - 0x13F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x140 - 0x14F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x150 - 0x15F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x160 - 0x16F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x170 - 0x17F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x180 - 0x18F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x190 - 0x19F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x1A0 - 0x1AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x1B0 - 0x1BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x1C0 - 0x1CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x1D0 - 0x1DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x1E0: Reserved (0x1E0 - 0x1EF) */ + }, + 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ +}; + +#if defined(__TASKING__) +#pragma section farrom "bmhd_1_copy" +#elif defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_1_copy" a +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_1_copy" a +#elif defined(__DCC__) +#pragma section CONST ".bmhd_1_copy" far-absolute R +#elif defined(__ghs__) +#pragma ghs section rodata= ".bmhd_1_copy" +#endif +const Ifx_Ssw_Bmhd bmhd_1_copy = +{ + 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ + 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ + 0xA0000000, /* 0x004: .stad: User Code start address */ + 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ + 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ + }, + { + 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ + 0x00000000, /* 0x104: .pw1: Password protection word 1 */ + 0x00000000, /* 0x108: .pw2: Password protection word 2 */ + 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ + 0x00000000, /* 0x110: .pw4: Password protection word 4 */ + 0x00000000, /* 0x114: .pw5: Password protection word 5 */ + 0x00000000, /* 0x118: .pw6: Password protection word 6 */ + 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ + }, + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x120 - 0x13F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x120 - 0x14F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x120 - 0x15F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x120 - 0x16F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x120 - 0x17F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x120 - 0x18F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x120 - 0x19F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x120 - 0x1AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x120 - 0x1BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x120 - 0x1CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x120 - 0x1DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1E0: Reserved (0x120 - 0x1EF) */ + }, + 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ +}; + +#if defined(__TASKING__) +#pragma section farrom "bmhd_2_orig" +#elif defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_2_orig" a +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_2_orig" a +#elif defined(__DCC__) +#pragma section CONST ".bmhd_2_orig" far-absolute R +#elif defined(__ghs__) +#pragma ghs section rodata= ".bmhd_2_orig" +#endif +const Ifx_Ssw_Bmhd bmhd_2_orig = +{ + 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ + 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ + 0xA0000000, /* 0x004: .stad: User Code start address */ + 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ + 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ + }, + { + 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ + 0x00000000, /* 0x104: .pw1: Password protection word 1 */ + 0x00000000, /* 0x108: .pw2: Password protection word 2 */ + 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ + 0x00000000, /* 0x110: .pw4: Password protection word 4 */ + 0x00000000, /* 0x114: .pw5: Password protection word 5 */ + 0x00000000, /* 0x118: .pw6: Password protection word 6 */ + 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ + }, + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x130 - 0x13F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x140 - 0x14F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x150 - 0x15F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x160 - 0x16F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x170 - 0x17F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x180 - 0x18F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x190 - 0x19F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x1A0 - 0x1AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x1B0 - 0x1BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x1C0 - 0x1CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x1D0 - 0x1DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x1E0: Reserved (0x1E0 - 0x1EF) */ + }, + 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ +}; + +#if defined(__TASKING__) +#pragma section farrom "bmhd_2_copy" +#elif defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_2_copy" a +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_2_copy" a +#elif defined(__DCC__) +#pragma section CONST ".bmhd_2_copy" far-absolute R +#elif defined(__ghs__) +#pragma ghs section rodata= ".bmhd_2_copy" +#endif +const Ifx_Ssw_Bmhd bmhd_2_copy = +{ + 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ + 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ + 0xA0000000, /* 0x004: .stad: User Code start address */ + 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ + 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ + }, + { + 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ + 0x00000000, /* 0x104: .pw1: Password protection word 1 */ + 0x00000000, /* 0x108: .pw2: Password protection word 2 */ + 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ + 0x00000000, /* 0x110: .pw4: Password protection word 4 */ + 0x00000000, /* 0x114: .pw5: Password protection word 5 */ + 0x00000000, /* 0x118: .pw6: Password protection word 6 */ + 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ + }, + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x120 - 0x13F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x120 - 0x14F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x120 - 0x15F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x120 - 0x16F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x120 - 0x17F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x120 - 0x18F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x120 - 0x19F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x120 - 0x1AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x120 - 0x1BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x120 - 0x1CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x120 - 0x1DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1E0: Reserved (0x120 - 0x1EF) */ + }, + 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ +}; + +#if defined(__TASKING__) +#pragma section farrom "bmhd_3_orig" +#elif defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_3_orig" a +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_3_orig" a +#elif defined(__DCC__) +#pragma section CONST ".bmhd_3_orig" far-absolute R +#elif defined(__ghs__) +#pragma ghs section rodata= ".bmhd_3_orig" +#endif +const Ifx_Ssw_Bmhd bmhd_3_orig = +{ + 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ + 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ + 0xA0000000, /* 0x004: .stad: User Code start address */ + 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ + 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ + }, + { + 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ + 0x00000000, /* 0x104: .pw1: Password protection word 1 */ + 0x00000000, /* 0x108: .pw2: Password protection word 2 */ + 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ + 0x00000000, /* 0x110: .pw4: Password protection word 4 */ + 0x00000000, /* 0x114: .pw5: Password protection word 5 */ + 0x00000000, /* 0x118: .pw6: Password protection word 6 */ + 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ + }, + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x130 - 0x13F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x140 - 0x14F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x150 - 0x15F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x160 - 0x16F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x170 - 0x17F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x180 - 0x18F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x190 - 0x19F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x1A0 - 0x1AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x1B0 - 0x1BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x1C0 - 0x1CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x1D0 - 0x1DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x1E0: Reserved (0x1E0 - 0x1EF) */ + }, + 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ +}; + +#if defined(__TASKING__) +#pragma section farrom "bmhd_3_copy" +#elif defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_3_copy" a +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma section +#pragma section ".bmhd_3_copy" a +#elif defined(__DCC__) +#pragma section CONST ".bmhd_3_copy" far-absolute R +#elif defined(__ghs__) +#pragma ghs section rodata= ".bmhd_3_copy" +#endif +const Ifx_Ssw_Bmhd bmhd_3_copy = +{ + 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ + 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ + 0xA0000000, /* 0x004: .stad: User Code start address */ + 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ + 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ + }, + { + 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ + 0x00000000, /* 0x104: .pw1: Password protection word 1 */ + 0x00000000, /* 0x108: .pw2: Password protection word 2 */ + 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ + 0x00000000, /* 0x110: .pw4: Password protection word 4 */ + 0x00000000, /* 0x114: .pw5: Password protection word 5 */ + 0x00000000, /* 0x118: .pw6: Password protection word 6 */ + 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ + }, + { + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x120 - 0x13F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x120 - 0x14F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x120 - 0x15F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x120 - 0x16F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x120 - 0x17F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x120 - 0x18F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x120 - 0x19F) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x120 - 0x1AF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x120 - 0x1BF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x120 - 0x1CF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x120 - 0x1DF) */ + 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1E0: Reserved (0x120 - 0x1EF) */ + }, + 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ +}; + +#if defined(__HIGHTEC__) +#pragma section +#elif defined(__GNUC__) && !defined(__HIGHTEC__) +#pragma section +#endif diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Trap.h b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Trap.h new file mode 100644 index 000000000..e3e61f43d --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Trap.h @@ -0,0 +1,30 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* iLLD trap hook configuration. IfxCpu_Trap.h includes this file when + Ifx_Cfg.h defines IFX_CFG_EXTEND_TRAP_HOOKS. */ + +#ifndef IFX_CFG_TRAP_H +#define IFX_CFG_TRAP_H + +/* ThreadX system call handler, defined in tx_thread_schedule.c of the port. + The types match VOID and UCHAR in tx_port.h. */ +void _tx_thread_syscall_handler(unsigned char id); + +/* The ThreadX port enters the scheduler through a system call on CPU0. The + hook shall call _tx_thread_syscall_handler directly: the port's context + save walks a fixed number of CSA links back from the handler + (TX_PORT_TRICORE_SYSCALL_CALL_DEPTH in src/tx_port_tricore.h). */ +#define IFX_CFG_CPU_TRAP_SYSCALL_CPU0_HOOK(trapWatch) _tx_thread_syscall_handler((trapWatch).tId) + +#endif /* IFX_CFG_TRAP_H */ diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Lcf_Gnuc_Tricore_Tc.lsl b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Lcf_Gnuc_Tricore_Tc.lsl new file mode 100644 index 000000000..94047f8b6 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Lcf_Gnuc_Tricore_Tc.lsl @@ -0,0 +1,1751 @@ +/********************************************************************************************************************** + * \file Lcf_Gnuc_Tricore_Tc.lsl + * \brief Linker command file for Tasking compiler. + * \copyright Copyright (C) Infineon Technologies AG 2019 + * + * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of + * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use + * are agreed, use of this file is subject to following: + * + * Boost Software License - Version 1.0 - August 17th, 2003 + * + * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and + * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, + * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the + * Software is furnished to do so, all subject to the following: + * + * The copyright notices in the Software and this entire statement, including the above license grant, this restriction + * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all + * derivative works of the Software, unless such copies or derivative works are solely in the form of + * machine-executable object code generated by a source language processor. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE + * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN + * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + *********************************************************************************************************************/ +/* Default linker script, for normal executables */ +OUTPUT_FORMAT("elf32-tricore") +OUTPUT_ARCH(tricore) +ENTRY(_START) + +__TRICORE_DERIVATE_MEMORY_MAP__ = 0x380; + +LCF_CSA0_SIZE = 12k; +LCF_USTACK0_SIZE = 2k; +LCF_ISTACK0_SIZE = 1k; + +LCF_CSA1_SIZE = 8k; +LCF_USTACK1_SIZE = 2k; +LCF_ISTACK1_SIZE = 1k; + +LCF_CSA2_SIZE = 8k; +LCF_USTACK2_SIZE = 2k; +LCF_ISTACK2_SIZE = 1k; + +LCF_HEAP_SIZE = 4k; + +LCF_DSPR2_START = 0x50000000; +LCF_DSPR2_SIZE = 96k; + +LCF_DSPR1_START = 0x60000000; +LCF_DSPR1_SIZE = 240k; + +LCF_DSPR0_START = 0x70000000; +LCF_DSPR0_SIZE = 240k; + +LCF_CSA2_OFFSET = (LCF_DSPR2_SIZE - 1k - LCF_CSA2_SIZE); +LCF_ISTACK2_OFFSET = (LCF_CSA2_OFFSET - 256 - LCF_ISTACK2_SIZE); +LCF_USTACK2_OFFSET = (LCF_ISTACK2_OFFSET - 256 - LCF_USTACK2_SIZE); + +LCF_CSA1_OFFSET = (LCF_DSPR1_SIZE - 1k - LCF_CSA1_SIZE); +LCF_ISTACK1_OFFSET = (LCF_CSA1_OFFSET - 256 - LCF_ISTACK1_SIZE); +LCF_USTACK1_OFFSET = (LCF_ISTACK1_OFFSET - 256 - LCF_USTACK1_SIZE); + +LCF_CSA0_OFFSET = (LCF_DSPR0_SIZE - 1k - LCF_CSA0_SIZE); +LCF_ISTACK0_OFFSET = (LCF_CSA0_OFFSET - 256 - LCF_ISTACK0_SIZE); +LCF_USTACK0_OFFSET = (LCF_ISTACK0_OFFSET - 256 - LCF_USTACK0_SIZE); + +LCF_HEAP0_OFFSET = (LCF_USTACK0_OFFSET - LCF_HEAP_SIZE); +LCF_HEAP1_OFFSET = (LCF_USTACK1_OFFSET - LCF_HEAP_SIZE); +LCF_HEAP2_OFFSET = (LCF_USTACK2_OFFSET - LCF_HEAP_SIZE); + +LCF_INTVEC0_START = 0x802FE000; +LCF_INTVEC1_START = 0x805FC000; +LCF_INTVEC2_START = 0x805FE000; + +__INTTAB_CPU0 = LCF_INTVEC0_START; +__INTTAB_CPU1 = LCF_INTVEC1_START; +__INTTAB_CPU2 = LCF_INTVEC2_START; + +LCF_TRAPVEC0_START = 0x80000100; +LCF_TRAPVEC1_START = 0x80300000; +LCF_TRAPVEC2_START = 0x80300100; + +LCF_STARTPTR_CPU0 = 0x80000000; +LCF_STARTPTR_CPU1 = 0x80300200; +LCF_STARTPTR_CPU2 = 0x80300220; + +LCF_STARTPTR_NC_CPU0 = 0xA0000000; +LCF_STARTPTR_NC_CPU1 = 0xA0300200; +LCF_STARTPTR_NC_CPU2 = 0xA0300220; + +RESET = LCF_STARTPTR_NC_CPU0; + +MEMORY +{ + dsram2_local (w!xp): org = 0xd0000000, len = 96K + dsram2 (w!xp): org = 0x50000000, len = 96K + psram2 (w!xp): org = 0x50100000, len = 64K + + dsram1_local (w!xp): org = 0xd0000000, len = 240K + dsram1 (w!xp): org = 0x60000000, len = 240K + psram1 (w!xp): org = 0x60100000, len = 64K + + dsram0_local (w!xp): org = 0xd0000000, len = 240K + dsram0 (w!xp): org = 0x70000000, len = 240K + psram0 (w!xp): org = 0x70100000, len = 64K + + psram_local (w!xp): org = 0xc0000000, len = 64K + + pfls0 (rx!p): org = 0x80000000, len = 3M + pfls0_nc (rx!p): org = 0xa0000000, len = 3M + + pfls1 (rx!p): org = 0x80300000, len = 3M + pfls1_nc (rx!p): org = 0xa0300000, len = 3M + + dfls0 (rx!p): org = 0xaf000000, len = 256K + + ucb (rx!p): org = 0xaf400000, len = 24K + + cpu0_dlmu (w!xp): org = 0x90000000, len = 64K + cpu0_dlmu_nc (w!xp): org = 0xb0000000, len = 64K + + cpu1_dlmu (w!xp): org = 0x90010000, len = 64K + cpu1_dlmu_nc (w!xp): org = 0xb0010000, len = 64K + + cpu2_dlmu (w!xp): org = 0x90020000, len = 64K + cpu2_dlmu_nc (w!xp): org = 0xb0020000, len = 64K + +} + +/* map local memory address to a global address */ +REGION_MAP( CPU0 , ORIGIN(dsram0_local), LENGTH(dsram0_local), ORIGIN(dsram0)) +REGION_MAP( CPU1 , ORIGIN(dsram1_local), LENGTH(dsram1_local), ORIGIN(dsram1)) +REGION_MAP( CPU2 , ORIGIN(dsram2_local), LENGTH(dsram2_local), ORIGIN(dsram2)) +/* map cached and non cached addresses */ +REGION_MIRROR("pfls0", "pfls0_nc") +REGION_MIRROR("pfls1", "pfls1_nc") +REGION_MIRROR("cpu0_dlmu", "cpu0_dlmu_nc") +REGION_MIRROR("cpu1_dlmu", "cpu1_dlmu_nc") +REGION_MIRROR("cpu2_dlmu", "cpu2_dlmu_nc") + +/*Un comment one of the below statement groups to enable CpuX DMI RAM to hold global variables*/ + +REGION_ALIAS( default_ram , dsram0) +REGION_ALIAS( default_rom , pfls0) + +/* +REGION_ALIAS( default_ram , dsram1) +REGION_ALIAS( default_rom , pfls1) +*/ +/* +REGION_ALIAS( default_ram , dsram2) +*/ + +/*Sections located at absolute fixed address*/ + /*Fixed memory Allocations for stack memory and CSA*/ + CORE_ID = CPU2; + SECTIONS + { + CORE_SEC(.ustack) (LCF_DSPR2_START + LCF_USTACK2_OFFSET): + { PROVIDE(__USTACK2_END = .); . = . + LCF_USTACK2_SIZE; PROVIDE(__USTACK2 = .); } + + CORE_SEC(.istack) (LCF_DSPR2_START + LCF_ISTACK2_OFFSET): + { PROVIDE(__ISTACK2_END = .); . = . + LCF_ISTACK2_SIZE; PROVIDE(__ISTACK2 = .); } + + CORE_SEC(.csa) (LCF_DSPR2_START + LCF_CSA2_OFFSET): + { PROVIDE(__CSA2 = .); . = . + LCF_CSA2_SIZE; PROVIDE(__CSA2_END = .); } + } + + CORE_ID = CPU1; + SECTIONS + { + CORE_SEC(.ustack) (LCF_DSPR1_START + LCF_USTACK1_OFFSET): + { PROVIDE(__USTACK1_END = .); . = . + LCF_USTACK1_SIZE; PROVIDE(__USTACK1 = .); } + + CORE_SEC(.istack) (LCF_DSPR1_START + LCF_ISTACK1_OFFSET): + { PROVIDE(__ISTACK1_END = .); . = . + LCF_ISTACK1_SIZE; PROVIDE(__ISTACK1 = .); } + + CORE_SEC(.csa) (LCF_DSPR1_START + LCF_CSA1_OFFSET): + { PROVIDE(__CSA1 = .); . = . + LCF_CSA1_SIZE; PROVIDE(__CSA1_END = .); } + } + + CORE_ID = CPU0; + SECTIONS + { + CORE_SEC(.ustack) (LCF_DSPR0_START + LCF_USTACK0_OFFSET): + { PROVIDE(__USTACK0_END = .); . = . + LCF_USTACK0_SIZE; PROVIDE(__USTACK0 = .); } + + CORE_SEC(.istack) (LCF_DSPR0_START + LCF_ISTACK0_OFFSET): + { PROVIDE(__ISTACK0_END = .); . = . + LCF_ISTACK0_SIZE; PROVIDE(__ISTACK0 = .); } + + CORE_SEC(.csa) (LCF_DSPR0_START + LCF_CSA0_OFFSET): + { PROVIDE(__CSA0 = .); . = . + LCF_CSA0_SIZE; PROVIDE(__CSA0_END = .); } + } + + /*Fixed memory Allocations for _START*/ + CORE_ID = GLOBAL ; + SECTIONS + { + .start_tc0 (LCF_STARTPTR_NC_CPU0) : FLAGS(rxl) { KEEP (*(.start)); } > pfls0_nc + .interface_const (0x80000020) : { __IF_CONST = .; KEEP (*(.interface_const)); } > pfls0 + PROVIDE(__START0 = LCF_STARTPTR_NC_CPU0); + PROVIDE(__ENABLE_INDIVIDUAL_C_INIT_CPU0 = 0); /* Not used */ + PROVIDE(__ENABLE_INDIVIDUAL_C_INIT_CPU1 = 0); + PROVIDE(__ENABLE_INDIVIDUAL_C_INIT_CPU2 = 0); + } + + /*Fixed memory Allocations for Trap Vector Table*/ + CORE_ID = GLOBAL; + SECTIONS + { + .traptab_tc0 (LCF_TRAPVEC0_START) : { PROVIDE(__TRAPTAB_CPU0 = .); KEEP (*(.traptab_cpu0)); } > pfls0 + .traptab_tc1 (LCF_TRAPVEC1_START) : { PROVIDE(__TRAPTAB_CPU1 = .); KEEP (*(.traptab_cpu1)); } > pfls1 + .traptab_tc2 (LCF_TRAPVEC2_START) : { PROVIDE(__TRAPTAB_CPU2 = .); KEEP (*(.traptab_cpu2)); } > pfls1 + } + + /*Fixed memory Allocations for _START1 to 2*/ + CORE_ID = GLOBAL ; + SECTIONS + { + .start_tc1 (LCF_STARTPTR_NC_CPU1) : FLAGS(rxl) { KEEP (*(.start_cpu1)); } > pfls1_nc + .start_tc2 (LCF_STARTPTR_NC_CPU2) : FLAGS(rxl) { KEEP (*(.start_cpu2)); } > pfls1_nc + PROVIDE(__START1 = LCF_STARTPTR_NC_CPU1); + PROVIDE(__START2 = LCF_STARTPTR_NC_CPU2); + } + + /*Fixed memory Allocations for Interrupt Vector Table*/ + SECTIONS + { + /*CPU0 Interrupt Vector Table*/ + .inttab_tc0_000 (__INTTAB_CPU0 + 0x0000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_0 )); } + .inttab_tc0_001 (__INTTAB_CPU0 + 0x0020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_1 )); } + .inttab_tc0_002 (__INTTAB_CPU0 + 0x0040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_2 )); } + .inttab_tc0_003 (__INTTAB_CPU0 + 0x0060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_3 )); } + .inttab_tc0_004 (__INTTAB_CPU0 + 0x0080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_4 )); } + .inttab_tc0_005 (__INTTAB_CPU0 + 0x00A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_5 )); } + .inttab_tc0_006 (__INTTAB_CPU0 + 0x00C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_6 )); } + .inttab_tc0_007 (__INTTAB_CPU0 + 0x00E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_7 )); } + .inttab_tc0_008 (__INTTAB_CPU0 + 0x0100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_8 )); } + .inttab_tc0_009 (__INTTAB_CPU0 + 0x0120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_9 )); } + .inttab_tc0_00A (__INTTAB_CPU0 + 0x0140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_10 )); } + .inttab_tc0_00B (__INTTAB_CPU0 + 0x0160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_11 )); } + .inttab_tc0_00C (__INTTAB_CPU0 + 0x0180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_12 )); } + .inttab_tc0_00D (__INTTAB_CPU0 + 0x01A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_13 )); } + .inttab_tc0_00E (__INTTAB_CPU0 + 0x01C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_14 )); } + .inttab_tc0_00F (__INTTAB_CPU0 + 0x01E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_15 )); } + .inttab_tc0_010 (__INTTAB_CPU0 + 0x0200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_16 )); } + .inttab_tc0_011 (__INTTAB_CPU0 + 0x0220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_17 )); } + .inttab_tc0_012 (__INTTAB_CPU0 + 0x0240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_18 )); } + .inttab_tc0_013 (__INTTAB_CPU0 + 0x0260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_19 )); } + .inttab_tc0_014 (__INTTAB_CPU0 + 0x0280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_20 )); } + .inttab_tc0_015 (__INTTAB_CPU0 + 0x02A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_21 )); } + .inttab_tc0_016 (__INTTAB_CPU0 + 0x02C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_22 )); } + .inttab_tc0_017 (__INTTAB_CPU0 + 0x02E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_23 )); } + .inttab_tc0_018 (__INTTAB_CPU0 + 0x0300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_24 )); } + .inttab_tc0_019 (__INTTAB_CPU0 + 0x0320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_25 )); } + .inttab_tc0_01A (__INTTAB_CPU0 + 0x0340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_26 )); } + .inttab_tc0_01B (__INTTAB_CPU0 + 0x0360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_27 )); } + .inttab_tc0_01C (__INTTAB_CPU0 + 0x0380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_28 )); } + .inttab_tc0_01D (__INTTAB_CPU0 + 0x03A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_29 )); } + .inttab_tc0_01E (__INTTAB_CPU0 + 0x03C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_30 )); } + .inttab_tc0_01F (__INTTAB_CPU0 + 0x03E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_31 )); } + .inttab_tc0_020 (__INTTAB_CPU0 + 0x0400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_32 )); } + .inttab_tc0_021 (__INTTAB_CPU0 + 0x0420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_33 )); } + .inttab_tc0_022 (__INTTAB_CPU0 + 0x0440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_34 )); } + .inttab_tc0_023 (__INTTAB_CPU0 + 0x0460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_35 )); } + .inttab_tc0_024 (__INTTAB_CPU0 + 0x0480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_36 )); } + .inttab_tc0_025 (__INTTAB_CPU0 + 0x04A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_37 )); } + .inttab_tc0_026 (__INTTAB_CPU0 + 0x04C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_38 )); } + .inttab_tc0_027 (__INTTAB_CPU0 + 0x04E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_39 )); } + .inttab_tc0_028 (__INTTAB_CPU0 + 0x0500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_40 )); } + .inttab_tc0_029 (__INTTAB_CPU0 + 0x0520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_41 )); } + .inttab_tc0_02A (__INTTAB_CPU0 + 0x0540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_42 )); } + .inttab_tc0_02B (__INTTAB_CPU0 + 0x0560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_43 )); } + .inttab_tc0_02C (__INTTAB_CPU0 + 0x0580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_44 )); } + .inttab_tc0_02D (__INTTAB_CPU0 + 0x05A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_45 )); } + .inttab_tc0_02E (__INTTAB_CPU0 + 0x05C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_46 )); } + .inttab_tc0_02F (__INTTAB_CPU0 + 0x05E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_47 )); } + .inttab_tc0_030 (__INTTAB_CPU0 + 0x0600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_48 )); } + .inttab_tc0_031 (__INTTAB_CPU0 + 0x0620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_49 )); } + .inttab_tc0_032 (__INTTAB_CPU0 + 0x0640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_50 )); } + .inttab_tc0_033 (__INTTAB_CPU0 + 0x0660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_51 )); } + .inttab_tc0_034 (__INTTAB_CPU0 + 0x0680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_52 )); } + .inttab_tc0_035 (__INTTAB_CPU0 + 0x06A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_53 )); } + .inttab_tc0_036 (__INTTAB_CPU0 + 0x06C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_54 )); } + .inttab_tc0_037 (__INTTAB_CPU0 + 0x06E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_55 )); } + .inttab_tc0_038 (__INTTAB_CPU0 + 0x0700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_56 )); } + .inttab_tc0_039 (__INTTAB_CPU0 + 0x0720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_57 )); } + .inttab_tc0_03A (__INTTAB_CPU0 + 0x0740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_58 )); } + .inttab_tc0_03B (__INTTAB_CPU0 + 0x0760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_59 )); } + .inttab_tc0_03C (__INTTAB_CPU0 + 0x0780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_60 )); } + .inttab_tc0_03D (__INTTAB_CPU0 + 0x07A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_61 )); } + .inttab_tc0_03E (__INTTAB_CPU0 + 0x07C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_62 )); } + .inttab_tc0_03F (__INTTAB_CPU0 + 0x07E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_63 )); } + .inttab_tc0_040 (__INTTAB_CPU0 + 0x0800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_64 )); } + .inttab_tc0_041 (__INTTAB_CPU0 + 0x0820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_65 )); } + .inttab_tc0_042 (__INTTAB_CPU0 + 0x0840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_66 )); } + .inttab_tc0_043 (__INTTAB_CPU0 + 0x0860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_67 )); } + .inttab_tc0_044 (__INTTAB_CPU0 + 0x0880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_68 )); } + .inttab_tc0_045 (__INTTAB_CPU0 + 0x08A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_69 )); } + .inttab_tc0_046 (__INTTAB_CPU0 + 0x08C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_70 )); } + .inttab_tc0_047 (__INTTAB_CPU0 + 0x08E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_71 )); } + .inttab_tc0_048 (__INTTAB_CPU0 + 0x0900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_72 )); } + .inttab_tc0_049 (__INTTAB_CPU0 + 0x0920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_73 )); } + .inttab_tc0_04A (__INTTAB_CPU0 + 0x0940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_74 )); } + .inttab_tc0_04B (__INTTAB_CPU0 + 0x0960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_75 )); } + .inttab_tc0_04C (__INTTAB_CPU0 + 0x0980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_76 )); } + .inttab_tc0_04D (__INTTAB_CPU0 + 0x09A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_77 )); } + .inttab_tc0_04E (__INTTAB_CPU0 + 0x09C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_78 )); } + .inttab_tc0_04F (__INTTAB_CPU0 + 0x09E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_79 )); } + .inttab_tc0_050 (__INTTAB_CPU0 + 0x0A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_80 )); } + .inttab_tc0_051 (__INTTAB_CPU0 + 0x0A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_81 )); } + .inttab_tc0_052 (__INTTAB_CPU0 + 0x0A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_82 )); } + .inttab_tc0_053 (__INTTAB_CPU0 + 0x0A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_83 )); } + .inttab_tc0_054 (__INTTAB_CPU0 + 0x0A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_84 )); } + .inttab_tc0_055 (__INTTAB_CPU0 + 0x0AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_85 )); } + .inttab_tc0_056 (__INTTAB_CPU0 + 0x0AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_86 )); } + .inttab_tc0_057 (__INTTAB_CPU0 + 0x0AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_87 )); } + .inttab_tc0_058 (__INTTAB_CPU0 + 0x0B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_88 )); } + .inttab_tc0_059 (__INTTAB_CPU0 + 0x0B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_89 )); } + .inttab_tc0_05A (__INTTAB_CPU0 + 0x0B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_90 )); } + .inttab_tc0_05B (__INTTAB_CPU0 + 0x0B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_91 )); } + .inttab_tc0_05C (__INTTAB_CPU0 + 0x0B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_92 )); } + .inttab_tc0_05D (__INTTAB_CPU0 + 0x0BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_93 )); } + .inttab_tc0_05E (__INTTAB_CPU0 + 0x0BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_94 )); } + .inttab_tc0_05F (__INTTAB_CPU0 + 0x0BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_95 )); } + .inttab_tc0_060 (__INTTAB_CPU0 + 0x0C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_96 )); } + .inttab_tc0_061 (__INTTAB_CPU0 + 0x0C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_97 )); } + .inttab_tc0_062 (__INTTAB_CPU0 + 0x0C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_98 )); } + .inttab_tc0_063 (__INTTAB_CPU0 + 0x0C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_99 )); } + .inttab_tc0_064 (__INTTAB_CPU0 + 0x0C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_100)); } + .inttab_tc0_065 (__INTTAB_CPU0 + 0x0CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_101)); } + .inttab_tc0_066 (__INTTAB_CPU0 + 0x0CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_102)); } + .inttab_tc0_067 (__INTTAB_CPU0 + 0x0CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_103)); } + .inttab_tc0_068 (__INTTAB_CPU0 + 0x0D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_104)); } + .inttab_tc0_069 (__INTTAB_CPU0 + 0x0D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_105)); } + .inttab_tc0_06A (__INTTAB_CPU0 + 0x0D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_106)); } + .inttab_tc0_06B (__INTTAB_CPU0 + 0x0D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_107)); } + .inttab_tc0_06C (__INTTAB_CPU0 + 0x0D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_108)); } + .inttab_tc0_06D (__INTTAB_CPU0 + 0x0DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_109)); } + .inttab_tc0_06E (__INTTAB_CPU0 + 0x0DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_110)); } + .inttab_tc0_06F (__INTTAB_CPU0 + 0x0DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_111)); } + .inttab_tc0_070 (__INTTAB_CPU0 + 0x0E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_112)); } + .inttab_tc0_071 (__INTTAB_CPU0 + 0x0E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_113)); } + .inttab_tc0_072 (__INTTAB_CPU0 + 0x0E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_114)); } + .inttab_tc0_073 (__INTTAB_CPU0 + 0x0E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_115)); } + .inttab_tc0_074 (__INTTAB_CPU0 + 0x0E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_116)); } + .inttab_tc0_075 (__INTTAB_CPU0 + 0x0EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_117)); } + .inttab_tc0_076 (__INTTAB_CPU0 + 0x0EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_118)); } + .inttab_tc0_077 (__INTTAB_CPU0 + 0x0EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_119)); } + .inttab_tc0_078 (__INTTAB_CPU0 + 0x0F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_120)); } + .inttab_tc0_079 (__INTTAB_CPU0 + 0x0F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_121)); } + .inttab_tc0_07A (__INTTAB_CPU0 + 0x0F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_122)); } + .inttab_tc0_07B (__INTTAB_CPU0 + 0x0F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_123)); } + .inttab_tc0_07C (__INTTAB_CPU0 + 0x0F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_124)); } + .inttab_tc0_07D (__INTTAB_CPU0 + 0x0FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_125)); } + .inttab_tc0_07E (__INTTAB_CPU0 + 0x0FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_126)); } + .inttab_tc0_07F (__INTTAB_CPU0 + 0x0FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_127)); } + .inttab_tc0_080 (__INTTAB_CPU0 + 0x1000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_128)); } + .inttab_tc0_081 (__INTTAB_CPU0 + 0x1020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_129)); } + .inttab_tc0_082 (__INTTAB_CPU0 + 0x1040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_130)); } + .inttab_tc0_083 (__INTTAB_CPU0 + 0x1060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_131)); } + .inttab_tc0_084 (__INTTAB_CPU0 + 0x1080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_132)); } + .inttab_tc0_085 (__INTTAB_CPU0 + 0x10A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_133)); } + .inttab_tc0_086 (__INTTAB_CPU0 + 0x10C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_134)); } + .inttab_tc0_087 (__INTTAB_CPU0 + 0x10E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_135)); } + .inttab_tc0_088 (__INTTAB_CPU0 + 0x1100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_136)); } + .inttab_tc0_089 (__INTTAB_CPU0 + 0x1120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_137)); } + .inttab_tc0_08A (__INTTAB_CPU0 + 0x1140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_138)); } + .inttab_tc0_08B (__INTTAB_CPU0 + 0x1160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_139)); } + .inttab_tc0_08C (__INTTAB_CPU0 + 0x1180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_140)); } + .inttab_tc0_08D (__INTTAB_CPU0 + 0x11A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_141)); } + .inttab_tc0_08E (__INTTAB_CPU0 + 0x11C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_142)); } + .inttab_tc0_08F (__INTTAB_CPU0 + 0x11E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_143)); } + .inttab_tc0_090 (__INTTAB_CPU0 + 0x1200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_144)); } + .inttab_tc0_091 (__INTTAB_CPU0 + 0x1220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_145)); } + .inttab_tc0_092 (__INTTAB_CPU0 + 0x1240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_146)); } + .inttab_tc0_093 (__INTTAB_CPU0 + 0x1260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_147)); } + .inttab_tc0_094 (__INTTAB_CPU0 + 0x1280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_148)); } + .inttab_tc0_095 (__INTTAB_CPU0 + 0x12A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_149)); } + .inttab_tc0_096 (__INTTAB_CPU0 + 0x12C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_150)); } + .inttab_tc0_097 (__INTTAB_CPU0 + 0x12E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_151)); } + .inttab_tc0_098 (__INTTAB_CPU0 + 0x1300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_152)); } + .inttab_tc0_099 (__INTTAB_CPU0 + 0x1320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_153)); } + .inttab_tc0_09A (__INTTAB_CPU0 + 0x1340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_154)); } + .inttab_tc0_09B (__INTTAB_CPU0 + 0x1360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_155)); } + .inttab_tc0_09C (__INTTAB_CPU0 + 0x1380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_156)); } + .inttab_tc0_09D (__INTTAB_CPU0 + 0x13A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_157)); } + .inttab_tc0_09E (__INTTAB_CPU0 + 0x13C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_158)); } + .inttab_tc0_09F (__INTTAB_CPU0 + 0x13E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_159)); } + .inttab_tc0_0A0 (__INTTAB_CPU0 + 0x1400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_160)); } + .inttab_tc0_0A1 (__INTTAB_CPU0 + 0x1420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_161)); } + .inttab_tc0_0A2 (__INTTAB_CPU0 + 0x1440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_162)); } + .inttab_tc0_0A3 (__INTTAB_CPU0 + 0x1460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_163)); } + .inttab_tc0_0A4 (__INTTAB_CPU0 + 0x1480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_164)); } + .inttab_tc0_0A5 (__INTTAB_CPU0 + 0x14A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_165)); } + .inttab_tc0_0A6 (__INTTAB_CPU0 + 0x14C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_166)); } + .inttab_tc0_0A7 (__INTTAB_CPU0 + 0x14E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_167)); } + .inttab_tc0_0A8 (__INTTAB_CPU0 + 0x1500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_168)); } + .inttab_tc0_0A9 (__INTTAB_CPU0 + 0x1520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_169)); } + .inttab_tc0_0AA (__INTTAB_CPU0 + 0x1540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_170)); } + .inttab_tc0_0AB (__INTTAB_CPU0 + 0x1560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_171)); } + .inttab_tc0_0AC (__INTTAB_CPU0 + 0x1580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_172)); } + .inttab_tc0_0AD (__INTTAB_CPU0 + 0x15A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_173)); } + .inttab_tc0_0AE (__INTTAB_CPU0 + 0x15C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_174)); } + .inttab_tc0_0AF (__INTTAB_CPU0 + 0x15E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_175)); } + .inttab_tc0_0B0 (__INTTAB_CPU0 + 0x1600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_176)); } + .inttab_tc0_0B1 (__INTTAB_CPU0 + 0x1620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_177)); } + .inttab_tc0_0B2 (__INTTAB_CPU0 + 0x1640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_178)); } + .inttab_tc0_0B3 (__INTTAB_CPU0 + 0x1660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_179)); } + .inttab_tc0_0B4 (__INTTAB_CPU0 + 0x1680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_180)); } + .inttab_tc0_0B5 (__INTTAB_CPU0 + 0x16A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_181)); } + .inttab_tc0_0B6 (__INTTAB_CPU0 + 0x16C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_182)); } + .inttab_tc0_0B7 (__INTTAB_CPU0 + 0x16E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_183)); } + .inttab_tc0_0B8 (__INTTAB_CPU0 + 0x1700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_184)); } + .inttab_tc0_0B9 (__INTTAB_CPU0 + 0x1720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_185)); } + .inttab_tc0_0BA (__INTTAB_CPU0 + 0x1740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_186)); } + .inttab_tc0_0BB (__INTTAB_CPU0 + 0x1760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_187)); } + .inttab_tc0_0BC (__INTTAB_CPU0 + 0x1780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_188)); } + .inttab_tc0_0BD (__INTTAB_CPU0 + 0x17A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_189)); } + .inttab_tc0_0BE (__INTTAB_CPU0 + 0x17C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_190)); } + .inttab_tc0_0BF (__INTTAB_CPU0 + 0x17E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_191)); } + .inttab_tc0_0C0 (__INTTAB_CPU0 + 0x1800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_192)); } + .inttab_tc0_0C1 (__INTTAB_CPU0 + 0x1820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_193)); } + .inttab_tc0_0C2 (__INTTAB_CPU0 + 0x1840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_194)); } + .inttab_tc0_0C3 (__INTTAB_CPU0 + 0x1860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_195)); } + .inttab_tc0_0C4 (__INTTAB_CPU0 + 0x1880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_196)); } + .inttab_tc0_0C5 (__INTTAB_CPU0 + 0x18A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_197)); } + .inttab_tc0_0C6 (__INTTAB_CPU0 + 0x18C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_198)); } + .inttab_tc0_0C7 (__INTTAB_CPU0 + 0x18E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_199)); } + .inttab_tc0_0C8 (__INTTAB_CPU0 + 0x1900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_200)); } + .inttab_tc0_0C9 (__INTTAB_CPU0 + 0x1920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_201)); } + .inttab_tc0_0CA (__INTTAB_CPU0 + 0x1940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_202)); } + .inttab_tc0_0CB (__INTTAB_CPU0 + 0x1960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_203)); } + .inttab_tc0_0CC (__INTTAB_CPU0 + 0x1980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_204)); } + .inttab_tc0_0CD (__INTTAB_CPU0 + 0x19A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_205)); } + .inttab_tc0_0CE (__INTTAB_CPU0 + 0x19C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_206)); } + .inttab_tc0_0CF (__INTTAB_CPU0 + 0x19E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_207)); } + .inttab_tc0_0D0 (__INTTAB_CPU0 + 0x1A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_208)); } + .inttab_tc0_0D1 (__INTTAB_CPU0 + 0x1A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_209)); } + .inttab_tc0_0D2 (__INTTAB_CPU0 + 0x1A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_210)); } + .inttab_tc0_0D3 (__INTTAB_CPU0 + 0x1A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_211)); } + .inttab_tc0_0D4 (__INTTAB_CPU0 + 0x1A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_212)); } + .inttab_tc0_0D5 (__INTTAB_CPU0 + 0x1AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_213)); } + .inttab_tc0_0D6 (__INTTAB_CPU0 + 0x1AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_214)); } + .inttab_tc0_0D7 (__INTTAB_CPU0 + 0x1AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_215)); } + .inttab_tc0_0D8 (__INTTAB_CPU0 + 0x1B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_216)); } + .inttab_tc0_0D9 (__INTTAB_CPU0 + 0x1B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_217)); } + .inttab_tc0_0DA (__INTTAB_CPU0 + 0x1B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_218)); } + .inttab_tc0_0DB (__INTTAB_CPU0 + 0x1B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_219)); } + .inttab_tc0_0DC (__INTTAB_CPU0 + 0x1B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_220)); } + .inttab_tc0_0DD (__INTTAB_CPU0 + 0x1BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_221)); } + .inttab_tc0_0DE (__INTTAB_CPU0 + 0x1BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_222)); } + .inttab_tc0_0DF (__INTTAB_CPU0 + 0x1BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_223)); } + .inttab_tc0_0E0 (__INTTAB_CPU0 + 0x1C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_224)); } + .inttab_tc0_0E1 (__INTTAB_CPU0 + 0x1C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_225)); } + .inttab_tc0_0E2 (__INTTAB_CPU0 + 0x1C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_226)); } + .inttab_tc0_0E3 (__INTTAB_CPU0 + 0x1C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_227)); } + .inttab_tc0_0E4 (__INTTAB_CPU0 + 0x1C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_228)); } + .inttab_tc0_0E5 (__INTTAB_CPU0 + 0x1CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_229)); } + .inttab_tc0_0E6 (__INTTAB_CPU0 + 0x1CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_230)); } + .inttab_tc0_0E7 (__INTTAB_CPU0 + 0x1CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_231)); } + .inttab_tc0_0E8 (__INTTAB_CPU0 + 0x1D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_232)); } + .inttab_tc0_0E9 (__INTTAB_CPU0 + 0x1D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_233)); } + .inttab_tc0_0EA (__INTTAB_CPU0 + 0x1D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_234)); } + .inttab_tc0_0EB (__INTTAB_CPU0 + 0x1D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_235)); } + .inttab_tc0_0EC (__INTTAB_CPU0 + 0x1D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_236)); } + .inttab_tc0_0ED (__INTTAB_CPU0 + 0x1DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_237)); } + .inttab_tc0_0EE (__INTTAB_CPU0 + 0x1DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_238)); } + .inttab_tc0_0EF (__INTTAB_CPU0 + 0x1DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_239)); } + .inttab_tc0_0F0 (__INTTAB_CPU0 + 0x1E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_240)); } + .inttab_tc0_0F1 (__INTTAB_CPU0 + 0x1E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_241)); } + .inttab_tc0_0F2 (__INTTAB_CPU0 + 0x1E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_242)); } + .inttab_tc0_0F3 (__INTTAB_CPU0 + 0x1E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_243)); } + .inttab_tc0_0F4 (__INTTAB_CPU0 + 0x1E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_244)); } + .inttab_tc0_0F5 (__INTTAB_CPU0 + 0x1EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_245)); } + .inttab_tc0_0F6 (__INTTAB_CPU0 + 0x1EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_246)); } + .inttab_tc0_0F7 (__INTTAB_CPU0 + 0x1EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_247)); } + .inttab_tc0_0F8 (__INTTAB_CPU0 + 0x1F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_248)); } + .inttab_tc0_0F9 (__INTTAB_CPU0 + 0x1F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_249)); } + .inttab_tc0_0FA (__INTTAB_CPU0 + 0x1F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_250)); } + .inttab_tc0_0FB (__INTTAB_CPU0 + 0x1F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_251)); } + .inttab_tc0_0FC (__INTTAB_CPU0 + 0x1F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_252)); } + .inttab_tc0_0FD (__INTTAB_CPU0 + 0x1FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_253)); } + .inttab_tc0_0FE (__INTTAB_CPU0 + 0x1FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_254)); } + .inttab_tc0_0FF (__INTTAB_CPU0 + 0x1FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_255)); } + } + SECTIONS + { + /*CPU1 Interrupt Vector Table*/ + .inttab_tc1_000 (__INTTAB_CPU1 + 0x0000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_0 )); } + .inttab_tc1_001 (__INTTAB_CPU1 + 0x0020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_1 )); } + .inttab_tc1_002 (__INTTAB_CPU1 + 0x0040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_2 )); } + .inttab_tc1_003 (__INTTAB_CPU1 + 0x0060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_3 )); } + .inttab_tc1_004 (__INTTAB_CPU1 + 0x0080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_4 )); } + .inttab_tc1_005 (__INTTAB_CPU1 + 0x00A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_5 )); } + .inttab_tc1_006 (__INTTAB_CPU1 + 0x00C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_6 )); } + .inttab_tc1_007 (__INTTAB_CPU1 + 0x00E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_7 )); } + .inttab_tc1_008 (__INTTAB_CPU1 + 0x0100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_8 )); } + .inttab_tc1_009 (__INTTAB_CPU1 + 0x0120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_9 )); } + .inttab_tc1_00A (__INTTAB_CPU1 + 0x0140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_10 )); } + .inttab_tc1_00B (__INTTAB_CPU1 + 0x0160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_11 )); } + .inttab_tc1_00C (__INTTAB_CPU1 + 0x0180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_12 )); } + .inttab_tc1_00D (__INTTAB_CPU1 + 0x01A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_13 )); } + .inttab_tc1_00E (__INTTAB_CPU1 + 0x01C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_14 )); } + .inttab_tc1_00F (__INTTAB_CPU1 + 0x01E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_15 )); } + .inttab_tc1_010 (__INTTAB_CPU1 + 0x0200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_16 )); } + .inttab_tc1_011 (__INTTAB_CPU1 + 0x0220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_17 )); } + .inttab_tc1_012 (__INTTAB_CPU1 + 0x0240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_18 )); } + .inttab_tc1_013 (__INTTAB_CPU1 + 0x0260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_19 )); } + .inttab_tc1_014 (__INTTAB_CPU1 + 0x0280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_20 )); } + .inttab_tc1_015 (__INTTAB_CPU1 + 0x02A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_21 )); } + .inttab_tc1_016 (__INTTAB_CPU1 + 0x02C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_22 )); } + .inttab_tc1_017 (__INTTAB_CPU1 + 0x02E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_23 )); } + .inttab_tc1_018 (__INTTAB_CPU1 + 0x0300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_24 )); } + .inttab_tc1_019 (__INTTAB_CPU1 + 0x0320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_25 )); } + .inttab_tc1_01A (__INTTAB_CPU1 + 0x0340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_26 )); } + .inttab_tc1_01B (__INTTAB_CPU1 + 0x0360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_27 )); } + .inttab_tc1_01C (__INTTAB_CPU1 + 0x0380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_28 )); } + .inttab_tc1_01D (__INTTAB_CPU1 + 0x03A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_29 )); } + .inttab_tc1_01E (__INTTAB_CPU1 + 0x03C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_30 )); } + .inttab_tc1_01F (__INTTAB_CPU1 + 0x03E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_31 )); } + .inttab_tc1_020 (__INTTAB_CPU1 + 0x0400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_32 )); } + .inttab_tc1_021 (__INTTAB_CPU1 + 0x0420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_33 )); } + .inttab_tc1_022 (__INTTAB_CPU1 + 0x0440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_34 )); } + .inttab_tc1_023 (__INTTAB_CPU1 + 0x0460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_35 )); } + .inttab_tc1_024 (__INTTAB_CPU1 + 0x0480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_36 )); } + .inttab_tc1_025 (__INTTAB_CPU1 + 0x04A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_37 )); } + .inttab_tc1_026 (__INTTAB_CPU1 + 0x04C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_38 )); } + .inttab_tc1_027 (__INTTAB_CPU1 + 0x04E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_39 )); } + .inttab_tc1_028 (__INTTAB_CPU1 + 0x0500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_40 )); } + .inttab_tc1_029 (__INTTAB_CPU1 + 0x0520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_41 )); } + .inttab_tc1_02A (__INTTAB_CPU1 + 0x0540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_42 )); } + .inttab_tc1_02B (__INTTAB_CPU1 + 0x0560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_43 )); } + .inttab_tc1_02C (__INTTAB_CPU1 + 0x0580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_44 )); } + .inttab_tc1_02D (__INTTAB_CPU1 + 0x05A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_45 )); } + .inttab_tc1_02E (__INTTAB_CPU1 + 0x05C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_46 )); } + .inttab_tc1_02F (__INTTAB_CPU1 + 0x05E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_47 )); } + .inttab_tc1_030 (__INTTAB_CPU1 + 0x0600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_48 )); } + .inttab_tc1_031 (__INTTAB_CPU1 + 0x0620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_49 )); } + .inttab_tc1_032 (__INTTAB_CPU1 + 0x0640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_50 )); } + .inttab_tc1_033 (__INTTAB_CPU1 + 0x0660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_51 )); } + .inttab_tc1_034 (__INTTAB_CPU1 + 0x0680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_52 )); } + .inttab_tc1_035 (__INTTAB_CPU1 + 0x06A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_53 )); } + .inttab_tc1_036 (__INTTAB_CPU1 + 0x06C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_54 )); } + .inttab_tc1_037 (__INTTAB_CPU1 + 0x06E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_55 )); } + .inttab_tc1_038 (__INTTAB_CPU1 + 0x0700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_56 )); } + .inttab_tc1_039 (__INTTAB_CPU1 + 0x0720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_57 )); } + .inttab_tc1_03A (__INTTAB_CPU1 + 0x0740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_58 )); } + .inttab_tc1_03B (__INTTAB_CPU1 + 0x0760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_59 )); } + .inttab_tc1_03C (__INTTAB_CPU1 + 0x0780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_60 )); } + .inttab_tc1_03D (__INTTAB_CPU1 + 0x07A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_61 )); } + .inttab_tc1_03E (__INTTAB_CPU1 + 0x07C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_62 )); } + .inttab_tc1_03F (__INTTAB_CPU1 + 0x07E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_63 )); } + .inttab_tc1_040 (__INTTAB_CPU1 + 0x0800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_64 )); } + .inttab_tc1_041 (__INTTAB_CPU1 + 0x0820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_65 )); } + .inttab_tc1_042 (__INTTAB_CPU1 + 0x0840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_66 )); } + .inttab_tc1_043 (__INTTAB_CPU1 + 0x0860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_67 )); } + .inttab_tc1_044 (__INTTAB_CPU1 + 0x0880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_68 )); } + .inttab_tc1_045 (__INTTAB_CPU1 + 0x08A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_69 )); } + .inttab_tc1_046 (__INTTAB_CPU1 + 0x08C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_70 )); } + .inttab_tc1_047 (__INTTAB_CPU1 + 0x08E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_71 )); } + .inttab_tc1_048 (__INTTAB_CPU1 + 0x0900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_72 )); } + .inttab_tc1_049 (__INTTAB_CPU1 + 0x0920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_73 )); } + .inttab_tc1_04A (__INTTAB_CPU1 + 0x0940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_74 )); } + .inttab_tc1_04B (__INTTAB_CPU1 + 0x0960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_75 )); } + .inttab_tc1_04C (__INTTAB_CPU1 + 0x0980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_76 )); } + .inttab_tc1_04D (__INTTAB_CPU1 + 0x09A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_77 )); } + .inttab_tc1_04E (__INTTAB_CPU1 + 0x09C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_78 )); } + .inttab_tc1_04F (__INTTAB_CPU1 + 0x09E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_79 )); } + .inttab_tc1_050 (__INTTAB_CPU1 + 0x0A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_80 )); } + .inttab_tc1_051 (__INTTAB_CPU1 + 0x0A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_81 )); } + .inttab_tc1_052 (__INTTAB_CPU1 + 0x0A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_82 )); } + .inttab_tc1_053 (__INTTAB_CPU1 + 0x0A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_83 )); } + .inttab_tc1_054 (__INTTAB_CPU1 + 0x0A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_84 )); } + .inttab_tc1_055 (__INTTAB_CPU1 + 0x0AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_85 )); } + .inttab_tc1_056 (__INTTAB_CPU1 + 0x0AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_86 )); } + .inttab_tc1_057 (__INTTAB_CPU1 + 0x0AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_87 )); } + .inttab_tc1_058 (__INTTAB_CPU1 + 0x0B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_88 )); } + .inttab_tc1_059 (__INTTAB_CPU1 + 0x0B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_89 )); } + .inttab_tc1_05A (__INTTAB_CPU1 + 0x0B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_90 )); } + .inttab_tc1_05B (__INTTAB_CPU1 + 0x0B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_91 )); } + .inttab_tc1_05C (__INTTAB_CPU1 + 0x0B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_92 )); } + .inttab_tc1_05D (__INTTAB_CPU1 + 0x0BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_93 )); } + .inttab_tc1_05E (__INTTAB_CPU1 + 0x0BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_94 )); } + .inttab_tc1_05F (__INTTAB_CPU1 + 0x0BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_95 )); } + .inttab_tc1_060 (__INTTAB_CPU1 + 0x0C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_96 )); } + .inttab_tc1_061 (__INTTAB_CPU1 + 0x0C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_97 )); } + .inttab_tc1_062 (__INTTAB_CPU1 + 0x0C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_98 )); } + .inttab_tc1_063 (__INTTAB_CPU1 + 0x0C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_99 )); } + .inttab_tc1_064 (__INTTAB_CPU1 + 0x0C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_100)); } + .inttab_tc1_065 (__INTTAB_CPU1 + 0x0CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_101)); } + .inttab_tc1_066 (__INTTAB_CPU1 + 0x0CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_102)); } + .inttab_tc1_067 (__INTTAB_CPU1 + 0x0CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_103)); } + .inttab_tc1_068 (__INTTAB_CPU1 + 0x0D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_104)); } + .inttab_tc1_069 (__INTTAB_CPU1 + 0x0D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_105)); } + .inttab_tc1_06A (__INTTAB_CPU1 + 0x0D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_106)); } + .inttab_tc1_06B (__INTTAB_CPU1 + 0x0D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_107)); } + .inttab_tc1_06C (__INTTAB_CPU1 + 0x0D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_108)); } + .inttab_tc1_06D (__INTTAB_CPU1 + 0x0DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_109)); } + .inttab_tc1_06E (__INTTAB_CPU1 + 0x0DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_110)); } + .inttab_tc1_06F (__INTTAB_CPU1 + 0x0DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_111)); } + .inttab_tc1_070 (__INTTAB_CPU1 + 0x0E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_112)); } + .inttab_tc1_071 (__INTTAB_CPU1 + 0x0E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_113)); } + .inttab_tc1_072 (__INTTAB_CPU1 + 0x0E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_114)); } + .inttab_tc1_073 (__INTTAB_CPU1 + 0x0E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_115)); } + .inttab_tc1_074 (__INTTAB_CPU1 + 0x0E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_116)); } + .inttab_tc1_075 (__INTTAB_CPU1 + 0x0EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_117)); } + .inttab_tc1_076 (__INTTAB_CPU1 + 0x0EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_118)); } + .inttab_tc1_077 (__INTTAB_CPU1 + 0x0EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_119)); } + .inttab_tc1_078 (__INTTAB_CPU1 + 0x0F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_120)); } + .inttab_tc1_079 (__INTTAB_CPU1 + 0x0F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_121)); } + .inttab_tc1_07A (__INTTAB_CPU1 + 0x0F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_122)); } + .inttab_tc1_07B (__INTTAB_CPU1 + 0x0F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_123)); } + .inttab_tc1_07C (__INTTAB_CPU1 + 0x0F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_124)); } + .inttab_tc1_07D (__INTTAB_CPU1 + 0x0FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_125)); } + .inttab_tc1_07E (__INTTAB_CPU1 + 0x0FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_126)); } + .inttab_tc1_07F (__INTTAB_CPU1 + 0x0FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_127)); } + .inttab_tc1_080 (__INTTAB_CPU1 + 0x1000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_128)); } + .inttab_tc1_081 (__INTTAB_CPU1 + 0x1020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_129)); } + .inttab_tc1_082 (__INTTAB_CPU1 + 0x1040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_130)); } + .inttab_tc1_083 (__INTTAB_CPU1 + 0x1060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_131)); } + .inttab_tc1_084 (__INTTAB_CPU1 + 0x1080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_132)); } + .inttab_tc1_085 (__INTTAB_CPU1 + 0x10A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_133)); } + .inttab_tc1_086 (__INTTAB_CPU1 + 0x10C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_134)); } + .inttab_tc1_087 (__INTTAB_CPU1 + 0x10E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_135)); } + .inttab_tc1_088 (__INTTAB_CPU1 + 0x1100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_136)); } + .inttab_tc1_089 (__INTTAB_CPU1 + 0x1120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_137)); } + .inttab_tc1_08A (__INTTAB_CPU1 + 0x1140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_138)); } + .inttab_tc1_08B (__INTTAB_CPU1 + 0x1160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_139)); } + .inttab_tc1_08C (__INTTAB_CPU1 + 0x1180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_140)); } + .inttab_tc1_08D (__INTTAB_CPU1 + 0x11A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_141)); } + .inttab_tc1_08E (__INTTAB_CPU1 + 0x11C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_142)); } + .inttab_tc1_08F (__INTTAB_CPU1 + 0x11E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_143)); } + .inttab_tc1_090 (__INTTAB_CPU1 + 0x1200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_144)); } + .inttab_tc1_091 (__INTTAB_CPU1 + 0x1220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_145)); } + .inttab_tc1_092 (__INTTAB_CPU1 + 0x1240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_146)); } + .inttab_tc1_093 (__INTTAB_CPU1 + 0x1260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_147)); } + .inttab_tc1_094 (__INTTAB_CPU1 + 0x1280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_148)); } + .inttab_tc1_095 (__INTTAB_CPU1 + 0x12A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_149)); } + .inttab_tc1_096 (__INTTAB_CPU1 + 0x12C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_150)); } + .inttab_tc1_097 (__INTTAB_CPU1 + 0x12E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_151)); } + .inttab_tc1_098 (__INTTAB_CPU1 + 0x1300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_152)); } + .inttab_tc1_099 (__INTTAB_CPU1 + 0x1320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_153)); } + .inttab_tc1_09A (__INTTAB_CPU1 + 0x1340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_154)); } + .inttab_tc1_09B (__INTTAB_CPU1 + 0x1360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_155)); } + .inttab_tc1_09C (__INTTAB_CPU1 + 0x1380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_156)); } + .inttab_tc1_09D (__INTTAB_CPU1 + 0x13A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_157)); } + .inttab_tc1_09E (__INTTAB_CPU1 + 0x13C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_158)); } + .inttab_tc1_09F (__INTTAB_CPU1 + 0x13E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_159)); } + .inttab_tc1_0A0 (__INTTAB_CPU1 + 0x1400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_160)); } + .inttab_tc1_0A1 (__INTTAB_CPU1 + 0x1420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_161)); } + .inttab_tc1_0A2 (__INTTAB_CPU1 + 0x1440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_162)); } + .inttab_tc1_0A3 (__INTTAB_CPU1 + 0x1460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_163)); } + .inttab_tc1_0A4 (__INTTAB_CPU1 + 0x1480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_164)); } + .inttab_tc1_0A5 (__INTTAB_CPU1 + 0x14A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_165)); } + .inttab_tc1_0A6 (__INTTAB_CPU1 + 0x14C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_166)); } + .inttab_tc1_0A7 (__INTTAB_CPU1 + 0x14E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_167)); } + .inttab_tc1_0A8 (__INTTAB_CPU1 + 0x1500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_168)); } + .inttab_tc1_0A9 (__INTTAB_CPU1 + 0x1520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_169)); } + .inttab_tc1_0AA (__INTTAB_CPU1 + 0x1540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_170)); } + .inttab_tc1_0AB (__INTTAB_CPU1 + 0x1560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_171)); } + .inttab_tc1_0AC (__INTTAB_CPU1 + 0x1580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_172)); } + .inttab_tc1_0AD (__INTTAB_CPU1 + 0x15A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_173)); } + .inttab_tc1_0AE (__INTTAB_CPU1 + 0x15C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_174)); } + .inttab_tc1_0AF (__INTTAB_CPU1 + 0x15E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_175)); } + .inttab_tc1_0B0 (__INTTAB_CPU1 + 0x1600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_176)); } + .inttab_tc1_0B1 (__INTTAB_CPU1 + 0x1620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_177)); } + .inttab_tc1_0B2 (__INTTAB_CPU1 + 0x1640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_178)); } + .inttab_tc1_0B3 (__INTTAB_CPU1 + 0x1660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_179)); } + .inttab_tc1_0B4 (__INTTAB_CPU1 + 0x1680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_180)); } + .inttab_tc1_0B5 (__INTTAB_CPU1 + 0x16A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_181)); } + .inttab_tc1_0B6 (__INTTAB_CPU1 + 0x16C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_182)); } + .inttab_tc1_0B7 (__INTTAB_CPU1 + 0x16E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_183)); } + .inttab_tc1_0B8 (__INTTAB_CPU1 + 0x1700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_184)); } + .inttab_tc1_0B9 (__INTTAB_CPU1 + 0x1720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_185)); } + .inttab_tc1_0BA (__INTTAB_CPU1 + 0x1740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_186)); } + .inttab_tc1_0BB (__INTTAB_CPU1 + 0x1760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_187)); } + .inttab_tc1_0BC (__INTTAB_CPU1 + 0x1780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_188)); } + .inttab_tc1_0BD (__INTTAB_CPU1 + 0x17A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_189)); } + .inttab_tc1_0BE (__INTTAB_CPU1 + 0x17C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_190)); } + .inttab_tc1_0BF (__INTTAB_CPU1 + 0x17E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_191)); } + .inttab_tc1_0C0 (__INTTAB_CPU1 + 0x1800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_192)); } + .inttab_tc1_0C1 (__INTTAB_CPU1 + 0x1820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_193)); } + .inttab_tc1_0C2 (__INTTAB_CPU1 + 0x1840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_194)); } + .inttab_tc1_0C3 (__INTTAB_CPU1 + 0x1860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_195)); } + .inttab_tc1_0C4 (__INTTAB_CPU1 + 0x1880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_196)); } + .inttab_tc1_0C5 (__INTTAB_CPU1 + 0x18A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_197)); } + .inttab_tc1_0C6 (__INTTAB_CPU1 + 0x18C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_198)); } + .inttab_tc1_0C7 (__INTTAB_CPU1 + 0x18E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_199)); } + .inttab_tc1_0C8 (__INTTAB_CPU1 + 0x1900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_200)); } + .inttab_tc1_0C9 (__INTTAB_CPU1 + 0x1920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_201)); } + .inttab_tc1_0CA (__INTTAB_CPU1 + 0x1940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_202)); } + .inttab_tc1_0CB (__INTTAB_CPU1 + 0x1960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_203)); } + .inttab_tc1_0CC (__INTTAB_CPU1 + 0x1980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_204)); } + .inttab_tc1_0CD (__INTTAB_CPU1 + 0x19A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_205)); } + .inttab_tc1_0CE (__INTTAB_CPU1 + 0x19C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_206)); } + .inttab_tc1_0CF (__INTTAB_CPU1 + 0x19E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_207)); } + .inttab_tc1_0D0 (__INTTAB_CPU1 + 0x1A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_208)); } + .inttab_tc1_0D1 (__INTTAB_CPU1 + 0x1A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_209)); } + .inttab_tc1_0D2 (__INTTAB_CPU1 + 0x1A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_210)); } + .inttab_tc1_0D3 (__INTTAB_CPU1 + 0x1A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_211)); } + .inttab_tc1_0D4 (__INTTAB_CPU1 + 0x1A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_212)); } + .inttab_tc1_0D5 (__INTTAB_CPU1 + 0x1AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_213)); } + .inttab_tc1_0D6 (__INTTAB_CPU1 + 0x1AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_214)); } + .inttab_tc1_0D7 (__INTTAB_CPU1 + 0x1AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_215)); } + .inttab_tc1_0D8 (__INTTAB_CPU1 + 0x1B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_216)); } + .inttab_tc1_0D9 (__INTTAB_CPU1 + 0x1B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_217)); } + .inttab_tc1_0DA (__INTTAB_CPU1 + 0x1B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_218)); } + .inttab_tc1_0DB (__INTTAB_CPU1 + 0x1B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_219)); } + .inttab_tc1_0DC (__INTTAB_CPU1 + 0x1B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_220)); } + .inttab_tc1_0DD (__INTTAB_CPU1 + 0x1BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_221)); } + .inttab_tc1_0DE (__INTTAB_CPU1 + 0x1BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_222)); } + .inttab_tc1_0DF (__INTTAB_CPU1 + 0x1BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_223)); } + .inttab_tc1_0E0 (__INTTAB_CPU1 + 0x1C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_224)); } + .inttab_tc1_0E1 (__INTTAB_CPU1 + 0x1C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_225)); } + .inttab_tc1_0E2 (__INTTAB_CPU1 + 0x1C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_226)); } + .inttab_tc1_0E3 (__INTTAB_CPU1 + 0x1C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_227)); } + .inttab_tc1_0E4 (__INTTAB_CPU1 + 0x1C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_228)); } + .inttab_tc1_0E5 (__INTTAB_CPU1 + 0x1CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_229)); } + .inttab_tc1_0E6 (__INTTAB_CPU1 + 0x1CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_230)); } + .inttab_tc1_0E7 (__INTTAB_CPU1 + 0x1CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_231)); } + .inttab_tc1_0E8 (__INTTAB_CPU1 + 0x1D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_232)); } + .inttab_tc1_0E9 (__INTTAB_CPU1 + 0x1D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_233)); } + .inttab_tc1_0EA (__INTTAB_CPU1 + 0x1D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_234)); } + .inttab_tc1_0EB (__INTTAB_CPU1 + 0x1D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_235)); } + .inttab_tc1_0EC (__INTTAB_CPU1 + 0x1D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_236)); } + .inttab_tc1_0ED (__INTTAB_CPU1 + 0x1DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_237)); } + .inttab_tc1_0EE (__INTTAB_CPU1 + 0x1DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_238)); } + .inttab_tc1_0EF (__INTTAB_CPU1 + 0x1DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_239)); } + .inttab_tc1_0F0 (__INTTAB_CPU1 + 0x1E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_240)); } + .inttab_tc1_0F1 (__INTTAB_CPU1 + 0x1E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_241)); } + .inttab_tc1_0F2 (__INTTAB_CPU1 + 0x1E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_242)); } + .inttab_tc1_0F3 (__INTTAB_CPU1 + 0x1E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_243)); } + .inttab_tc1_0F4 (__INTTAB_CPU1 + 0x1E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_244)); } + .inttab_tc1_0F5 (__INTTAB_CPU1 + 0x1EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_245)); } + .inttab_tc1_0F6 (__INTTAB_CPU1 + 0x1EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_246)); } + .inttab_tc1_0F7 (__INTTAB_CPU1 + 0x1EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_247)); } + .inttab_tc1_0F8 (__INTTAB_CPU1 + 0x1F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_248)); } + .inttab_tc1_0F9 (__INTTAB_CPU1 + 0x1F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_249)); } + .inttab_tc1_0FA (__INTTAB_CPU1 + 0x1F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_250)); } + .inttab_tc1_0FB (__INTTAB_CPU1 + 0x1F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_251)); } + .inttab_tc1_0FC (__INTTAB_CPU1 + 0x1F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_252)); } + .inttab_tc1_0FD (__INTTAB_CPU1 + 0x1FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_253)); } + .inttab_tc1_0FE (__INTTAB_CPU1 + 0x1FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_254)); } + .inttab_tc1_0FF (__INTTAB_CPU1 + 0x1FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_255)); } + } + SECTIONS + { + /*CPU2 Interrupt Vector Table*/ + .inttab_tc2_000 (__INTTAB_CPU2 + 0x0000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_0 )); } + .inttab_tc2_001 (__INTTAB_CPU2 + 0x0020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_1 )); } + .inttab_tc2_002 (__INTTAB_CPU2 + 0x0040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_2 )); } + .inttab_tc2_003 (__INTTAB_CPU2 + 0x0060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_3 )); } + .inttab_tc2_004 (__INTTAB_CPU2 + 0x0080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_4 )); } + .inttab_tc2_005 (__INTTAB_CPU2 + 0x00A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_5 )); } + .inttab_tc2_006 (__INTTAB_CPU2 + 0x00C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_6 )); } + .inttab_tc2_007 (__INTTAB_CPU2 + 0x00E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_7 )); } + .inttab_tc2_008 (__INTTAB_CPU2 + 0x0100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_8 )); } + .inttab_tc2_009 (__INTTAB_CPU2 + 0x0120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_9 )); } + .inttab_tc2_00A (__INTTAB_CPU2 + 0x0140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_10 )); } + .inttab_tc2_00B (__INTTAB_CPU2 + 0x0160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_11 )); } + .inttab_tc2_00C (__INTTAB_CPU2 + 0x0180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_12 )); } + .inttab_tc2_00D (__INTTAB_CPU2 + 0x01A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_13 )); } + .inttab_tc2_00E (__INTTAB_CPU2 + 0x01C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_14 )); } + .inttab_tc2_00F (__INTTAB_CPU2 + 0x01E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_15 )); } + .inttab_tc2_010 (__INTTAB_CPU2 + 0x0200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_16 )); } + .inttab_tc2_011 (__INTTAB_CPU2 + 0x0220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_17 )); } + .inttab_tc2_012 (__INTTAB_CPU2 + 0x0240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_18 )); } + .inttab_tc2_013 (__INTTAB_CPU2 + 0x0260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_19 )); } + .inttab_tc2_014 (__INTTAB_CPU2 + 0x0280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_20 )); } + .inttab_tc2_015 (__INTTAB_CPU2 + 0x02A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_21 )); } + .inttab_tc2_016 (__INTTAB_CPU2 + 0x02C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_22 )); } + .inttab_tc2_017 (__INTTAB_CPU2 + 0x02E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_23 )); } + .inttab_tc2_018 (__INTTAB_CPU2 + 0x0300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_24 )); } + .inttab_tc2_019 (__INTTAB_CPU2 + 0x0320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_25 )); } + .inttab_tc2_01A (__INTTAB_CPU2 + 0x0340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_26 )); } + .inttab_tc2_01B (__INTTAB_CPU2 + 0x0360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_27 )); } + .inttab_tc2_01C (__INTTAB_CPU2 + 0x0380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_28 )); } + .inttab_tc2_01D (__INTTAB_CPU2 + 0x03A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_29 )); } + .inttab_tc2_01E (__INTTAB_CPU2 + 0x03C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_30 )); } + .inttab_tc2_01F (__INTTAB_CPU2 + 0x03E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_31 )); } + .inttab_tc2_020 (__INTTAB_CPU2 + 0x0400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_32 )); } + .inttab_tc2_021 (__INTTAB_CPU2 + 0x0420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_33 )); } + .inttab_tc2_022 (__INTTAB_CPU2 + 0x0440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_34 )); } + .inttab_tc2_023 (__INTTAB_CPU2 + 0x0460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_35 )); } + .inttab_tc2_024 (__INTTAB_CPU2 + 0x0480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_36 )); } + .inttab_tc2_025 (__INTTAB_CPU2 + 0x04A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_37 )); } + .inttab_tc2_026 (__INTTAB_CPU2 + 0x04C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_38 )); } + .inttab_tc2_027 (__INTTAB_CPU2 + 0x04E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_39 )); } + .inttab_tc2_028 (__INTTAB_CPU2 + 0x0500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_40 )); } + .inttab_tc2_029 (__INTTAB_CPU2 + 0x0520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_41 )); } + .inttab_tc2_02A (__INTTAB_CPU2 + 0x0540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_42 )); } + .inttab_tc2_02B (__INTTAB_CPU2 + 0x0560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_43 )); } + .inttab_tc2_02C (__INTTAB_CPU2 + 0x0580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_44 )); } + .inttab_tc2_02D (__INTTAB_CPU2 + 0x05A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_45 )); } + .inttab_tc2_02E (__INTTAB_CPU2 + 0x05C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_46 )); } + .inttab_tc2_02F (__INTTAB_CPU2 + 0x05E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_47 )); } + .inttab_tc2_030 (__INTTAB_CPU2 + 0x0600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_48 )); } + .inttab_tc2_031 (__INTTAB_CPU2 + 0x0620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_49 )); } + .inttab_tc2_032 (__INTTAB_CPU2 + 0x0640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_50 )); } + .inttab_tc2_033 (__INTTAB_CPU2 + 0x0660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_51 )); } + .inttab_tc2_034 (__INTTAB_CPU2 + 0x0680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_52 )); } + .inttab_tc2_035 (__INTTAB_CPU2 + 0x06A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_53 )); } + .inttab_tc2_036 (__INTTAB_CPU2 + 0x06C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_54 )); } + .inttab_tc2_037 (__INTTAB_CPU2 + 0x06E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_55 )); } + .inttab_tc2_038 (__INTTAB_CPU2 + 0x0700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_56 )); } + .inttab_tc2_039 (__INTTAB_CPU2 + 0x0720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_57 )); } + .inttab_tc2_03A (__INTTAB_CPU2 + 0x0740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_58 )); } + .inttab_tc2_03B (__INTTAB_CPU2 + 0x0760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_59 )); } + .inttab_tc2_03C (__INTTAB_CPU2 + 0x0780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_60 )); } + .inttab_tc2_03D (__INTTAB_CPU2 + 0x07A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_61 )); } + .inttab_tc2_03E (__INTTAB_CPU2 + 0x07C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_62 )); } + .inttab_tc2_03F (__INTTAB_CPU2 + 0x07E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_63 )); } + .inttab_tc2_040 (__INTTAB_CPU2 + 0x0800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_64 )); } + .inttab_tc2_041 (__INTTAB_CPU2 + 0x0820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_65 )); } + .inttab_tc2_042 (__INTTAB_CPU2 + 0x0840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_66 )); } + .inttab_tc2_043 (__INTTAB_CPU2 + 0x0860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_67 )); } + .inttab_tc2_044 (__INTTAB_CPU2 + 0x0880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_68 )); } + .inttab_tc2_045 (__INTTAB_CPU2 + 0x08A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_69 )); } + .inttab_tc2_046 (__INTTAB_CPU2 + 0x08C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_70 )); } + .inttab_tc2_047 (__INTTAB_CPU2 + 0x08E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_71 )); } + .inttab_tc2_048 (__INTTAB_CPU2 + 0x0900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_72 )); } + .inttab_tc2_049 (__INTTAB_CPU2 + 0x0920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_73 )); } + .inttab_tc2_04A (__INTTAB_CPU2 + 0x0940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_74 )); } + .inttab_tc2_04B (__INTTAB_CPU2 + 0x0960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_75 )); } + .inttab_tc2_04C (__INTTAB_CPU2 + 0x0980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_76 )); } + .inttab_tc2_04D (__INTTAB_CPU2 + 0x09A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_77 )); } + .inttab_tc2_04E (__INTTAB_CPU2 + 0x09C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_78 )); } + .inttab_tc2_04F (__INTTAB_CPU2 + 0x09E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_79 )); } + .inttab_tc2_050 (__INTTAB_CPU2 + 0x0A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_80 )); } + .inttab_tc2_051 (__INTTAB_CPU2 + 0x0A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_81 )); } + .inttab_tc2_052 (__INTTAB_CPU2 + 0x0A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_82 )); } + .inttab_tc2_053 (__INTTAB_CPU2 + 0x0A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_83 )); } + .inttab_tc2_054 (__INTTAB_CPU2 + 0x0A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_84 )); } + .inttab_tc2_055 (__INTTAB_CPU2 + 0x0AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_85 )); } + .inttab_tc2_056 (__INTTAB_CPU2 + 0x0AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_86 )); } + .inttab_tc2_057 (__INTTAB_CPU2 + 0x0AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_87 )); } + .inttab_tc2_058 (__INTTAB_CPU2 + 0x0B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_88 )); } + .inttab_tc2_059 (__INTTAB_CPU2 + 0x0B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_89 )); } + .inttab_tc2_05A (__INTTAB_CPU2 + 0x0B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_90 )); } + .inttab_tc2_05B (__INTTAB_CPU2 + 0x0B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_91 )); } + .inttab_tc2_05C (__INTTAB_CPU2 + 0x0B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_92 )); } + .inttab_tc2_05D (__INTTAB_CPU2 + 0x0BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_93 )); } + .inttab_tc2_05E (__INTTAB_CPU2 + 0x0BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_94 )); } + .inttab_tc2_05F (__INTTAB_CPU2 + 0x0BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_95 )); } + .inttab_tc2_060 (__INTTAB_CPU2 + 0x0C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_96 )); } + .inttab_tc2_061 (__INTTAB_CPU2 + 0x0C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_97 )); } + .inttab_tc2_062 (__INTTAB_CPU2 + 0x0C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_98 )); } + .inttab_tc2_063 (__INTTAB_CPU2 + 0x0C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_99 )); } + .inttab_tc2_064 (__INTTAB_CPU2 + 0x0C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_100)); } + .inttab_tc2_065 (__INTTAB_CPU2 + 0x0CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_101)); } + .inttab_tc2_066 (__INTTAB_CPU2 + 0x0CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_102)); } + .inttab_tc2_067 (__INTTAB_CPU2 + 0x0CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_103)); } + .inttab_tc2_068 (__INTTAB_CPU2 + 0x0D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_104)); } + .inttab_tc2_069 (__INTTAB_CPU2 + 0x0D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_105)); } + .inttab_tc2_06A (__INTTAB_CPU2 + 0x0D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_106)); } + .inttab_tc2_06B (__INTTAB_CPU2 + 0x0D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_107)); } + .inttab_tc2_06C (__INTTAB_CPU2 + 0x0D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_108)); } + .inttab_tc2_06D (__INTTAB_CPU2 + 0x0DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_109)); } + .inttab_tc2_06E (__INTTAB_CPU2 + 0x0DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_110)); } + .inttab_tc2_06F (__INTTAB_CPU2 + 0x0DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_111)); } + .inttab_tc2_070 (__INTTAB_CPU2 + 0x0E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_112)); } + .inttab_tc2_071 (__INTTAB_CPU2 + 0x0E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_113)); } + .inttab_tc2_072 (__INTTAB_CPU2 + 0x0E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_114)); } + .inttab_tc2_073 (__INTTAB_CPU2 + 0x0E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_115)); } + .inttab_tc2_074 (__INTTAB_CPU2 + 0x0E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_116)); } + .inttab_tc2_075 (__INTTAB_CPU2 + 0x0EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_117)); } + .inttab_tc2_076 (__INTTAB_CPU2 + 0x0EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_118)); } + .inttab_tc2_077 (__INTTAB_CPU2 + 0x0EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_119)); } + .inttab_tc2_078 (__INTTAB_CPU2 + 0x0F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_120)); } + .inttab_tc2_079 (__INTTAB_CPU2 + 0x0F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_121)); } + .inttab_tc2_07A (__INTTAB_CPU2 + 0x0F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_122)); } + .inttab_tc2_07B (__INTTAB_CPU2 + 0x0F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_123)); } + .inttab_tc2_07C (__INTTAB_CPU2 + 0x0F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_124)); } + .inttab_tc2_07D (__INTTAB_CPU2 + 0x0FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_125)); } + .inttab_tc2_07E (__INTTAB_CPU2 + 0x0FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_126)); } + .inttab_tc2_07F (__INTTAB_CPU2 + 0x0FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_127)); } + .inttab_tc2_080 (__INTTAB_CPU2 + 0x1000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_128)); } + .inttab_tc2_081 (__INTTAB_CPU2 + 0x1020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_129)); } + .inttab_tc2_082 (__INTTAB_CPU2 + 0x1040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_130)); } + .inttab_tc2_083 (__INTTAB_CPU2 + 0x1060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_131)); } + .inttab_tc2_084 (__INTTAB_CPU2 + 0x1080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_132)); } + .inttab_tc2_085 (__INTTAB_CPU2 + 0x10A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_133)); } + .inttab_tc2_086 (__INTTAB_CPU2 + 0x10C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_134)); } + .inttab_tc2_087 (__INTTAB_CPU2 + 0x10E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_135)); } + .inttab_tc2_088 (__INTTAB_CPU2 + 0x1100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_136)); } + .inttab_tc2_089 (__INTTAB_CPU2 + 0x1120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_137)); } + .inttab_tc2_08A (__INTTAB_CPU2 + 0x1140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_138)); } + .inttab_tc2_08B (__INTTAB_CPU2 + 0x1160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_139)); } + .inttab_tc2_08C (__INTTAB_CPU2 + 0x1180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_140)); } + .inttab_tc2_08D (__INTTAB_CPU2 + 0x11A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_141)); } + .inttab_tc2_08E (__INTTAB_CPU2 + 0x11C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_142)); } + .inttab_tc2_08F (__INTTAB_CPU2 + 0x11E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_143)); } + .inttab_tc2_090 (__INTTAB_CPU2 + 0x1200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_144)); } + .inttab_tc2_091 (__INTTAB_CPU2 + 0x1220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_145)); } + .inttab_tc2_092 (__INTTAB_CPU2 + 0x1240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_146)); } + .inttab_tc2_093 (__INTTAB_CPU2 + 0x1260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_147)); } + .inttab_tc2_094 (__INTTAB_CPU2 + 0x1280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_148)); } + .inttab_tc2_095 (__INTTAB_CPU2 + 0x12A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_149)); } + .inttab_tc2_096 (__INTTAB_CPU2 + 0x12C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_150)); } + .inttab_tc2_097 (__INTTAB_CPU2 + 0x12E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_151)); } + .inttab_tc2_098 (__INTTAB_CPU2 + 0x1300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_152)); } + .inttab_tc2_099 (__INTTAB_CPU2 + 0x1320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_153)); } + .inttab_tc2_09A (__INTTAB_CPU2 + 0x1340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_154)); } + .inttab_tc2_09B (__INTTAB_CPU2 + 0x1360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_155)); } + .inttab_tc2_09C (__INTTAB_CPU2 + 0x1380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_156)); } + .inttab_tc2_09D (__INTTAB_CPU2 + 0x13A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_157)); } + .inttab_tc2_09E (__INTTAB_CPU2 + 0x13C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_158)); } + .inttab_tc2_09F (__INTTAB_CPU2 + 0x13E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_159)); } + .inttab_tc2_0A0 (__INTTAB_CPU2 + 0x1400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_160)); } + .inttab_tc2_0A1 (__INTTAB_CPU2 + 0x1420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_161)); } + .inttab_tc2_0A2 (__INTTAB_CPU2 + 0x1440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_162)); } + .inttab_tc2_0A3 (__INTTAB_CPU2 + 0x1460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_163)); } + .inttab_tc2_0A4 (__INTTAB_CPU2 + 0x1480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_164)); } + .inttab_tc2_0A5 (__INTTAB_CPU2 + 0x14A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_165)); } + .inttab_tc2_0A6 (__INTTAB_CPU2 + 0x14C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_166)); } + .inttab_tc2_0A7 (__INTTAB_CPU2 + 0x14E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_167)); } + .inttab_tc2_0A8 (__INTTAB_CPU2 + 0x1500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_168)); } + .inttab_tc2_0A9 (__INTTAB_CPU2 + 0x1520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_169)); } + .inttab_tc2_0AA (__INTTAB_CPU2 + 0x1540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_170)); } + .inttab_tc2_0AB (__INTTAB_CPU2 + 0x1560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_171)); } + .inttab_tc2_0AC (__INTTAB_CPU2 + 0x1580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_172)); } + .inttab_tc2_0AD (__INTTAB_CPU2 + 0x15A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_173)); } + .inttab_tc2_0AE (__INTTAB_CPU2 + 0x15C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_174)); } + .inttab_tc2_0AF (__INTTAB_CPU2 + 0x15E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_175)); } + .inttab_tc2_0B0 (__INTTAB_CPU2 + 0x1600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_176)); } + .inttab_tc2_0B1 (__INTTAB_CPU2 + 0x1620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_177)); } + .inttab_tc2_0B2 (__INTTAB_CPU2 + 0x1640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_178)); } + .inttab_tc2_0B3 (__INTTAB_CPU2 + 0x1660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_179)); } + .inttab_tc2_0B4 (__INTTAB_CPU2 + 0x1680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_180)); } + .inttab_tc2_0B5 (__INTTAB_CPU2 + 0x16A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_181)); } + .inttab_tc2_0B6 (__INTTAB_CPU2 + 0x16C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_182)); } + .inttab_tc2_0B7 (__INTTAB_CPU2 + 0x16E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_183)); } + .inttab_tc2_0B8 (__INTTAB_CPU2 + 0x1700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_184)); } + .inttab_tc2_0B9 (__INTTAB_CPU2 + 0x1720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_185)); } + .inttab_tc2_0BA (__INTTAB_CPU2 + 0x1740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_186)); } + .inttab_tc2_0BB (__INTTAB_CPU2 + 0x1760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_187)); } + .inttab_tc2_0BC (__INTTAB_CPU2 + 0x1780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_188)); } + .inttab_tc2_0BD (__INTTAB_CPU2 + 0x17A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_189)); } + .inttab_tc2_0BE (__INTTAB_CPU2 + 0x17C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_190)); } + .inttab_tc2_0BF (__INTTAB_CPU2 + 0x17E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_191)); } + .inttab_tc2_0C0 (__INTTAB_CPU2 + 0x1800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_192)); } + .inttab_tc2_0C1 (__INTTAB_CPU2 + 0x1820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_193)); } + .inttab_tc2_0C2 (__INTTAB_CPU2 + 0x1840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_194)); } + .inttab_tc2_0C3 (__INTTAB_CPU2 + 0x1860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_195)); } + .inttab_tc2_0C4 (__INTTAB_CPU2 + 0x1880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_196)); } + .inttab_tc2_0C5 (__INTTAB_CPU2 + 0x18A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_197)); } + .inttab_tc2_0C6 (__INTTAB_CPU2 + 0x18C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_198)); } + .inttab_tc2_0C7 (__INTTAB_CPU2 + 0x18E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_199)); } + .inttab_tc2_0C8 (__INTTAB_CPU2 + 0x1900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_200)); } + .inttab_tc2_0C9 (__INTTAB_CPU2 + 0x1920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_201)); } + .inttab_tc2_0CA (__INTTAB_CPU2 + 0x1940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_202)); } + .inttab_tc2_0CB (__INTTAB_CPU2 + 0x1960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_203)); } + .inttab_tc2_0CC (__INTTAB_CPU2 + 0x1980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_204)); } + .inttab_tc2_0CD (__INTTAB_CPU2 + 0x19A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_205)); } + .inttab_tc2_0CE (__INTTAB_CPU2 + 0x19C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_206)); } + .inttab_tc2_0CF (__INTTAB_CPU2 + 0x19E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_207)); } + .inttab_tc2_0D0 (__INTTAB_CPU2 + 0x1A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_208)); } + .inttab_tc2_0D1 (__INTTAB_CPU2 + 0x1A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_209)); } + .inttab_tc2_0D2 (__INTTAB_CPU2 + 0x1A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_210)); } + .inttab_tc2_0D3 (__INTTAB_CPU2 + 0x1A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_211)); } + .inttab_tc2_0D4 (__INTTAB_CPU2 + 0x1A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_212)); } + .inttab_tc2_0D5 (__INTTAB_CPU2 + 0x1AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_213)); } + .inttab_tc2_0D6 (__INTTAB_CPU2 + 0x1AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_214)); } + .inttab_tc2_0D7 (__INTTAB_CPU2 + 0x1AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_215)); } + .inttab_tc2_0D8 (__INTTAB_CPU2 + 0x1B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_216)); } + .inttab_tc2_0D9 (__INTTAB_CPU2 + 0x1B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_217)); } + .inttab_tc2_0DA (__INTTAB_CPU2 + 0x1B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_218)); } + .inttab_tc2_0DB (__INTTAB_CPU2 + 0x1B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_219)); } + .inttab_tc2_0DC (__INTTAB_CPU2 + 0x1B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_220)); } + .inttab_tc2_0DD (__INTTAB_CPU2 + 0x1BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_221)); } + .inttab_tc2_0DE (__INTTAB_CPU2 + 0x1BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_222)); } + .inttab_tc2_0DF (__INTTAB_CPU2 + 0x1BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_223)); } + .inttab_tc2_0E0 (__INTTAB_CPU2 + 0x1C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_224)); } + .inttab_tc2_0E1 (__INTTAB_CPU2 + 0x1C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_225)); } + .inttab_tc2_0E2 (__INTTAB_CPU2 + 0x1C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_226)); } + .inttab_tc2_0E3 (__INTTAB_CPU2 + 0x1C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_227)); } + .inttab_tc2_0E4 (__INTTAB_CPU2 + 0x1C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_228)); } + .inttab_tc2_0E5 (__INTTAB_CPU2 + 0x1CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_229)); } + .inttab_tc2_0E6 (__INTTAB_CPU2 + 0x1CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_230)); } + .inttab_tc2_0E7 (__INTTAB_CPU2 + 0x1CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_231)); } + .inttab_tc2_0E8 (__INTTAB_CPU2 + 0x1D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_232)); } + .inttab_tc2_0E9 (__INTTAB_CPU2 + 0x1D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_233)); } + .inttab_tc2_0EA (__INTTAB_CPU2 + 0x1D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_234)); } + .inttab_tc2_0EB (__INTTAB_CPU2 + 0x1D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_235)); } + .inttab_tc2_0EC (__INTTAB_CPU2 + 0x1D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_236)); } + .inttab_tc2_0ED (__INTTAB_CPU2 + 0x1DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_237)); } + .inttab_tc2_0EE (__INTTAB_CPU2 + 0x1DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_238)); } + .inttab_tc2_0EF (__INTTAB_CPU2 + 0x1DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_239)); } + .inttab_tc2_0F0 (__INTTAB_CPU2 + 0x1E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_240)); } + .inttab_tc2_0F1 (__INTTAB_CPU2 + 0x1E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_241)); } + .inttab_tc2_0F2 (__INTTAB_CPU2 + 0x1E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_242)); } + .inttab_tc2_0F3 (__INTTAB_CPU2 + 0x1E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_243)); } + .inttab_tc2_0F4 (__INTTAB_CPU2 + 0x1E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_244)); } + .inttab_tc2_0F5 (__INTTAB_CPU2 + 0x1EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_245)); } + .inttab_tc2_0F6 (__INTTAB_CPU2 + 0x1EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_246)); } + .inttab_tc2_0F7 (__INTTAB_CPU2 + 0x1EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_247)); } + .inttab_tc2_0F8 (__INTTAB_CPU2 + 0x1F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_248)); } + .inttab_tc2_0F9 (__INTTAB_CPU2 + 0x1F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_249)); } + .inttab_tc2_0FA (__INTTAB_CPU2 + 0x1F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_250)); } + .inttab_tc2_0FB (__INTTAB_CPU2 + 0x1F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_251)); } + .inttab_tc2_0FC (__INTTAB_CPU2 + 0x1F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_252)); } + .inttab_tc2_0FD (__INTTAB_CPU2 + 0x1FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_253)); } + .inttab_tc2_0FE (__INTTAB_CPU2 + 0x1FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_254)); } + .inttab_tc2_0FF (__INTTAB_CPU2 + 0x1FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_255)); } + } + + /*Fixed memory Allocations for BMHD*/ + CORE_ID = GLOBAL; + SECTIONS + { + .bmhd_0_org (0xaf400000) : FLAGS(arl) { KEEP (*(.bmhd_0_orig)); } > ucb + .bmhd_1_org (0xaf400200) : FLAGS(arl) { KEEP (*(.bmhd_1_orig)); } > ucb + .bmhd_2_org (0xaf400400) : FLAGS(arl) { KEEP (*(.bmhd_2_orig)); } > ucb + .bmhd_3_org (0xaf400600) : FLAGS(arl) { KEEP (*(.bmhd_3_orig)); } > ucb + .ucb_reserved (0xaf400800) : FLAGS(arl) { } > ucb + .bmhd_0_copy (0xaf401000) : FLAGS(arl) { KEEP (*(.bmhd_0_copy)); } > ucb + .bmhd_1_copy (0xaf401200) : FLAGS(arl) { KEEP (*(.bmhd_1_copy)); } > ucb + .bmhd_2_copy (0xaf401400) : FLAGS(arl) { KEEP (*(.bmhd_2_copy)); } > ucb + .bmhd_3_copy (0xaf401600) : FLAGS(arl) { KEEP (*(.bmhd_3_copy)); } > ucb + } + + /*Near Abbsolute Addressable Data Sections*/ + /*Near Absolute Data, selectable with patterns and user defined sections*/ + CORE_ID = CPU2; + SECTIONS + { + CORE_SEC(.zdata) (LCF_DSPR2_START): FLAGS(awzl) + { + *Ifx_Ssw_Tc2.* (.zdata) + *Cpu2_Main.* (.zdata) + *(.zdata_cpu2) + *(.zdata_cpu2.*) + . = ALIGN(2); + } > dsram2 AT> pfls0 + + CORE_SEC(.zbss) (NOLOAD): FLAGS(awz) + { + *Ifx_Ssw_Tc2.* (.zbss) + *Cpu2_Main.* (.zbss) + *(.zbss_cpu2) + *(.zbss_cpu2.*) + } > dsram2 + } + CORE_ID = CPU1; + SECTIONS + { + CORE_SEC(.zdata) (LCF_DSPR1_START): FLAGS(awzl) + { + *Ifx_Ssw_Tc1.* (.zdata) + *Cpu1_Main.* (.zdata) + *(.zdata_cpu1) + *(.zdata_cpu1.*) + . = ALIGN(2); + } > dsram1 AT> pfls0 + + CORE_SEC(.zbss) (NOLOAD): FLAGS(awz) + { + *Ifx_Ssw_Tc1.* (.zbss) + *Cpu1_Main.* (.zbss) + *(.zbss_cpu1) + *(.zbss_cpu1.*) + } > dsram1 + } + CORE_ID = CPU0; + SECTIONS + { + CORE_SEC(.zdata) (LCF_DSPR0_START): FLAGS(awzl) + { + *Ifx_Ssw_Tc0.* (.zdata) + *Cpu0_Main.* (.zdata) + *(.zdata_cpu0) + *(.zdata_cpu0.*) + . = ALIGN(2); + } > dsram0 AT> pfls0 + + CORE_SEC(.zbss) (NOLOAD): FLAGS(awz) + { + *Ifx_Ssw_Tc0.* (.zbss) + *Cpu0_Main.* (.zbss) + *(.zbss_cpu0) + *(.zbss_cpu0.*) + } > dsram0 + } + + /*Near Absolute Data, selectable by toolchain*/ + CORE_ID = GLOBAL; + SECTIONS + { + CORE_SEC(.zdata_powerOn) : FLAGS(awzl) + { + *(.zdata.dsprPowerOnInit.cpu0.32bit) + *(.zdata.dsprPowerOnInit.cpu0.16bit) + *(.zdata.dsprPowerOnInit.cpu0.8bit) + . = ALIGN(2); + } > default_ram AT> pfls0 + + CORE_SEC(.zdata) : FLAGS(awzl) + { + *(.zdata.dsprInit.cpu0.32bit) + *(.zdata.dsprInit.cpu0.16bit) + *(.zdata.dsprInit.cpu0.8bit) + *(.zdata) + *(.zdata.*) + *(.gnu.linkonce.z.*) + . = ALIGN(2); + } > default_ram AT> pfls0 + + CORE_SEC(.zbss_powerOn) (NOLOAD) : FLAGS(awz) + { + *(.zbss.dsprPowerOnClear.cpu0.32bit) + *(.zbss.dsprPowerOnClear.cpu0.16bit) + *(.zbss.dsprPowerOnClear.cpu0.8bit) + } > default_ram + + CORE_SEC(.zbss_noClear) (NOLOAD) : FLAGS(awz) + { + *(.zbss.dsprNoInit.cpu0.32bit) + *(.zbss.dsprNoInit.cpu0.16bit) + *(.zbss.dsprNoInit.cpu0.8bit) + } > default_ram + + CORE_SEC(.zbss) (NOLOAD) : FLAGS(awz) + { + *(.zbss.dsprClearOnInit.cpu0.32bit) + *(.zbss.dsprClearOnInit.cpu0.16bit) + *(.zbss.dsprClearOnInit.cpu0.8bit) + *(.zbss) + *(.zbss.*) + *(.bbss) + *(.bbss.*) + *(.gnu.linkonce.zb.*) + } > default_ram + } + + CORE_ID = GLOBAL; + SECTIONS + { + /*Cpu0_dlmu also is the segment start, all the near lmu data shll be located here*/ + CORE_SEC(.lmuzdata) : FLAGS(awzl) + { + *(.zlmudata) + *(.zlmudata.*) + . = ALIGN(2); + } > cpu0_dlmu AT> pfls0 + + CORE_SEC(.zbss) (NOLOAD) : FLAGS(awz) + { + *(.zlmubss) + *(.zlmubss.*) + } > cpu0_dlmu + } + + /*Near Absolute Const, selectable with patterns and user defined sections*/ + CORE_ID = GLOBAL; + SECTIONS + { + CORE_SEC(.zrodata) : FLAGS(arzl) + { + *Ifx_Ssw_Tc?.* (.zrodata) + *Cpu?_Main.* (.zrodata) + *(.zrodata_cpu?) + } > pfls0 + } + + /*Near Absolute Const, selectable by toolchain*/ + CORE_ID = GLOBAL; + SECTIONS + { + CORE_SEC(.zrodata) : FLAGS(arzl) + { + *(.zrodata.const.cpu0.32bit) + *(.zrodata.const.cpu0.16bit) + *(.zrodata.const.cpu0.8bit) + *(.zrodata.config.cpu0.32bit) + *(.zrodata.config.cpu0.16bit) + *(.zrodata.config.cpu0.8bit) + *(.zrodata) + *(.zrodata.*) + } > pfls0 + } + +/*Relative A0/A1/A8/A9 Addressable Sections*/ +CORE_ID = GLOBAL; +SECTIONS +{ + /*Relative A0 Addressable Data, selectable with patterns and user defined sections*/ + /*Note: A0 addressable area is common, to make the functions callable in any CPU*/ + /*Relative A0 Addressable Data, selectable by toolchain*/ + CORE_SEC(.sdata) : FLAGS(awsl) + { + *(.sdata) + *(.sdata.*) + . = ALIGN(2); + } > default_ram AT> pfls0 + CORE_SEC(.sbss) (NOLOAD): FLAGS(aws) + { + *(.sbss) + *(.sbss.*) + } > default_ram + _SMALL_DATA_ = SIZEOF(CORE_SEC(.sdata)) ? ADDR(CORE_SEC(.sdata)) : (ADDR(CORE_SEC(.sdata)) & 0xF0000000) + 32k ; + __A0_MEM = _SMALL_DATA_; +} + +CORE_ID = GLOBAL; +SECTIONS +{ + /*Relative A1 Addressable Const, selectable with patterns and user defined sections*/ + /*Note: A1 addressable area is common, to make the functions callable in any CPU*/ + /*Relative A1 Addressable Const, selectable by toolchain*/ + CORE_SEC(.sdata2) : FLAGS(arsl) + { + *(.srodata) + *(.srodata.*) + } > default_rom + _SMALL_DATA2_ = SIZEOF(CORE_SEC(.sdata2)) ? ADDR(CORE_SEC(.sdata2)) : (ADDR(CORE_SEC(.sdata2)) & 0xF0000000) + 32k ; + __A1_MEM = _SMALL_DATA2_; +} + +CORE_ID = GLOBAL; +SECTIONS +{ + /*Relative A8 Addressable Const, selectable with patterns and user defined sections*/ + CORE_SEC(.sdata3) : FLAGS(arsl) + { + *(.rodata_a8) + *(.rodata_a8.*) + } > default_rom + + _SMALL_DATA3_ = SIZEOF(CORE_SEC(.sdata3)) ? ADDR(CORE_SEC(.sdata3)) : (ADDR(CORE_SEC(.sdata3)) & 0xF0000000) + 32k ; + __A8_MEM = _SMALL_DATA3_; +} + +/*Far Data / Far Const Sections, selectable with patterns and user defined sections*/ +/*Far Data Sections, selectable with patterns and user defined sections*/ +CORE_ID = CPU2 ; +SECTIONS +{ + /*DSRAM2 Sections*/ + CORE_SEC(.data) : FLAGS(awl) + { + *Ifx_Ssw_Tc2.* (.data) + *Cpu2_Main.* (.data) + *(.data_cpu2) + *(.data_cpu2.*) + . = ALIGN(2); + } > dsram2 AT> pfls0 + + CORE_SEC(.bss) (NOLOAD): FLAGS(aw) + { + *Ifx_Ssw_Tc2.* (.bss) + *Cpu2_Main.* (.bss) + *(.bss_cpu2) + *(.bss_cpu2.*) + } > dsram2 + + /*DLMU2 Sections*/ + CORE_SEC(.lmudata) : FLAGS(awl) + { + *(.lmudata_cpu2) + *(.lmudata_cpu2.*) + . = ALIGN(2); + } > cpu2_dlmu AT> pfls0 + + CORE_SEC(.lmubss) : FLAGS(aw) + { + *(.lmubss_cpu2) + *(.lmubss_cpu2.*) + } > cpu2_dlmu +} +CORE_ID = CPU1 ; +SECTIONS +{ + /*DSRAM1 Sections*/ + CORE_SEC(.data) : FLAGS(awl) + { + *Ifx_Ssw_Tc1.* (.data) + *Cpu1_Main.* (.data) + *(.data_cpu1) + *(.data_cpu1.*) + . = ALIGN(2); + } > dsram1 AT> pfls0 + + CORE_SEC(.bss) (NOLOAD): FLAGS(aw) + { + *Ifx_Ssw_Tc1.* (.bss) + *Cpu1_Main.* (.bss) + *(.bss_cpu1) + *(.bss_cpu1.*) + } > dsram1 + + /*DLMU1 Sections*/ + CORE_SEC(.lmudata) : FLAGS(awl) + { + *(.lmudata_cpu1) + *(.lmudata_cpu1.*) + . = ALIGN(2); + } > cpu1_dlmu AT> pfls0 + + CORE_SEC(.lmubss) : FLAGS(aw) + { + *(.lmubss_cpu1) + *(.lmubss_cpu1.*) + } > cpu1_dlmu +} +CORE_ID = CPU0 ; +SECTIONS +{ + /*DSRAM0 Sections*/ + CORE_SEC(.data) : FLAGS(awl) + { + *Ifx_Ssw_Tc0.* (.data) + *Cpu0_Main.* (.data) + *(.data_cpu0) + *(.data_cpu0.*) + . = ALIGN(2); + } > dsram0 AT> pfls0 + + CORE_SEC(.bss) (NOLOAD): FLAGS(aw) + { + *Ifx_Ssw_Tc0.* (.bss) + *Cpu0_Main.* (.bss) + *(.bss_cpu0) + *(.bss_cpu0.*) + } > dsram0 + + /*DLMU0 Sections*/ + CORE_SEC(.lmudata) : FLAGS(awl) + { + *(.lmudata_cpu0) + *(.lmudata_cpu0.*) + . = ALIGN(2); + } > cpu0_dlmu AT> pfls0 + + CORE_SEC(.lmubss) : FLAGS(aw) + { + *(.lmubss_cpu0) + *(.lmubss_cpu0.*) + } > cpu0_dlmu +} + +CORE_ID = GLOBAL; +SECTIONS +{ + /*Relative A9 Addressable Data, selectable with patterns and user defined sections*/ + CORE_SEC(.sdata4) : + { + *(.a9sdata) + *(.a9sdata.*) + . = ALIGN(2); + } > cpu0_dlmu AT> pfls0 + + CORE_SEC(.sbss4) : + { + *(.a9sbss) + *(.a9sbss.*) + } > cpu0_dlmu + + _SMALL_DATA4_ = SIZEOF(CORE_SEC(.sdata4)) ? ADDR(CORE_SEC(.sdata4)) : (ADDR(CORE_SEC(.sdata4)) & 0xF0000000) + 32k ; + __A9_MEM = _SMALL_DATA4_; +} + +/*Far Data Sections, selectable by toolchain*/ +CORE_ID = GLOBAL; +SECTIONS +{ + CORE_SEC(.bss_noClear) (NOLOAD) : FLAGS(aw) + { + *(.bss.farDsprNoInit.cpu0.32bit) + *(.bss.farDsprNoInit.cpu0.16bit) + *(.bss.farDsprNoInit.cpu0.8bit) + } > default_ram + + CORE_SEC(.data) : FLAGS(awl) + { + *(.data.farDsprInit.cpu0.32bit) + *(.data.farDsprInit.cpu0.16bit) + *(.data.farDsprInit.cpu0.8bit) + *(.data) + *(.data.*) + *(.gnu.linkonce.d.*) + . = ALIGN(2); + } > default_ram AT> pfls0 + + CORE_SEC(.bss) (NOLOAD) : FLAGS(aw) + { + *(.bss.farDsprClearOnInit.cpu0.32bit) + *(.bss.farDsprClearOnInit.cpu0.16bit) + *(.bss.farDsprClearOnInit.cpu0.8bit) + *(.bss) + *(.bss.*) + *(.gnu.linkonce.b.*) + } > default_ram + + .heap : FLAGS(aw) + { + . = ALIGN(4); + __HEAP = .; + . += LCF_HEAP_SIZE; + __HEAP_END = .; + /* First unused address of default_ram */ + . = ALIGN(8); + __TX_FREE_MEM = .; + } > default_ram + + CORE_SEC(.lmudata) : FLAGS(awl) + { + *(.lmudata) + *(.lmudata.*) + . = ALIGN(2); + } > cpu0_dlmu AT> pfls0 + + CORE_SEC(.lmubss) : FLAGS(aw) + { + *(.lmubss) + *(.lmubss.*) + } > cpu0_dlmu +} +/*Far Const Sections, selectable with patterns and user defined sections*/ +CORE_ID = CPU0; +SECTIONS +{ + CORE_SEC(.rodata) : FLAGS(arl) + { + *Ifx_Ssw_Tc0.* (.rodata) + *Cpu0_Main.* (.rodata) + *(.rodata_cpu0) + *(.rodata_cpu0.*) + } > pfls0 +} + +CORE_ID = CPU1; +SECTIONS +{ + CORE_SEC(.rodata) : FLAGS(arl) + { + *Ifx_Ssw_Tc1.* (.rodata) + *Cpu1_Main.* (.rodata) + *(.rodata_cpu1) + *(.rodata_cpu1.*) + } > pfls1 +} + +CORE_ID = CPU2; +SECTIONS +{ + CORE_SEC(.rodata) : FLAGS(arl) + { + *Ifx_Ssw_Tc2.* (.rodata) + *Cpu2_Main.* (.rodata) + *(.rodata_cpu2) + *(.rodata_cpu2.*) + } > pfls1 +} + +/*Far Const Sections, selectable by toolchain*/ +CORE_ID = GLOBAL; +SECTIONS +{ + CORE_SEC(.rodata) : FLAGS(arl) + { + *(.rodata.farConst.cpu0.32bit) + *(.rodata.farConst.cpu0.16bit) + *(.rodata.farConst.cpu0.8bit) + *(.rodata) + *(.rodata.*) + *(.gnu.linkonce.r.*) + /* + * Create the clear and copy tables that tell the startup code + * which memory areas to clear and to copy, respectively. + */ + . = ALIGN(4) ; + PROVIDE(__clear_table = .); + LONG(0 + ADDR(.CPU2.zbss)); LONG(SIZEOF(.CPU2.zbss)); + LONG(0 + ADDR(.CPU2.bss)); LONG(SIZEOF(.CPU2.bss)); + LONG(0 + ADDR(.CPU2.lmubss)); LONG(SIZEOF(.CPU2.lmubss)); + LONG(0 + ADDR(.CPU1.zbss)); LONG(SIZEOF(.CPU1.zbss)); + LONG(0 + ADDR(.CPU1.bss)); LONG(SIZEOF(.CPU1.bss)); + LONG(0 + ADDR(.CPU1.lmubss)); LONG(SIZEOF(.CPU1.lmubss)); + LONG(0 + ADDR(.CPU0.zbss)); LONG(SIZEOF(.CPU0.zbss)); + LONG(0 + ADDR(.CPU0.bss)); LONG(SIZEOF(.CPU0.bss)); + LONG(0 + ADDR(.CPU0.lmubss)); LONG(SIZEOF(.CPU0.lmubss)); + LONG(0 + ADDR(.zbss)); LONG(SIZEOF(.zbss)); + LONG(0 + ADDR(.sbss)); LONG(SIZEOF(.sbss)); + LONG(0 + ADDR(.bss)); LONG(SIZEOF(.bss)); + LONG(0 + ADDR(.lmubss)); LONG(SIZEOF(.lmubss)); + LONG(0 + ADDR(.sbss4)); LONG(SIZEOF(.sbss4)); + LONG(-1); LONG(-1); + PROVIDE(__clear_table_powerOn = .); + LONG(0 + ADDR(.zbss_powerOn)); LONG(SIZEOF(.zbss_powerOn)); + LONG(-1); LONG(-1); + PROVIDE(__copy_table = .); + LONG(LOADADDR(.CPU2.zdata)); LONG(0 + ADDR(.CPU2.zdata)); LONG(SIZEOF(.CPU2.zdata)); + LONG(LOADADDR(.CPU2.data)); LONG(0 + ADDR(.CPU2.data)); LONG(SIZEOF(.CPU2.data)); + LONG(LOADADDR(.CPU2.lmudata)); LONG(0 + ADDR(.CPU2.lmudata)); LONG(SIZEOF(.CPU2.lmudata)); + LONG(LOADADDR(.CPU1.zdata)); LONG(0 + ADDR(.CPU1.zdata)); LONG(SIZEOF(.CPU1.zdata)); + LONG(LOADADDR(.CPU1.data)); LONG(0 + ADDR(.CPU1.data)); LONG(SIZEOF(.CPU1.data)); + LONG(LOADADDR(.CPU1.lmudata)); LONG(0 + ADDR(.CPU1.lmudata)); LONG(SIZEOF(.CPU1.lmudata)); + LONG(LOADADDR(.CPU0.zdata)); LONG(0 + ADDR(.CPU0.zdata)); LONG(SIZEOF(.CPU0.zdata)); + LONG(LOADADDR(.CPU0.data)); LONG(0 + ADDR(.CPU0.data)); LONG(SIZEOF(.CPU0.data)); + LONG(LOADADDR(.CPU0.lmudata)); LONG(0 + ADDR(.CPU0.lmudata)); LONG(SIZEOF(.CPU0.lmudata)); + LONG(LOADADDR(.zdata)); LONG(0 + ADDR(.zdata)); LONG(SIZEOF(.zdata)); + LONG(LOADADDR(.sdata)); LONG(0 + ADDR(.sdata)); LONG(SIZEOF(.sdata)); + LONG(LOADADDR(.data)); LONG(0 + ADDR(.data)); LONG(SIZEOF(.data)); + LONG(LOADADDR(.lmudata)); LONG(0 + ADDR(.lmudata)); LONG(SIZEOF(.lmudata)); + LONG(LOADADDR(.sdata4)); LONG(0 + ADDR(.sdata4)); LONG(SIZEOF(.sdata4)); + LONG(LOADADDR(.CPU0.psram_text)); LONG(0 + ADDR(.CPU0.psram_text)); LONG(SIZEOF(.CPU0.psram_text)); + LONG(LOADADDR(.CPU1.psram_text)); LONG(0 + ADDR(.CPU1.psram_text)); LONG(SIZEOF(.CPU1.psram_text)); + LONG(LOADADDR(.CPU2.psram_text)); LONG(0 + ADDR(.CPU2.psram_text)); LONG(SIZEOF(.CPU2.psram_text)); + LONG(-1); LONG(-1); LONG(-1); + PROVIDE(__copy_table_powerOn = .) ; + LONG(LOADADDR(.zdata_powerOn)); LONG(0 + ADDR(.zdata_powerOn)); LONG(SIZEOF(.zdata_powerOn)); + LONG(-1); LONG(-1); LONG(-1); + . = ALIGN(8); + } > default_rom +} + +/*Code selections*/ +/*Code Sections, selectable with patterns and user defined sections*/ +CORE_ID = CPU0; +SECTIONS +{ + CORE_SEC(.text) : FLAGS(axl) + { + . = ALIGN(2); + *Ifx_Ssw_Tc0.*(.text) + *Cpu0_Main.*(.text) + *Ifx_Ssw_Tc0.*(.text.*) + *Cpu0_Main.*(.text.*) + *(.text_cpu0) + *(.text_cpu0.*) + } > pfls0 + + /* + * Code executed before calling main extra section for C++ constructor init + * -------------------------Start----------------------------------------- + */ + .init : + { + PROVIDE(__init_start = .); + KEEP(*(.init)) + KEEP(*(.init*)) + PROVIDE(__init_end = .); + . = ALIGN(8); + + } > pfls0 + + .fini : + { + PROVIDE(__fini_start = .); + KEEP(*(.fini)) + KEEP(*(.fini*)) + PROVIDE(__fini_end = .); + . = ALIGN(8); + } > pfls0 + + /* + * Code executed before calling main extra section for C++ constructor init + * -------------------------End----------------------------------------- + */ + CORE_SEC(.psram_text) : FLAGS(awx) + { + . = ALIGN(2); + *(.psram_text_cpu0) + *(.psram_text_cpu0.*) + *(.cpu0_psram) + *(.cpu0_psram.*) + . = ALIGN(2); + } > psram0 AT> pfls0 +} + +CORE_ID = CPU1; +SECTIONS +{ + CORE_SEC(.text) : FLAGS(axl) + { + . = ALIGN(2); + *Ifx_Ssw_Tc1.*(.text) + *Cpu1_Main.*(.text) + *Ifx_Ssw_Tc1.*(.text.*) + *Cpu1_Main.*(.text.*) + *(.text_cpu1) + *(.text_cpu1.*) + } > pfls1 + + CORE_SEC(.psram_text) : FLAGS(awx) + { + . = ALIGN(2); + *(.psram_text_cpu1) + *(.psram_text_cpu1.*) + *(.cpu1_psram) + *(.cpu1_psram.*) + . = ALIGN(2); + } > psram1 AT> pfls1 +} + +CORE_ID = CPU2; +SECTIONS +{ + CORE_SEC(.text) : FLAGS(axl) + { + . = ALIGN(2); + *Ifx_Ssw_Tc2.*(.text) + *Cpu2_Main.*(.text) + *Ifx_Ssw_Tc2.*(.text.*) + *Cpu2_Main.*(.text.*) + *(.text_cpu2) + *(.text_cpu2.*) + } > pfls1 + + CORE_SEC(.psram_text) : FLAGS(awx) + { + . = ALIGN(2); + *(.psram_text_cpu2) + *(.psram_text_cpu2.*) + *(.cpu2_psram) + *(.cpu2_psram.*) + . = ALIGN(2); + } > psram2 AT> pfls1 +} + +/*Code Sections, selectable by toolchain*/ +CORE_ID = GLOBAL; +SECTIONS +{ + CORE_SEC(.text) : FLAGS(axl) + { + *(.text.fast.pfls.cpu0) + *(.text.slow.pfls.cpu0) + *(.text.5ms.pfls.cpu0) + *(.text.10ms.pfls.cpu0) + *(.text.callout.pfls.cpu0) + *(.text) + *(.text.*) + *(.gnu.linkonce.t.*) + *(.gnu.warning) /* .gnu.warning sections are handled specially by elf32.em. */ + . = ALIGN(4); + } > default_rom + + /* + * C++ exception handling tables. NOTE: gcc emits .eh_frame + * sections when compiling C sources with debugging enabled (-g). + * If you can be sure that your final application consists + * exclusively of C objects (i.e., no C++ objects), you may use + * the -R option of the "strip" and "objcopy" utilities to remove + * the .eh_frame section from the executable. + */ + .eh_frame : + { + *(.gcc_except_table) + __EH_FRAME_BEGIN__ = . ; + KEEP (*(.eh_frame)) + __EH_FRAME_END__ = . ; + . = ALIGN(8); + } > default_rom + + /* + * Constructors and destructors. + */ + .ctors : FLAGS(ar) + { + __CTOR_LIST__ = . ; + LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2); + /* + * Code executed before calling main extra section for C++ constructor init + * -------------------------Start----------------------------------------- + */ + KEEP (*crtbegin.o(.ctors)) + KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors)) + KEEP (*(SORT(.ctors.*))) + KEEP (*(.ctors)) + /* + * Code executed before calling main extra section for C++ constructor init + * -------------------------End----------------------------------------- + */ + LONG(0) ; + __CTOR_END__ = . ; + . = ALIGN(8); + } > default_rom + .dtors : FLAGS(ar) + { + __DTOR_LIST__ = . ; + LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2); + /* + * Code executed before calling main extra section for C++ distructor init + * -------------------------Start----------------------------------------- + */ + KEEP (*crtbegin.o(.dtors)) + KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors)) + KEEP (*(SORT(.dtors.*))) + KEEP (*(.dtors)) + /* + * Code executed before calling main extra section for C++ distructor init + * -------------------------End----------------------------------------- + */ + LONG(0) ; + __DTOR_END__ = . ; + . = ALIGN(8); + } > default_rom + /* + * DWARF debug sections. + * Symbols in the DWARF debugging sections are relative to the + * beginning of the section, so we begin them at 0. + */ + /* + * DWARF 1 + */ + .comment 0 : { *(.comment) } + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* + * GNU DWARF 1 extensions + */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* + * DWARF 1.1 and DWARF 2 + */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* + * DWARF 2 + */ + .debug_info 0 : { *(.debug_info) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + .debug_ranges 0 : { *(.debug_ranges) } + /* + * SGI/MIPS DWARF 2 extensions + */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } + /* + * Optional sections that may only appear when relocating. + */ + /* + * Optional sections that may appear regardless of relocating. + */ + .version_info 0 : { *(.version_info) } + .boffs 0 : { KEEP (*(.boffs)) } +} + diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_env.sh b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_env.sh new file mode 100755 index 000000000..bc8fb07f5 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_env.sh @@ -0,0 +1,81 @@ +#!/bin/bash +############################################################################## +# Copyright (c) 2026 safecubed GmbH +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + +# Portions of this file were generated with AI assistance. + +# Common settings for build_threadx.sh and build_threadx_sample.sh. +# +# The TriCore TC1.6.2 port and the sample depend on the Infineon iLLD. The iLLD is +# not part of this repository. AURIX_ILLD_DIR shall name the directory that +# holds the iLLD, Infra and Service folders. Two layouts are accepted: +# +# - the iLLD release package for all TC3xx devices (iLLD/TC3xx), for +# example src/BaseSw of iLLD 1.22.0. Ifx_Cfg.h selects the device. +# - the TC37A iLLD of an AURIX Development Studio project (iLLD/TC37A), +# that is the project's Libraries folder. +# +# AURIX_ILLD_DIR=/path/to/illd_release_tc3x/src/BaseSw ./build_threadx_sample.sh +# +# CROSS_COMPILE selects the toolchain prefix. The default is the AURIX GCC +# (tricore-elf-), which shall be on PATH. + +: "${CROSS_COMPILE:=tricore-elf-}" +CC="${CROSS_COMPILE}gcc" +AR="${CROSS_COMPILE}ar" + +THREADX_ROOT="../../../../.." +BUILD_DIR="build" +INFRA="${AURIX_ILLD_DIR:-}/Infra" +SERVICE="${AURIX_ILLD_DIR:-}/Service/CpuGeneric" + +if [ -d "${AURIX_ILLD_DIR:-}/iLLD/TC3xx/Tricore" ]; then + ILLD="${AURIX_ILLD_DIR}/iLLD/TC3xx/Tricore" + SFR="${INFRA}/Sfr/TC37x" + SSW="${INFRA}/Ssw/TC3xx/Tricore" + PINMAP="${ILLD}/_PinMap/TC37x" +elif [ -d "${AURIX_ILLD_DIR:-}/iLLD/TC37A/Tricore" ]; then + ILLD="${AURIX_ILLD_DIR}/iLLD/TC37A/Tricore" + SFR="${INFRA}/Sfr/TC37A/_Reg" + SSW="${INFRA}/Ssw/TC37A/Tricore" + PINMAP="${ILLD}/_PinMap" +else + echo "AURIX_ILLD_DIR shall name a directory that contains iLLD/TC3xx/Tricore" >&2 + echo "or iLLD/TC37A/Tricore, together with Infra and Service." >&2 + exit 1 +fi + +CFLAGS="-std=c99 -O0 -g3 -Wall -fmessage-length=0 -fno-common \ +-fstrict-volatile-bitfields -fdata-sections -ffunction-sections -mtc162" + +INCLUDES="-I. \ +-I${THREADX_ROOT}/common/inc \ +-I../../inc \ +-I${ILLD} \ +-I${ILLD}/Cpu/Std \ +-I${ILLD}/Cpu/Irq \ +-I${ILLD}/Cpu/Trap \ +-I${ILLD}/Scu/Std \ +-I${ILLD}/Src/Std \ +-I${ILLD}/Stm/Std \ +-I${ILLD}/Port/Std \ +-I${ILLD}/Pms/Std \ +-I${ILLD}/_Impl \ +-I${ILLD}/_Lib \ +-I${ILLD}/_PinMap \ +-I${PINMAP} \ +-I${INFRA}/Platform \ +-I${INFRA}/Platform/Tricore/Compilers \ +-I${SFR} \ +-I${SSW} \ +-I${SERVICE} \ +-I${SERVICE}/SysSe/Bsp \ +-I${SERVICE}/_Utilities" diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx.sh b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx.sh new file mode 100755 index 000000000..02ddda951 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx.sh @@ -0,0 +1,32 @@ +#!/bin/bash +############################################################################## +# Copyright (c) 2026 safecubed GmbH +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + +# Portions of this file were generated with AI assistance. + +# Builds the ThreadX library tx.a for the TriCore TC1.6.2 port. See build_env.sh for +# the required environment. + +set -e +cd "$(dirname "$0")" +. ./build_env.sh + +OBJ_DIR="${BUILD_DIR}/tx" +rm -rf "${OBJ_DIR}" +mkdir -p "${OBJ_DIR}" +rm -f tx.a + +for src in ../../src/*.c "${THREADX_ROOT}"/common/src/*.c; do + obj="${OBJ_DIR}/$(basename "${src%.c}").o" + "${CC}" ${CFLAGS} ${INCLUDES} -c "${src}" -o "${obj}" +done + +"${AR}" -r tx.a "${OBJ_DIR}"/*.o diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx_sample.sh b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx_sample.sh new file mode 100755 index 000000000..ce74f145c --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx_sample.sh @@ -0,0 +1,57 @@ +#!/bin/bash +############################################################################## +# Copyright (c) 2026 safecubed GmbH +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + +# Portions of this file were generated with AI assistance. + +# Builds sample_threadx.elf for the AURIX TC375 Lite Kit. build_threadx.sh +# shall have built tx.a first. See build_env.sh for the required environment. + +set -e +cd "$(dirname "$0")" +. ./build_env.sh + +OBJ_DIR="${BUILD_DIR}/sample" +rm -rf "${OBJ_DIR}" +mkdir -p "${OBJ_DIR}" +rm -f sample_threadx.elf sample_threadx.map + +SOURCES="sample_threadx.c \ +tx_initialize_low_level.c \ +Cpu0_Main.c \ +Cpu1_Main.c \ +Cpu2_Main.c \ +Ifx_Cfg_Ssw.c \ +Ifx_Cfg_SswBmhd.c \ +${INFRA}/Platform/Tricore/Compilers/CompilerGnuc.c \ +${SSW}/Ifx_Ssw_Infra.c \ +${SSW}/Ifx_Ssw_Tc0.c \ +${SSW}/Ifx_Ssw_Tc1.c \ +${SSW}/Ifx_Ssw_Tc2.c \ +${ILLD}/Cpu/Std/IfxCpu.c \ +${ILLD}/Cpu/Irq/IfxCpu_Irq.c \ +${ILLD}/Cpu/Trap/IfxCpu_Trap.c \ +${ILLD}/Pms/Std/IfxPmsEvr.c \ +${ILLD}/Scu/Std/IfxScuCcu.c \ +${ILLD}/Scu/Std/IfxScuWdt.c \ +${ILLD}/Src/Std/IfxSrc.c \ +${ILLD}/Stm/Std/IfxStm.c \ +${ILLD}/_Impl/IfxCpu_cfg.c \ +${ILLD}/_Impl/IfxStm_cfg.c" + +for src in ${SOURCES}; do + obj="${OBJ_DIR}/$(basename "${src%.c}").o" + "${CC}" ${CFLAGS} ${INCLUDES} -c "${src}" -o "${obj}" +done + +"${CC}" -mtc162 -nocrt0 -T Lcf_Gnuc_Tricore_Tc.lsl -Wl,--gc-sections \ + -Wl,-Map=sample_threadx.map \ + -o sample_threadx.elf "${OBJ_DIR}"/*.o tx.a diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/sample_threadx.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/sample_threadx.c new file mode 100644 index 000000000..de0ef97e6 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/sample_threadx.c @@ -0,0 +1,387 @@ +/***************************************************************************/ +/* Copyright (c) 2024 Microsoft Corporation */ +/* Copyright (c) 2026 Eclipse ThreadX contributors */ +/* */ +/* This program and the accompanying materials are made available under */ +/* the terms of the MIT License which is available at */ +/* https://opensource.org/licenses/MIT. */ +/* */ +/* SPDX-License-Identifier: MIT */ +/***************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* This is a small demo of the high-performance ThreadX kernel. It includes examples of eight + threads of different priorities, using a message queue, semaphore, mutex, event flags group, + byte pool, and block pool. */ + +#include "tx_api.h" + +#define DEMO_STACK_SIZE 1024 +#define DEMO_BYTE_POOL_SIZE 9120 +#define DEMO_BLOCK_POOL_SIZE 100 +#define DEMO_QUEUE_SIZE 100 + + +/* Define the ThreadX object control blocks... */ + +TX_THREAD thread_0; +TX_THREAD thread_1; +TX_THREAD thread_2; +TX_THREAD thread_3; +TX_THREAD thread_4; +TX_THREAD thread_5; +TX_THREAD thread_6; +TX_THREAD thread_7; +TX_QUEUE queue_0; +TX_SEMAPHORE semaphore_0; +TX_MUTEX mutex_0; +TX_EVENT_FLAGS_GROUP event_flags_0; +TX_BYTE_POOL byte_pool_0; +TX_BLOCK_POOL block_pool_0; +UCHAR memory_area[DEMO_BYTE_POOL_SIZE]; + +#ifdef TX_ENABLE_EVENT_TRACE +#define DEMO_TRACE_BUFFER_SIZE 4000 +#define DEMO_TRACE_REGISTRY_ENTRIES 30 + +/* tx_trace_enable stores word-sized entries, so the buffer is word-aligned. */ +ULONG trace_buffer[DEMO_TRACE_BUFFER_SIZE / sizeof(ULONG)]; +#endif + + +/* Define the counters used in the demo application... */ + +ULONG thread_0_counter; +ULONG thread_1_counter; +ULONG thread_1_messages_sent; +ULONG thread_2_counter; +ULONG thread_2_messages_received; +ULONG thread_3_counter; +ULONG thread_4_counter; +ULONG thread_5_counter; +ULONG thread_6_counter; +ULONG thread_7_counter; + + +/* Define thread prototypes. */ + +void thread_0_entry(ULONG thread_input); +void thread_1_entry(ULONG thread_input); +void thread_2_entry(ULONG thread_input); +void thread_3_and_4_entry(ULONG thread_input); +void thread_5_entry(ULONG thread_input); +void thread_6_and_7_entry(ULONG thread_input); + + +/* Define what the initial system looks like. */ + +void tx_application_define(void *first_unused_memory) +{ + +CHAR *pointer = TX_NULL; + + +#ifdef TX_ENABLE_EVENT_TRACE + /* Kernel initialisation resets the trace, so tracing starts here, before + the first object is created. */ + tx_trace_enable(trace_buffer, DEMO_TRACE_BUFFER_SIZE, DEMO_TRACE_REGISTRY_ENTRIES); +#endif + + /* Create a byte memory pool from which to allocate the thread stacks. */ + tx_byte_pool_create(&byte_pool_0, "byte pool 0", memory_area, DEMO_BYTE_POOL_SIZE); + + /* Put system definition stuff in here, e.g. thread creates and other assorted + create information. */ + + /* Allocate the stack for thread 0. */ + tx_byte_allocate(&byte_pool_0, (VOID **) &pointer, DEMO_STACK_SIZE, TX_NO_WAIT); + + /* Create the main thread. */ + tx_thread_create(&thread_0, "thread 0", thread_0_entry, 0, + pointer, DEMO_STACK_SIZE, + 1, 1, TX_NO_TIME_SLICE, TX_AUTO_START); + + + /* Allocate the stack for thread 1. */ + tx_byte_allocate(&byte_pool_0, (VOID **) &pointer, DEMO_STACK_SIZE, TX_NO_WAIT); + + /* Create threads 1 and 2. These threads pass information through a ThreadX + message queue. It is also interesting to note that these threads have a time + slice. */ + tx_thread_create(&thread_1, "thread 1", thread_1_entry, 1, + pointer, DEMO_STACK_SIZE, + 16, 16, 4, TX_AUTO_START); + + /* Allocate the stack for thread 2. */ + tx_byte_allocate(&byte_pool_0, (VOID **) &pointer, DEMO_STACK_SIZE, TX_NO_WAIT); + + tx_thread_create(&thread_2, "thread 2", thread_2_entry, 2, + pointer, DEMO_STACK_SIZE, + 16, 16, 4, TX_AUTO_START); + + /* Allocate the stack for thread 3. */ + tx_byte_allocate(&byte_pool_0, (VOID **) &pointer, DEMO_STACK_SIZE, TX_NO_WAIT); + + /* Create threads 3 and 4. These threads compete for a ThreadX counting semaphore. + An interesting thing here is that both threads share the same instruction area. */ + tx_thread_create(&thread_3, "thread 3", thread_3_and_4_entry, 3, + pointer, DEMO_STACK_SIZE, + 8, 8, TX_NO_TIME_SLICE, TX_AUTO_START); + + /* Allocate the stack for thread 4. */ + tx_byte_allocate(&byte_pool_0, (VOID **) &pointer, DEMO_STACK_SIZE, TX_NO_WAIT); + + tx_thread_create(&thread_4, "thread 4", thread_3_and_4_entry, 4, + pointer, DEMO_STACK_SIZE, + 8, 8, TX_NO_TIME_SLICE, TX_AUTO_START); + + /* Allocate the stack for thread 5. */ + tx_byte_allocate(&byte_pool_0, (VOID **) &pointer, DEMO_STACK_SIZE, TX_NO_WAIT); + + /* Create thread 5. This thread simply pends on an event flag which will be set + by thread_0. */ + tx_thread_create(&thread_5, "thread 5", thread_5_entry, 5, + pointer, DEMO_STACK_SIZE, + 4, 4, TX_NO_TIME_SLICE, TX_AUTO_START); + + /* Allocate the stack for thread 6. */ + tx_byte_allocate(&byte_pool_0, (VOID **) &pointer, DEMO_STACK_SIZE, TX_NO_WAIT); + + /* Create threads 6 and 7. These threads compete for a ThreadX mutex. */ + tx_thread_create(&thread_6, "thread 6", thread_6_and_7_entry, 6, + pointer, DEMO_STACK_SIZE, + 8, 8, TX_NO_TIME_SLICE, TX_AUTO_START); + + /* Allocate the stack for thread 7. */ + tx_byte_allocate(&byte_pool_0, (VOID **) &pointer, DEMO_STACK_SIZE, TX_NO_WAIT); + + tx_thread_create(&thread_7, "thread 7", thread_6_and_7_entry, 7, + pointer, DEMO_STACK_SIZE, + 8, 8, TX_NO_TIME_SLICE, TX_AUTO_START); + + /* Allocate the message queue. */ + tx_byte_allocate(&byte_pool_0, (VOID **) &pointer, DEMO_QUEUE_SIZE*sizeof(ULONG), TX_NO_WAIT); + + /* Create the message queue shared by threads 1 and 2. */ + tx_queue_create(&queue_0, "queue 0", TX_1_ULONG, pointer, DEMO_QUEUE_SIZE*sizeof(ULONG)); + + /* Create the semaphore used by threads 3 and 4. */ + tx_semaphore_create(&semaphore_0, "semaphore 0", 1); + + /* Create the event flags group used by threads 1 and 5. */ + tx_event_flags_create(&event_flags_0, "event flags 0"); + + /* Create the mutex used by thread 6 and 7 without priority inheritance. */ + tx_mutex_create(&mutex_0, "mutex 0", TX_NO_INHERIT); + + /* Allocate the memory for a small block pool. */ + tx_byte_allocate(&byte_pool_0, (VOID **) &pointer, DEMO_BLOCK_POOL_SIZE, TX_NO_WAIT); + + /* Create a block memory pool to allocate a message buffer from. */ + tx_block_pool_create(&block_pool_0, "block pool 0", sizeof(ULONG), pointer, DEMO_BLOCK_POOL_SIZE); + + /* Allocate a block and release the block memory. */ + tx_block_allocate(&block_pool_0, (VOID **) &pointer, TX_NO_WAIT); + + /* Release the block back to the pool. */ + tx_block_release(pointer); +} + + + +/* Define the test threads. */ + +void thread_0_entry(ULONG thread_input) +{ + +UINT status; + + + /* This thread simply sits in while-forever-sleep loop. */ + while(1) + { + + /* Increment the thread counter. */ + thread_0_counter++; + + /* Sleep for 10 ticks. */ + tx_thread_sleep(10); + + /* Set event flag 0 to wakeup thread 5. */ + status = tx_event_flags_set(&event_flags_0, 0x1, TX_OR); + + /* Check status. */ + if (status != TX_SUCCESS) + break; + } +} + + +void thread_1_entry(ULONG thread_input) +{ + +UINT status; + + + /* This thread simply sends messages to a queue shared by thread 2. */ + while(1) + { + + /* Increment the thread counter. */ + thread_1_counter++; + + /* Send message to queue 0. */ + status = tx_queue_send(&queue_0, &thread_1_messages_sent, TX_WAIT_FOREVER); + + /* Check completion status. */ + if (status != TX_SUCCESS) + break; + + /* Increment the message sent. */ + thread_1_messages_sent++; + } +} + + +void thread_2_entry(ULONG thread_input) +{ + +ULONG received_message; +UINT status; + + /* This thread retrieves messages placed on the queue by thread 1. */ + while(1) + { + + /* Increment the thread counter. */ + thread_2_counter++; + + /* Retrieve a message from the queue. */ + status = tx_queue_receive(&queue_0, &received_message, TX_WAIT_FOREVER); + + /* Check completion status and make sure the message is what we + expected. */ + if ((status != TX_SUCCESS) || (received_message != thread_2_messages_received)) + break; + + /* Otherwise, all is okay. Increment the received message count. */ + thread_2_messages_received++; + } +} + + +void thread_3_and_4_entry(ULONG thread_input) +{ + +UINT status; + + + /* This function is executed from thread 3 and thread 4. As the loop + below shows, these function compete for ownership of semaphore_0. */ + while(1) + { + + /* Increment the thread counter. */ + if (thread_input == 3) + thread_3_counter++; + else + thread_4_counter++; + + /* Get the semaphore with suspension. */ + status = tx_semaphore_get(&semaphore_0, TX_WAIT_FOREVER); + + /* Check status. */ + if (status != TX_SUCCESS) + break; + + /* Sleep for 2 ticks to hold the semaphore. */ + tx_thread_sleep(2); + + /* Release the semaphore. */ + status = tx_semaphore_put(&semaphore_0); + + /* Check status. */ + if (status != TX_SUCCESS) + break; + } +} + + +void thread_5_entry(ULONG thread_input) +{ + +UINT status; +ULONG actual_flags; + + + /* This thread simply waits for an event in a forever loop. */ + while(1) + { + + /* Increment the thread counter. */ + thread_5_counter++; + + /* Wait for event flag 0. */ + status = tx_event_flags_get(&event_flags_0, 0x1, TX_OR_CLEAR, + &actual_flags, TX_WAIT_FOREVER); + + /* Check status. */ + if ((status != TX_SUCCESS) || (actual_flags != 0x1)) + break; + } +} + + +void thread_6_and_7_entry(ULONG thread_input) +{ + +UINT status; + + + /* This function is executed from thread 6 and thread 7. As the loop + below shows, these function compete for ownership of mutex_0. */ + while(1) + { + + /* Increment the thread counter. */ + if (thread_input == 6) + thread_6_counter++; + else + thread_7_counter++; + + /* Get the mutex with suspension. */ + status = tx_mutex_get(&mutex_0, TX_WAIT_FOREVER); + + /* Check status. */ + if (status != TX_SUCCESS) + break; + + /* Get the mutex again with suspension. This shows + that an owning thread may retrieve the mutex it + owns multiple times. */ + status = tx_mutex_get(&mutex_0, TX_WAIT_FOREVER); + + /* Check status. */ + if (status != TX_SUCCESS) + break; + + /* Sleep for 2 ticks to hold the mutex. */ + tx_thread_sleep(2); + + /* Release the mutex. */ + status = tx_mutex_put(&mutex_0); + + /* Check status. */ + if (status != TX_SUCCESS) + break; + + /* Release the mutex again. This will actually + release ownership since it was obtained twice. */ + status = tx_mutex_put(&mutex_0); + + /* Check status. */ + if (status != TX_SUCCESS) + break; + } +} diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/tx_initialize_low_level.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/tx_initialize_low_level.c new file mode 100755 index 000000000..2d56315cb --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/tx_initialize_low_level.c @@ -0,0 +1,102 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* Low-level initialisation of ThreadX on CPU0 of the TC375 Lite Kit. + + _tx_initialize_low_level runs from tx_kernel_enter before the kernel and + the application are initialised. It sets the first unused memory, the + ThreadX timer on compare 0 of STM0 and the dispatch interrupt of the port. + Interrupts stay disabled until _tx_thread_schedule starts the first + thread. The linker script shall define __TX_FREE_MEM. */ + +#define TX_SOURCE_CODE + +#include "tx_api.h" +#include "IfxStm.h" + +#define TIMER_STM MODULE_STM0 +#define TIMER_COMPARATOR IfxStm_Comparator_0 + +VOID _tx_timer_interrupt(VOID); + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) +VOID _tx_execution_isr_enter(VOID); +VOID _tx_execution_isr_exit(VOID); +#endif + +extern VOID *_tx_initialize_unused_memory; + +/* First address of CPU0 data RAM after the variables and the heap, from the + linker script. */ +extern UCHAR __TX_FREE_MEM[]; + +/* STM ticks per ThreadX timer tick. */ +static ULONG timer_period; + + +VOID _tx_initialize_low_level(VOID) +{ + + IfxStm_CompareConfig compare_config; + + __disable(); + + _tx_initialize_unused_memory = (VOID *) __TX_FREE_MEM; + + timer_period = (ULONG) ((IfxStm_getFrequency(&TIMER_STM) / (float32) TX_TIMER_TICKS_PER_SECOND) + 0.5f); + + IfxStm_initCompareConfig(&compare_config); + compare_config.comparator = TIMER_COMPARATOR; + compare_config.comparatorInterrupt = IfxStm_ComparatorInterrupt_ir0; + compare_config.ticks = timer_period; + compare_config.triggerPriority = TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY; + compare_config.typeOfService = IfxSrc_Tos_cpu0; + (VOID) IfxStm_initCompare(&TIMER_STM, &compare_config); + + IfxSrc_init(&TX_PORT_TRICORE_DISPATCH_SRC, IfxSrc_Tos_cpu0, TX_PORT_TRICORE_DISPATCH_PRIORITY); + IfxSrc_enable(&TX_PORT_TRICORE_DISPATCH_SRC); +} + + +IFX_INTERRUPT(TimerInterruptHandler, 0, TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY) +{ + + ULONG now; + ULONG next; + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) + _tx_execution_isr_enter(); +#endif + + IfxStm_clearCompareFlag(&TIMER_STM, TIMER_COMPARATOR); + + /* The next compare follows the previous one by one period. If the counter + has already passed that value, for example after the first tick was + delayed by tx_application_define or after a debugger halt, the next + compare is one period from now and the ticks in between are lost. + Without this check, the next interrupt would occur only after the + 32-bit counter wraps. */ + next = IfxStm_getCompare(&TIMER_STM, TIMER_COMPARATOR) + timer_period; + now = IfxStm_getLower(&TIMER_STM); + if ((LONG) (next - now) <= 0) + { + next = now + timer_period; + } + IfxStm_updateCompare(&TIMER_STM, TIMER_COMPARATOR, next); + + _tx_timer_interrupt(); + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) + _tx_execution_isr_exit(); +#endif +} diff --git a/ports/tricore_tc1_6_2/gnu/inc/tx_port.h b/ports/tricore_tc1_6_2/gnu/inc/tx_port.h new file mode 100755 index 000000000..32bca0f2e --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/inc/tx_port.h @@ -0,0 +1,637 @@ +/*************************************************************************** + * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** ThreadX Component */ +/** */ +/** Port Specific */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + + +/**************************************************************************/ +/* */ +/* PORT SPECIFIC C INFORMATION RELEASE */ +/* */ +/* tx_port.h TriCore/GNU */ +/* 6.5.2 */ +/* */ +/* AUTHOR */ +/* */ +/* William E. Lamie, Microsoft Corporation */ +/* Andreas Neubauer, safecubed GmbH */ +/* */ +/* DESCRIPTION */ +/* */ +/* This file contains data type definitions that make the ThreadX */ +/* real-time kernel function identically on a variety of different */ +/* processor architectures. For example, the size or number of bits */ +/* in an "int" data type vary between microprocessor architectures and */ +/* even C compilers for the same microprocessor. ThreadX does not */ +/* directly use native C data types. Instead, ThreadX creates its */ +/* own special types that can be mapped to actual data types by this */ +/* file to guarantee consistency in the interface and functionality. */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ +/* 09-30-2020 William E. Lamie Initial Version 6.1 */ +/* 10-15-2021 William E. Lamie Modified comment(s), added */ +/* symbol ULONG64_DEFINED, */ +/* resulting in version 6.1.9 */ +/* 04-25-2022 William E. Lamie Modified comment(s), removed */ +/* useless definition, */ +/* resulting in version 6.1.11 */ +/* 10-31-2023 Yanwu Cai Modified comment(s), fixed */ +/* compile warnings, */ +/* resulting in version 6.3.0 */ +/* 11-04-2026 Andreas Neubauer Adapted for TriCore, */ +/* resulting in version 6.5.2 */ +/* */ +/**************************************************************************/ + +#ifndef TX_PORT_H +#define TX_PORT_H + + + +/* #define TX_MISRA_ENABLE */ + + +/* #define TX_INLINE_INITIALIZATION */ + +/* #define TX_NOT_INTERRUPTABLE */ +/* #define TX_TIMER_PROCESS_IN_ISR */ +/* #define TX_REACTIVATE_INLINE */ +/* #define TX_DISABLE_STACK_FILLING */ +/* #define TX_ENABLE_STACK_CHECKING */ +/* #define TX_DISABLE_PREEMPTION_THRESHOLD */ +/* #define TX_DISABLE_REDUNDANT_CLEARING */ +/* #define TX_DISABLE_NOTIFY_CALLBACKS */ +/* #define TX_INLINE_THREAD_RESUME_SUSPEND */ +/* #define TX_ENABLE_EVENT_TRACE */ + + +/* For MISRA, define enable performance info. Also, for MISRA TX_DISABLE_NOTIFY_CALLBACKS should not be defined. */ + + +/* #define TX_BLOCK_POOL_ENABLE_PERFORMANCE_INFO +#define TX_BYTE_POOL_ENABLE_PERFORMANCE_INFO +#define TX_EVENT_FLAGS_ENABLE_PERFORMANCE_INFO +#define TX_MUTEX_ENABLE_PERFORMANCE_INFO +#define TX_QUEUE_ENABLE_PERFORMANCE_INFO +#define TX_SEMAPHORE_ENABLE_PERFORMANCE_INFO +#define TX_THREAD_ENABLE_PERFORMANCE_INFO +#define TX_TIMER_ENABLE_PERFORMANCE_INFO */ + + + +/* Determine if the optional ThreadX user define file should be used. */ + +#ifdef TX_INCLUDE_USER_DEFINE_FILE + + +/* Yes, include the user defines in tx_user.h. The defines in this file may + alternately be defined on the command line. */ + +#include "tx_user.h" +#endif + + +/* Define compiler library include files. */ + +#include +#include +#include + +/* iLLD core intrinsics, the service request of the dispatch interrupt and + the trace time source. */ +#include "IfxCpu_Intrinsics.h" +#include "IfxSrc.h" +#include "IfxStm_reg.h" + + + + +/* Define ThreadX basic types for this port. */ + +#define VOID void +typedef char CHAR; +typedef unsigned char UCHAR; +typedef int INT; +typedef unsigned int UINT; +typedef long LONG; +typedef unsigned long ULONG; +typedef unsigned long long ULONG64; +typedef short SHORT; +typedef unsigned short USHORT; +#define ULONG64_DEFINED + + +/* Define automated coverage test extensions for the ThreadX regression test. */ + +#ifndef __ASSEMBLER__ + +typedef unsigned int TEST_FLAG; +extern TEST_FLAG threadx_byte_allocate_loop_test; +extern TEST_FLAG threadx_byte_release_loop_test; +extern TEST_FLAG threadx_mutex_suspension_put_test; +extern TEST_FLAG threadx_mutex_suspension_priority_test; +#ifndef TX_TIMER_PROCESS_IN_ISR +extern TEST_FLAG threadx_delete_timer_thread; +#endif + +extern void abort_and_resume_byte_allocating_thread(void); +extern void abort_all_threads_suspended_on_mutex(void); +extern void suspend_lowest_priority(void); +#ifndef TX_TIMER_PROCESS_IN_ISR +extern void delete_timer_thread(void); +#endif +extern TEST_FLAG test_stack_analyze_flag; +extern TEST_FLAG test_initialize_flag; +extern TEST_FLAG test_forced_mutex_timeout; + + +#ifdef TX_REGRESSION_TEST + +#define TX_BYTE_ALLOCATE_EXTENSION if (threadx_byte_allocate_loop_test == ((TEST_FLAG) 1)) \ + { \ + pool_ptr -> tx_byte_pool_owner = TX_NULL; \ + threadx_byte_allocate_loop_test = ((TEST_FLAG) 0); \ + } + +#define TX_BYTE_RELEASE_EXTENSION if (threadx_byte_release_loop_test == ((TEST_FLAG) 1)) \ + { \ + threadx_byte_release_loop_test = ((TEST_FLAG) 0); \ + abort_and_resume_byte_allocating_thread(); \ + } + +#define TX_MUTEX_PUT_EXTENSION_1 if (threadx_mutex_suspension_put_test == ((TEST_FLAG) 1)) \ + { \ + threadx_mutex_suspension_put_test = ((TEST_FLAG) 0); \ + abort_all_threads_suspended_on_mutex(); \ + } + +#define TX_MUTEX_PUT_EXTENSION_2 if (test_forced_mutex_timeout == ((TEST_FLAG) 1)) \ + { \ + test_forced_mutex_timeout = ((TEST_FLAG) 0); \ + _tx_thread_wait_abort(mutex_ptr -> tx_mutex_suspension_list); \ + } + +#define TX_MUTEX_PRIORITY_CHANGE_EXTENSION if (threadx_mutex_suspension_priority_test == ((TEST_FLAG) 1)) \ + { \ + threadx_mutex_suspension_priority_test = ((TEST_FLAG) 0); \ + suspend_lowest_priority(); \ + } + +#ifndef TX_TIMER_PROCESS_IN_ISR + +#define TX_TIMER_INITIALIZE_EXTENSION(a) if (threadx_delete_timer_thread == ((TEST_FLAG) 1)) \ + { \ + threadx_delete_timer_thread = ((TEST_FLAG) 0); \ + delete_timer_thread(); \ + (a) = ((UINT) 1); \ + } + +#endif + +#define TX_THREAD_STACK_ANALYZE_EXTENSION if (test_stack_analyze_flag == ((TEST_FLAG) 1)) \ + { \ + thread_ptr -> tx_thread_id = ((TEST_FLAG) 0); \ + test_stack_analyze_flag = ((TEST_FLAG) 0); \ + } \ + else if (test_stack_analyze_flag == ((TEST_FLAG) 2)) \ + { \ + stack_ptr = thread_ptr -> tx_thread_stack_start; \ + test_stack_analyze_flag = ((TEST_FLAG) 0); \ + } \ + else if (test_stack_analyze_flag == ((TEST_FLAG) 3)) \ + { \ + *stack_ptr = TX_STACK_FILL; \ + test_stack_analyze_flag = ((TEST_FLAG) 0); \ + } \ + else \ + { \ + test_stack_analyze_flag = ((TEST_FLAG) 0); \ + } + +#define TX_INITIALIZE_KERNEL_ENTER_EXTENSION if (test_initialize_flag == ((TEST_FLAG) 1)) \ + { \ + test_initialize_flag = ((TEST_FLAG) 0); \ + return; \ + } + +#endif /* TX_REGRESSION_TEST */ + +#endif /* __ASSEMBLER__ */ + + + + +/* TriCore core registers used by the inline functions of this file. The + definitions shared only by the port sources are in src/tx_port_tricore.h. */ + +#define TX_PORT_TRICORE_CSFR_PSW 0xFE04 +#define TX_PORT_TRICORE_CSFR_ICR 0xFE2C + +#define TX_PORT_TRICORE_PSW_IS_OFF 9 /* 1: interrupt stack in use */ +#define TX_PORT_TRICORE_ICR_CCPN_MSK 0x000000FFUL /* Current CPU priority number */ +#define TX_PORT_TRICORE_ICR_IE_MSK 0x00008000UL /* Global interrupt enable */ + +/* System call that enters the scheduler. */ +#define TX_PORT_TRICORE_SYSCALL_ID 0 + + +/* The dispatch interrupt switches threads on behalf of interrupt handlers. + Its priority shall be below every interrupt that calls ThreadX services, + including the timer interrupt. */ +#ifndef TX_PORT_TRICORE_DISPATCH_PRIORITY +#define TX_PORT_TRICORE_DISPATCH_PRIORITY 1 +#endif + +#ifndef TX_PORT_TRICORE_DISPATCH_SRC +#define TX_PORT_TRICORE_DISPATCH_SRC SRC_GPSR_GPSR0_SR0 +#endif + +#ifndef TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY +#define TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY 2 +#endif + + +/* Define the TX_MEMSET macro to remove library reference. The local names + carry the prefix tx_memset_ so that they do not hide an argument of the + same name. */ + +#ifndef TX_MISRA_ENABLE +#define TX_MEMSET(a,b,c) do \ + { \ + UCHAR *tx_memset_ptr; \ + UCHAR tx_memset_value; \ + UINT tx_memset_index; \ + UINT tx_memset_size; \ + tx_memset_ptr = (UCHAR *) ((VOID *) (a)); \ + tx_memset_value = (UCHAR) (b); \ + tx_memset_size = (UINT) (c); \ + for (tx_memset_index = 0U; tx_memset_index < tx_memset_size; tx_memset_index++) \ + { \ + tx_memset_ptr[tx_memset_index] = tx_memset_value; \ + } \ + } while (0) +#endif + + +/* Define the priority levels for ThreadX. Legal values range + from 32 to 1024 and MUST be evenly divisible by 32. */ + +#ifndef TX_MAX_PRIORITIES +#define TX_MAX_PRIORITIES 32 +#endif + + +/* Define the minimum stack for a ThreadX thread on this processor. If the size supplied during + thread creation is less than this value, the thread create call will return an error. */ + +#ifndef TX_MINIMUM_STACK +#define TX_MINIMUM_STACK 200 /* Minimum stack size for this port */ +#endif + + +/* Define the system timer thread's default stack size and priority. These are only applicable + if TX_TIMER_PROCESS_IN_ISR is not defined. */ + +#ifndef TX_TIMER_THREAD_STACK_SIZE +#define TX_TIMER_THREAD_STACK_SIZE 1024 /* Default timer thread stack size */ +#endif + +#ifndef TX_TIMER_THREAD_PRIORITY +#define TX_TIMER_THREAD_PRIORITY 0 /* Default timer thread priority */ +#endif + + +/* By default, TX_DISABLE masks all interrupts by clearing ICR.IE. If + TX_PORT_USE_CCPN is defined, TX_DISABLE raises ICR.CCPN to TX_PORT_CCPN + instead, and interrupts with a priority above TX_PORT_CCPN stay enabled. + Such interrupts shall not call ThreadX services. TX_DISABLE never lowers + ICR.CCPN. Both symbols can be defined in tx_user.h. */ + +/* #define TX_PORT_USE_CCPN */ + +#ifndef TX_PORT_CCPN +#define TX_PORT_CCPN 31 +#endif + +/* Define various constants for the ThreadX port. */ + +/* The interrupt posture of tx_interrupt_control is ICR.IE. */ +#define TX_INT_DISABLE 0 +#define TX_INT_ENABLE TX_PORT_TRICORE_ICR_IE_MSK + + +#ifndef TX_TIMER_TICKS_PER_SECOND +#define TX_TIMER_TICKS_PER_SECOND (1000UL) +#endif + + +/* Define the clock source for trace event entry time stamp. The following two item are port specific. + For example, if the time source is at the address 0x0a800024 and is 16-bits in size, the clock + source constants would be: + +#define TX_TRACE_TIME_SOURCE *((ULONG *) 0x0a800024) +#define TX_TRACE_TIME_MASK 0x0000FFFFUL + +*/ + +#ifndef TX_MISRA_ENABLE +#ifndef TX_TRACE_TIME_SOURCE +#define TX_TRACE_TIME_SOURCE STM0_TIM0.U +#endif +#else +#ifndef TX_TRACE_TIME_SOURCE +ULONG _tx_misra_time_stamp_get(VOID); +#define TX_TRACE_TIME_SOURCE _tx_misra_time_stamp_get() +#endif +#endif + +/* Time source of the execution profile kit. */ +#ifndef TX_EXECUTION_TIME_SOURCE +#define TX_EXECUTION_TIME_SOURCE (EXECUTION_TIME_SOURCE_TYPE) STM0_TIM0.U +#endif + +#ifndef TX_TRACE_TIME_MASK +#define TX_TRACE_TIME_MASK 0xFFFFFFFFUL +#endif + + + +/* Define the port specific options for the _tx_build_options variable. This variable indicates + how the ThreadX library was built. */ + +#define TX_PORT_SPECIFIC_BUILD_OPTIONS (0) + + +/* Define the in-line initialization constant so that modules with in-line + initialization capabilities can prevent their initialization from being + a function call. */ + +#ifdef TX_MISRA_ENABLE +#define TX_DISABLE_INLINE +#else +#define TX_INLINE_INITIALIZATION +#endif + + +/* Determine whether or not stack checking is enabled. By default, ThreadX stack checking is + disabled. When the following is defined, ThreadX thread stack checking is enabled. If stack + checking is enabled (TX_ENABLE_STACK_CHECKING is defined), the TX_DISABLE_STACK_FILLING + define is negated, thereby forcing the stack fill which is necessary for the stack checking + logic. */ + +#ifndef TX_MISRA_ENABLE +#ifdef TX_ENABLE_STACK_CHECKING +#undef TX_DISABLE_STACK_FILLING +#endif +#endif + + +/* Define the TX_THREAD control block extensions for this port. The main reason + for the multiple macros is so that backward compatibility can be maintained with + existing ThreadX kernel awareness modules. */ + +#define TX_THREAD_EXTENSION_0 UINT tx_thread_csa; +#define TX_THREAD_EXTENSION_1 +#define TX_THREAD_EXTENSION_2 +#define TX_THREAD_EXTENSION_3 + + + +/* Define the port extensions of the remaining ThreadX objects. */ + +#define TX_BLOCK_POOL_EXTENSION +#define TX_BYTE_POOL_EXTENSION +#define TX_EVENT_FLAGS_GROUP_EXTENSION +#define TX_MUTEX_EXTENSION +#define TX_QUEUE_EXTENSION +#define TX_SEMAPHORE_EXTENSION +#define TX_TIMER_EXTENSION + + +/* Define the user extension field of the thread control block. Nothing + additional is needed for this port so it is defined as white space. */ + +#ifndef TX_THREAD_USER_EXTENSION +#define TX_THREAD_USER_EXTENSION +#endif + + +/* Define the macros for processing extensions in tx_thread_create, tx_thread_delete, + tx_thread_shell_entry, and tx_thread_terminate. */ + + +#define TX_THREAD_CREATE_EXTENSION(thread_ptr) +struct TX_THREAD_STRUCT; +VOID _tx_thread_csa_release(struct TX_THREAD_STRUCT *thread_ptr); +#define TX_THREAD_DELETE_EXTENSION(thread_ptr) _tx_thread_csa_release(thread_ptr); +#define TX_THREAD_COMPLETED_EXTENSION(thread_ptr) +#define TX_THREAD_TERMINATED_EXTENSION(thread_ptr) + + +/* Define the ThreadX object creation extensions for the remaining objects. */ + +#define TX_BLOCK_POOL_CREATE_EXTENSION(pool_ptr) +#define TX_BYTE_POOL_CREATE_EXTENSION(pool_ptr) +#define TX_EVENT_FLAGS_GROUP_CREATE_EXTENSION(group_ptr) +#define TX_MUTEX_CREATE_EXTENSION(mutex_ptr) +#define TX_QUEUE_CREATE_EXTENSION(queue_ptr) +#define TX_SEMAPHORE_CREATE_EXTENSION(semaphore_ptr) +#define TX_TIMER_CREATE_EXTENSION(timer_ptr) + + +/* Define the ThreadX object deletion extensions for the remaining objects. */ + +#define TX_BLOCK_POOL_DELETE_EXTENSION(pool_ptr) +#define TX_BYTE_POOL_DELETE_EXTENSION(pool_ptr) +#define TX_EVENT_FLAGS_GROUP_DELETE_EXTENSION(group_ptr) +#define TX_MUTEX_DELETE_EXTENSION(mutex_ptr) +#define TX_QUEUE_DELETE_EXTENSION(queue_ptr) +#define TX_SEMAPHORE_DELETE_EXTENSION(semaphore_ptr) +#define TX_TIMER_DELETE_EXTENSION(timer_ptr) + + +/* Returns PSW.IS: 1 in interrupt and trap handlers, 0 in threads. */ + +__attribute__( ( always_inline ) ) static inline unsigned int __get_interrupt_state(void) +{ + UINT psw; + psw = __mfcr(TX_PORT_TRICORE_CSFR_PSW); + __isync(); + return (psw >> TX_PORT_TRICORE_PSW_IS_OFF) & 1U; +} + +#ifndef TX_THREAD_GET_SYSTEM_STATE +#ifndef TX_MISRA_ENABLE +#define TX_THREAD_GET_SYSTEM_STATE() (_tx_thread_system_state | __get_interrupt_state()) + + +#else /* TX_MISRA_ENABLE is defined, use MISRA function. */ +ULONG _tx_misra_interrupt_state_get(VOID); +#define TX_THREAD_GET_SYSTEM_STATE() (_tx_thread_system_state | _tx_misra_interrupt_state_get()) +#endif /* TX_MISRA_ENABLE */ +#endif /* TX_THREAD_GET_SYSTEM_STATE */ + + +/* Define the check for whether or not to call the _tx_thread_system_return function. A non-zero value + indicates that _tx_thread_system_return should not be called. This overrides the definition in tx_thread.h: + _tx_thread_system_return checks the interrupt state itself (PSW.IS), so only the preemption state is + checked here. */ + +#ifndef TX_THREAD_SYSTEM_RETURN_CHECK +#define TX_THREAD_SYSTEM_RETURN_CHECK(c) (c) = ((ULONG) _tx_thread_preempt_disable); +#endif + + +/* The switch takes place once no higher-priority interrupt is active. */ + +__attribute__( ( always_inline ) ) static inline void _tx_thread_dispatch_request(void) +{ + IfxSrc_setRequest(&TX_PORT_TRICORE_DISPATCH_SRC); + __dsync(); +} + +/* Define the macro to ensure _tx_thread_preempt_disable is set early in initialization in order to + prevent early scheduling. _tx_thread_schedule clears it before the first thread runs. */ +#define TX_PORT_SPECIFIC_POST_INITIALIZATION _tx_thread_preempt_disable++; + + + + +/* Define the interrupt disable/restore functions. */ + +__attribute__( ( always_inline ) ) static inline unsigned int __get_interrupt_posture(void) +{ + UINT posture; + posture =__mfcr(TX_PORT_TRICORE_CSFR_ICR); + __isync(); + return posture; +} + + +__attribute__( ( always_inline ) ) static inline void __set_ccpn_value(unsigned int ccpn_value) +{ + UINT icr; + icr = __mfcr(TX_PORT_TRICORE_CSFR_ICR); + icr = (icr & ~((UINT) TX_PORT_TRICORE_ICR_CCPN_MSK)) | (ccpn_value & ((UINT) TX_PORT_TRICORE_ICR_CCPN_MSK)); + __mtcr(TX_PORT_TRICORE_CSFR_ICR, icr); + __isync(); +} + +__attribute__( ( always_inline ) ) static inline void __enable_interrupts(void) +{ + __enable(); +} + +__attribute__( ( always_inline ) ) static inline void __restore_interrupt(unsigned int posture) +{ + __mtcr(TX_PORT_TRICORE_CSFR_ICR, posture); + __isync(); +} + +__attribute__( ( always_inline ) ) static inline unsigned int __disable_interrupts(void) +{ + UINT posture; + + posture = __get_interrupt_posture(); + +#ifdef TX_PORT_USE_CCPN + /* TX_DISABLE shall not lower CCPN. */ + if ((posture & TX_PORT_TRICORE_ICR_CCPN_MSK) < TX_PORT_CCPN) + { + __set_ccpn_value(TX_PORT_CCPN); + } +#else + __disable(); +#endif + + return posture; +} + + +/* tx_thread_system_return.c calls this function when TX_DISABLE_INLINE is + defined. */ +__attribute__( ( always_inline ) ) static inline void _tx_thread_system_return_inline(void) +{ + unsigned int interrupt_save; + + /* Thread code switches through the system call, interrupt and trap + handlers (PSW.IS = 1) through the dispatch interrupt. */ + if (__get_interrupt_state() == 0U) + { + interrupt_save = __get_interrupt_posture(); +#ifdef TX_PORT_USE_CCPN + __set_ccpn_value(0); +#else + __enable_interrupts(); +#endif + __syscall(TX_PORT_TRICORE_SYSCALL_ID); + __restore_interrupt(interrupt_save); + } + else + { + _tx_thread_dispatch_request(); + } +} + + +#ifndef TX_DISABLE_INLINE + +#define TX_INTERRUPT_SAVE_AREA UINT interrupt_save; +#define TX_DISABLE interrupt_save = __disable_interrupts(); +#define TX_RESTORE __restore_interrupt(interrupt_save); + +/* Redefine _tx_thread_system_return for improved performance. */ + +#define _tx_thread_system_return _tx_thread_system_return_inline + +#else /* TX_DISABLE_INLINE is defined */ + +UINT _tx_thread_interrupt_disable(void); +VOID _tx_thread_interrupt_restore(UINT previous_posture); + +#define TX_INTERRUPT_SAVE_AREA UINT interrupt_save; + +#define TX_DISABLE interrupt_save = _tx_thread_interrupt_disable(); +#define TX_RESTORE _tx_thread_interrupt_restore(interrupt_save); +#endif /* TX_DISABLE_INLINE */ + + + +/* Define the version ID of ThreadX. This may be utilized by the application. */ + +#ifdef TX_THREAD_INIT +CHAR _tx_version_id[] = + "(c) 2024 Microsoft Corp. (c) 2026-present Eclipse ThreadX contributors. * ThreadX TriCore TC1.6.2/GNU Version 6.5.2.202603b *"; +#else +#ifdef TX_MISRA_ENABLE +extern CHAR _tx_version_id[100]; +#else +extern CHAR _tx_version_id[]; +#endif +#endif + + +#endif diff --git a/ports/tricore_tc1_6_2/gnu/readme_threadx.txt b/ports/tricore_tc1_6_2/gnu/readme_threadx.txt new file mode 100755 index 000000000..62f189149 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/readme_threadx.txt @@ -0,0 +1,201 @@ + Eclipse ThreadX for TriCore TC1.6.2 (Infineon AURIX TC3) + + Using the AURIX GCC Tools + + +1. Prerequisites + +The port runs on CPU0 of an AURIX TC3 device and was developed on the AURIX +TC375 Lite Kit (KIT_A2G_TC375_LITE). It requires the AURIX GCC +(tricore-elf-gcc) on PATH and the Infineon iLLD, which is not part of this +repository. AURIX_ILLD_DIR shall name the directory that holds the iLLD, +Infra and Service folders. The example build was built and tested with +iLLD 1.22.0. + +The iLLD headers include the board configuration Ifx_Cfg.h. The one for the +TC375 Lite Kit (DEVICE_TC37X, IFX_PIN_PACKAGE_LQFP176) is in +example_build/aurix_lite_kit_v2. + + +2. Building the ThreadX Run-time Library + +In example_build/aurix_lite_kit_v2, run: + + AURIX_ILLD_DIR=/path/to/Libraries ./build_threadx.sh + +or, with CMake from the repository root: + + cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=cmake/tricore_tc1_6_2.cmake \ + -DAURIX_ILLD_DIR=/path/to/Libraries + cmake --build build + +The CMake variable AURIX_CFG_DIR selects a different directory for +Ifx_Cfg.h. Both builds produce the library tx.a, which the application links. +tx.a does not contain _tx_initialize_low_level and the timer interrupt, +because both depend on the board; the application provides them (section 4). + +inc/tx_port.h holds the definitions for the ThreadX common sources and the +application, including the settings that tx_user.h or the command line may +override. src/tx_port_tricore.h holds the definitions that only the port +sources use: the CSA layout, the initial thread context and the core +registers. + + +3. Demonstration System + +After tx.a is built, run in example_build/aurix_lite_kit_v2: + + AURIX_ILLD_DIR=/path/to/Libraries ./build_threadx_sample.sh + +This builds sample_threadx.elf for the TC375 Lite Kit from: + + sample_threadx.c samples/demo_threadx.c without main() and with + the event trace start (section 8) + tx_initialize_low_level.c low-level initialisation and timer interrupt + Cpu0_Main.c CPU0 entry, calls tx_kernel_enter (Infineon) + Cpu1_Main.c, Cpu2_Main.c CPU1 and CPU2 entry, idle (Infineon) + Ifx_Cfg_Trap.h iLLD trap hook for the ThreadX system call + Ifx_Cfg.h clock configuration (Infineon) + Ifx_Cfg_Ssw.c/.h iLLD start-up configuration (Infineon) + Ifx_Cfg_SswBmhd.c boot mode headers (Infineon) + Lcf_Gnuc_Tricore_Tc.lsl linker script (Infineon, with __TX_FREE_MEM) + +and the iLLD start-up code and drivers listed in build_threadx_sample.sh. + +The files marked (Infineon) are Copyright (C) Infineon Technologies AG and +are licensed under the Boost Software License 1.0, as stated in their +headers, not under the MIT License of ThreadX. They are adapted for the +ThreadX demonstration. The iLLD itself is not part of this repository and +is subject to its own Infineon license. + + +4. System Initialization + +The iLLD start-up code initialises each CPU and calls core0_main to +core2_main. The linker script places the code and data of Cpu_Main.c in +the memories of CPU. core0_main disables the CPU0 and safety watchdogs, +waits until all CPUs have started and calls tx_kernel_enter. Interrupts stay +disabled from reset until _tx_thread_schedule starts the first thread. + +_tx_initialize_low_level: + + - sets the first unused memory to __TX_FREE_MEM, which the linker script + defines after the heap in the data RAM of CPU0; the memory up to + __USTACK0_END is free for tx_application_define, + - sets up the ThreadX timer (section 7), + - sets up the dispatch interrupt (section 5). + + +5. Thread Scheduling + +ThreadX enters the scheduler through syscall 0. The iLLD system call trap +calls the hook IFX_CFG_CPU_TRAP_SYSCALL_CPU0_HOOK in Ifx_Cfg_Trap.h, which +shall call _tx_thread_syscall_handler directly. + +An interrupt or trap handler that makes another thread ready requests the +dispatch interrupt _tx_thread_dispatch_isr, a software request on +TX_PORT_TRICORE_DISPATCH_SRC (SRC_GPSR_GPSR0_SR0 by default) at +TX_PORT_TRICORE_DISPATCH_PRIORITY (1 by default). It switches threads once no +interrupt of a higher priority is active. + + +6. Thread Context + +A thread's context is its CSA chain. tx_thread_csa (TX_THREAD_EXTENSION_0) +holds the link to the chain of a suspended thread: + + lower context saved by SVLCX in the iLLD interrupt or trap entry; + A11 holds the resume address + upper context saved on entry to the system call or the dispatch + interrupt; A10 and PSW of the thread + call contexts one upper context for each call level of the thread + +The context save walks TX_PORT_TRICORE_SYSCALL_CALL_DEPTH or +TX_PORT_TRICORE_DISPATCH_CALL_DEPTH links back from the handler +(src/tx_port_tricore.h). It copies A10 of the upper context to +tx_thread_stack_ptr for ThreadX stack checking. The thread stack holds only +local data. + +_tx_thread_stack_build gives a new thread two CSAs, all other words 0: + + lower context A11 = entry function, PCXI.PIE = 1, PCXI.UL = 1 and + the link to the upper context + upper context A10 = stack end, aligned to 8 bytes; PSW.IO = 2, + PRS 0, call depth counting disabled; no link + +The scheduler restores both like a suspended thread, so the thread starts at +its entry function with interrupts enabled. + +The FPU state is part of the CSAs, so threads use the FPU without setup. + +CSA budget: a suspended thread holds one CSA per call level plus two; each +active interrupt or trap holds two plus one per call level. ThreadX stack +checking does not cover the CSAs. The CSA area of CPU0 (LCF_CSA0_SIZE) shall +hold the chains of all threads plus the deepest interrupt nesting, up to LCX +as set by Ifx_Ssw_initCSA. If the CSAs for a new thread would reach LCX, +tx_thread_create or tx_thread_reset raises FCD. + + +7. Timer and Interrupt Handling + +The ThreadX timer uses STM0 compare 0. _tx_initialize_low_level derives the +period from IfxStm_getFrequency and TX_TIMER_TICKS_PER_SECOND (1000 by +default). TimerInterruptHandler (IFX_INTERRUPT, priority +TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY, 2 by default) clears the compare +flag, sets the next compare one period after the previous one and calls +_tx_timer_interrupt. If STM has already passed that value, for example after +a debugger halt, the next compare is one period from now and the ticks in +between are lost. + +TX_DISABLE clears ICR.IE by default. With TX_PORT_USE_CCPN defined, it +raises ICR.CCPN to TX_PORT_CCPN (31 by default) instead and never lowers it; +interrupts above TX_PORT_CCPN stay enabled in ThreadX critical sections and +shall not call ThreadX services. TX_RESTORE restores the previous ICR. + +An ISR that calls ThreadX services is a plain IFX_INTERRUPT function on CPU0 +with a priority above TX_PORT_TRICORE_DISPATCH_PRIORITY and, with +TX_PORT_USE_CCPN, not above TX_PORT_CCPN. _tx_thread_context_save and +_tx_thread_context_restore have no effect on this port. + +Interrupts and traps taken from a thread switch to the CPU0 interrupt stack +(LCF_ISTACK0_SIZE, 1 KiB). It holds the local data of all nested handlers, +including the scheduler's idle wait, so thread stacks need no interrupt +reserve. + +IFX_USE_SW_MANAGED_INT shall not be defined: IFX_INTERRUPT then creates no +vector table entry, and the iLLD dispatcher adds a call level that +TX_PORT_TRICORE_DISPATCH_CALL_DEPTH does not count. + + +8. Event Trace + +With TX_ENABLE_EVENT_TRACE, the application calls tx_trace_enable with its +trace buffer, at the earliest at the start of tx_application_define, because +kernel initialisation resets the trace. The demonstration does so with a +4000-byte buffer and 30 registry entries. The time stamp is STM0_TIM0 +(TX_TRACE_TIME_SOURCE in tx_port.h). + + +9. Execution Profile and Low Power + +For TX_EXECUTION_PROFILE_ENABLE and TX_LOW_POWER the port implements only the +callouts. The regression configurations execution_profile_build and +low_power_build (test/tx/cmake/tricore_tc1_6_2) show only that the callouts +do not disturb the kernel: no test reads the measured times, and none of +TX_LOW_POWER_TIMER_SETUP, TX_LOW_POWER_TICKLESS and TX_LOW_POWER_USER_* is +defined. + + +10. Improving Performance + +The build scripts and cmake/tricore_tc1_6_2.cmake compile with -O0 -g3 for +debugging. The regression test also passes with -O2. TX_DISABLE_ERROR_CHECKING +removes the ThreadX API error checking. + + +11. Revision History + +For generic code revision information, refer to readme_threadx_generic.txt. +The following details the revision information of this port: + +Initial ThreadX version 6.5.2 for TriCore TC1.6.2 using AURIX GCC tools. diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_port_tricore.h b/ports/tricore_tc1_6_2/gnu/src/tx_port_tricore.h new file mode 100644 index 000000000..2a60fd7bc --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/src/tx_port_tricore.h @@ -0,0 +1,86 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + + +/* Definitions shared by the sources of the TriCore port. Neither the ThreadX + common sources nor the application include this file. */ + +#ifndef TX_PORT_TRICORE_H +#define TX_PORT_TRICORE_H + +#include "IfxCpu_bf.h" + + +/* TriCore core registers. */ + +#define TX_PORT_TRICORE_CSFR_PCXI 0xFE00 +#define TX_PORT_TRICORE_CSFR_FCX 0xFE38 +#define TX_PORT_TRICORE_CSFR_LCX 0xFE3C + + +/* Context save areas (CSAs). A link word holds the segment of a CSA in bits + 19:16 and its offset, divided by 64, in bits 15:0. */ + +#define TX_PORT_TRICORE_CSA_SIZE 64 + +#define TX_PORT_TRICORE_CSA_LINK_SEGMENT_OFF 16 +#define TX_PORT_TRICORE_CSA_LINK_SEGMENT_MASK 0x000F0000UL +#define TX_PORT_TRICORE_CSA_LINK_OFFSET_MASK 0x0000FFFFUL +#define TX_PORT_TRICORE_CSA_LINK_MASK (TX_PORT_TRICORE_CSA_LINK_SEGMENT_MASK | TX_PORT_TRICORE_CSA_LINK_OFFSET_MASK) + +/* Bit positions of the segment and of the offset in the address of a CSA. */ +#define TX_PORT_TRICORE_CSA_ADDRESS_SEGMENT_OFF 28 +#define TX_PORT_TRICORE_CSA_ADDRESS_OFFSET_OFF 6 + +/* Word indices within a CSA. */ +#define TX_PORT_TRICORE_CSA_PCXI_LINK_WORD 0 +#define TX_PORT_TRICORE_CSA_LOWER_CONTEXT_A11_RA 1 + +#define TX_PORT_TRICORE_CSA_UPPER_CONTEXT_PCXI_LINK_WORD 0 +#define TX_PORT_TRICORE_CSA_UPPER_CONTEXT_PSW 1 +#define TX_PORT_TRICORE_CSA_UPPER_CONTEXT_A10_STACK_PTR 2 +#define TX_PORT_TRICORE_CSA_UPPER_CONTEXT_A11_RA 3 + +/* Initial context of a thread. */ +#define TX_PORT_TRICORE_PSW_IO_SUPERVISOR 2UL + +/* Supervisor mode, protection register set 0. PSW.CDC = 0x7F disables call + depth counting. */ +#define TX_PORT_TRICORE_CSA_INITIAL_SYSTEM_PSW ((TX_PORT_TRICORE_PSW_IO_SUPERVISOR << IFX_CPU_PSW_IO_OFF) | \ + (1UL << IFX_CPU_PSW_CDE_OFF) | \ + ((UINT) IFX_CPU_PSW_CDC_MSK << IFX_CPU_PSW_CDC_OFF)) +/* PCXI.UL = 1: links to an upper context. */ +#define TX_PORT_TRICORE_CSA_INITIAL_LOWER_PCXI ((1UL << IFX_CPU_PCXI_UL_OFF) | (1UL << IFX_CPU_PCXI_PIE_OFF)) +#define TX_PORT_TRICORE_CSA_INITIAL_UPPER_PCXI (1UL << IFX_CPU_PCXI_PIE_OFF) + +#define TX_PORT_TRICORE_STACK_ALIGNMENT 8U + +#define TX_PORT_TRICORE_CSA_LINK_WORD_END_OF_CHAIN 0U + + +/* CSA links from _tx_thread_csa_save and _tx_thread_csa_restore back to the + lower context of the interrupted thread. */ + +#define TX_PORT_TRICORE_SYSCALL_CALL_DEPTH 3 +#define TX_PORT_TRICORE_DISPATCH_CALL_DEPTH 2 + + +#ifndef __ASSEMBLER__ + +#include "tx_api.h" + +UINT * _tx_thread_decode_link_word(UINT link_word); + +#endif /* __ASSEMBLER__ */ + +#endif /* TX_PORT_TRICORE_H */ diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_thread_context_restore.c b/ports/tricore_tc1_6_2/gnu/src/tx_thread_context_restore.c new file mode 100755 index 000000000..0e7a45ce5 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/src/tx_thread_context_restore.c @@ -0,0 +1,76 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** ThreadX Component */ +/** */ +/** Thread */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + + +#define TX_SOURCE_CODE + + +/* Include necessary system files. */ + +#include "tx_api.h" +#include "tx_thread.h" +#include "tx_timer.h" + + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _tx_thread_context_restore TriCore/GNU */ +/* 6.5.2 */ +/* AUTHOR */ +/* */ +/* Andreas Neubauer, safecubed GmbH */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function has no effect on this port. The dispatch interrupt */ +/* switches threads, so an ISR need not call this function. */ +/* */ +/* INPUT */ +/* */ +/* None */ +/* */ +/* OUTPUT */ +/* */ +/* None */ +/* */ +/* CALLS */ +/* */ +/* None */ +/* */ +/* CALLED BY */ +/* */ +/* ISRs Interrupt Service Routines */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ +/* 11-04-2026 Andreas Neubauer Initial Version 6.5.2 */ +/* */ +/**************************************************************************/ +VOID _tx_thread_context_restore(VOID) +{ +} diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_thread_context_save.c b/ports/tricore_tc1_6_2/gnu/src/tx_thread_context_save.c new file mode 100755 index 000000000..37cb0ab8e --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/src/tx_thread_context_save.c @@ -0,0 +1,76 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** ThreadX Component */ +/** */ +/** Thread */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + + +#define TX_SOURCE_CODE + + +/* Include necessary system files. */ + +#include "tx_api.h" +#include "tx_thread.h" +#include "tx_timer.h" + + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _tx_thread_context_save TriCore/GNU */ +/* 6.5.2 */ +/* AUTHOR */ +/* */ +/* Andreas Neubauer, safecubed GmbH */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function has no effect on this port. The dispatch interrupt */ +/* switches threads, so an ISR need not call this function. */ +/* */ +/* INPUT */ +/* */ +/* None */ +/* */ +/* OUTPUT */ +/* */ +/* None */ +/* */ +/* CALLS */ +/* */ +/* None */ +/* */ +/* CALLED BY */ +/* */ +/* ISRs */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ +/* 11-04-2026 Andreas Neubauer Initial Version 6.5.2 */ +/* */ +/**************************************************************************/ +VOID _tx_thread_context_save(VOID) +{ +} diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_thread_interrupt_control.c b/ports/tricore_tc1_6_2/gnu/src/tx_thread_interrupt_control.c new file mode 100755 index 000000000..e32161d58 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/src/tx_thread_interrupt_control.c @@ -0,0 +1,103 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** ThreadX Component */ +/** */ +/** Thread */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + +#define TX_SOURCE_CODE + + +/* Include necessary system files. */ + +#include "tx_api.h" +#include "tx_thread.h" + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _tx_thread_interrupt_control TriCore/GNU */ +/* 6.5.2 */ +/* AUTHOR */ +/* */ +/* Andreas Neubauer, safecubed GmbH */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function is responsible for changing the interrupt lockout */ +/* posture of the system. */ +/* */ +/* INPUT */ +/* */ +/* new_posture New interrupt lockout posture */ +/* */ +/* OUTPUT */ +/* */ +/* old_posture Old interrupt lockout posture */ +/* */ +/* CALLS */ +/* */ +/* None */ +/* */ +/* CALLED BY */ +/* */ +/* Application Code */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ +/* 11-04-2026 Andreas Neubauer Initial Version 6.5.2 */ +/* */ +/**************************************************************************/ +UINT _tx_thread_interrupt_control(UINT new_posture) +{ + + UINT icr; + + icr = __get_interrupt_posture(); + __restore_interrupt((icr & ~((UINT) TX_INT_ENABLE)) | (new_posture & ((UINT) TX_INT_ENABLE))); + + return(icr & ((UINT) TX_INT_ENABLE)); +} + + +#ifdef TX_DISABLE_INLINE +UINT _tx_thread_interrupt_disable(VOID) +{ + return(__disable_interrupts()); +} + + +VOID _tx_thread_interrupt_restore(UINT previous_posture) +{ + __restore_interrupt(previous_posture); +} +#endif + + +#ifdef TX_MISRA_ENABLE +ULONG _tx_misra_interrupt_state_get(VOID) +{ + return((ULONG) __get_interrupt_state()); +} +#endif + diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_thread_schedule.c b/ports/tricore_tc1_6_2/gnu/src/tx_thread_schedule.c new file mode 100755 index 000000000..1668c1066 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/src/tx_thread_schedule.c @@ -0,0 +1,270 @@ +/*************************************************************************** + * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** ThreadX Component */ +/** */ +/** Thread */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + + +#define TX_SOURCE_CODE + + +/* Include necessary system files. */ + +#include "tx_api.h" +#include "tx_thread.h" +#include "tx_timer.h" +#include "tx_port_tricore.h" + + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) +VOID _tx_execution_thread_enter(VOID); +VOID _tx_execution_thread_exit(VOID); +#endif + +#ifdef TX_LOW_POWER +VOID tx_low_power_enter(VOID); +VOID tx_low_power_exit(VOID); +#endif + + + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _tx_thread_schedule TriCore/GNU */ +/* 6.5.2 */ +/* AUTHOR */ +/* */ +/* Andreas Neubauer, safecubed GmbH */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function starts the first thread. It clears */ +/* _tx_thread_preempt_disable, which is set during initialisation by */ +/* TX_PORT_SPECIFIC_POST_INITIALIZATION, enables interrupts and enters */ +/* the scheduler through the system call. The scheduler waits until */ +/* _tx_thread_execute_ptr holds a thread and switches to it. A timer */ +/* interrupt that is already pending can start the first thread */ +/* through the dispatch interrupt before the system call is reached. */ +/* This function does not return. */ +/* */ +/* INPUT */ +/* */ +/* None */ +/* */ +/* OUTPUT */ +/* */ +/* None */ +/* */ +/* CALLS */ +/* */ +/* _tx_thread_syscall_handler Through the system call */ +/* */ +/* CALLED BY */ +/* */ +/* _tx_initialize_kernel_enter ThreadX entry function */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ +/* 11-04-2026 Andreas Neubauer Initial Version 6.5.2 */ +/* */ +/**************************************************************************/ + + + +VOID _tx_thread_schedule(VOID) +{ + + /* _tx_initialize_low_level has set up the timer and the dispatch + interrupt. A timer interrupt that is already pending runs as soon as + interrupts are enabled; a thread it makes ready starts through the + dispatch interrupt, and the system call below is not reached. */ + _tx_thread_preempt_disable = 0; + __enable(); + + __syscall(TX_PORT_TRICORE_SYSCALL_ID); + while(TX_TRUE) + { + + } + +} + + +UINT * _tx_thread_decode_link_word( UINT link_word ) +{ + UINT linked_context; + + linked_context = ((link_word & TX_PORT_TRICORE_CSA_LINK_SEGMENT_MASK) << (TX_PORT_TRICORE_CSA_ADDRESS_SEGMENT_OFF - TX_PORT_TRICORE_CSA_LINK_SEGMENT_OFF)) | + ((link_word & TX_PORT_TRICORE_CSA_LINK_OFFSET_MASK) << TX_PORT_TRICORE_CSA_ADDRESS_OFFSET_OFF); + return ( UINT * ) linked_context; +} + + + + +/* Each of the following functions shall be a call of its own: call_depth counts + the CSA frames that the calls create. */ + +static VOID __attribute__( ( noinline ) ) _tx_thread_csa_save(UINT call_depth) +{ + UINT * csa_ptr; + UINT * lower_csa_ptr; + UINT * upper_csa_ptr; + UINT lower_csa; + + __dsync(); + csa_ptr = _tx_thread_decode_link_word(__mfcr(TX_PORT_TRICORE_CSFR_PCXI)); + + for (UINT i = 0U; i < (call_depth - 1U); i++) + { + csa_ptr = _tx_thread_decode_link_word(csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD]); + } + + lower_csa = csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD]; + lower_csa_ptr = _tx_thread_decode_link_word(lower_csa); + upper_csa_ptr = _tx_thread_decode_link_word(lower_csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD]); + + _tx_thread_current_ptr->tx_thread_stack_ptr = (VOID *) upper_csa_ptr[TX_PORT_TRICORE_CSA_UPPER_CONTEXT_A10_STACK_PTR]; + _tx_thread_current_ptr->tx_thread_csa = lower_csa; +} + + +static VOID __attribute__( ( noinline ) ) _tx_thread_csa_restore(UINT call_depth) +{ + UINT * csa_ptr; + + __dsync(); + csa_ptr = _tx_thread_decode_link_word(__mfcr(TX_PORT_TRICORE_CSFR_PCXI)); + + for (UINT i = 0U; i < (call_depth - 1U); i++) + { + csa_ptr = _tx_thread_decode_link_word(csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD]); + } + + csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD] = _tx_thread_current_ptr->tx_thread_csa; +} + + +static VOID __attribute__( ( noinline ) ) _tx_ts_handler(UINT call_depth) +{ + + TX_THREAD *current_thread = _tx_thread_current_ptr; + TX_THREAD *next_thread; + + if (current_thread != TX_NULL) + { + if (_tx_timer_time_slice != 0U) + { + current_thread->tx_thread_time_slice = _tx_timer_time_slice; + _tx_timer_time_slice = 0; + } + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) + __disable(); + _tx_execution_thread_exit(); + __enable(); +#endif + + _tx_thread_csa_save(call_depth); + _tx_thread_current_ptr = TX_NULL; + } + + /* Increment the nested interrupt condition. */ + _tx_thread_system_state++; + + + /* Idle loop. ICR.CCPN blocks the dispatch interrupt here, so the loop + masks interrupts through ICR.IE. */ + while (TX_TRUE) + { + __disable(); + __nop(); + next_thread = _tx_thread_execute_ptr; + if (next_thread != TX_NULL) + { + _tx_thread_current_ptr = next_thread; + break; + } +#ifdef TX_LOW_POWER + tx_low_power_enter(); + tx_low_power_exit(); +#endif + __enable(); + __nop(); + } + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) + _tx_execution_thread_enter(); +#endif + + /* Interrupts stay disabled until the return to next_thread, so the switch + to next_thread satisfies every pending dispatch request. */ + IfxSrc_clearRequest(&TX_PORT_TRICORE_DISPATCH_SRC); + + next_thread->tx_thread_run_count++; + _tx_timer_time_slice = next_thread->tx_thread_time_slice; + + _tx_thread_system_state--; + + /* The CSA chain of the interrupted thread is still linked. */ + if (current_thread != next_thread) + { + _tx_thread_csa_restore(call_depth); + } + + return; +} + + + +VOID _tx_thread_syscall_handler(UCHAR id ) +{ + switch(id) + { + case TX_PORT_TRICORE_SYSCALL_ID: + /* The dispatch interrupt shall not interrupt the scheduler. RFE + restores the CCPN of the thread that the trap returns to. */ + __set_ccpn_value(TX_PORT_TRICORE_DISPATCH_PRIORITY); + + _tx_ts_handler(TX_PORT_TRICORE_SYSCALL_CALL_DEPTH); + break; + + default: + break; + } +} + + + +IFX_INTERRUPT(_tx_thread_dispatch_isr, 0, TX_PORT_TRICORE_DISPATCH_PRIORITY) +{ + /* A thread that has disabled preemption keeps the CPU. It enters the + scheduler through the system call once it enables preemption again. */ + if (_tx_thread_preempt_disable == 0U) + { + _tx_ts_handler(TX_PORT_TRICORE_DISPATCH_CALL_DEPTH); + } +} diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_thread_stack_build.c b/ports/tricore_tc1_6_2/gnu/src/tx_thread_stack_build.c new file mode 100755 index 000000000..4ffa16fd4 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/src/tx_thread_stack_build.c @@ -0,0 +1,193 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** ThreadX Component */ +/** */ +/** Thread */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + + +#define TX_SOURCE_CODE + + +/* Include necessary system files. */ + +#include "tx_api.h" +#include "tx_thread.h" + +#include "tx_port_tricore.h" + + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _tx_thread_stack_build TriCore/GNU */ +/* 6.5.2 */ +/* AUTHOR */ +/* */ +/* Andreas Neubauer, safecubed GmbH */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function builds the initial context of a thread. It takes two */ +/* CSAs from the free context list: a lower context and an upper */ +/* context. The thread starts at function_ptr when the scheduler */ +/* first restores its context. */ +/* */ +/* A CSA chain that the thread still holds, as after tx_thread_reset, */ +/* is released first. */ +/* */ +/* INPUT */ +/* */ +/* thread_ptr Pointer to thread control blk */ +/* function_ptr Function the thread starts at */ +/* */ +/* OUTPUT */ +/* */ +/* None */ +/* */ +/* CALLS */ +/* */ +/* _tx_thread_csa_release Release CSA chain of thread */ +/* _tx_thread_decode_link_word Convert link word to address */ +/* TX_MEMSET Clear CSA */ +/* */ +/* CALLED BY */ +/* */ +/* _tx_thread_create Create thread service */ +/* _tx_thread_reset Reset thread service */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ +/* 11-04-2026 Andreas Neubauer Initial Version 6.5.2 */ +/* */ +/**************************************************************************/ +VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) +{ + + TX_INTERRUPT_SAVE_AREA + UINT first_csa_pcxi_link_word = 0; + UINT second_csa_pcxi_link_word = 0; + UINT lcx_link_word; + UINT * first_csa_ptr = TX_NULL; + UINT * second_csa_ptr = TX_NULL; + UINT * thread_stack_ptr = (UINT *)((UINT)thread_ptr->tx_thread_stack_end & ~(TX_PORT_TRICORE_STACK_ALIGNMENT - 1U)); + + + /* tx_thread_reset rebuilds a thread that still holds its CSA chain. */ + _tx_thread_csa_release(thread_ptr); + + TX_DISABLE + + __dsync(); + + /* The CSA that LCX points to and the CSAs after it are the reserve of + the free context list depletion trap (FCD). The thread shall not + receive one of them. */ + lcx_link_word = __mfcr(TX_PORT_TRICORE_CSFR_LCX) & TX_PORT_TRICORE_CSA_LINK_MASK; + + /* Get first free Context Save Area. */ + first_csa_pcxi_link_word = __mfcr(TX_PORT_TRICORE_CSFR_FCX) & TX_PORT_TRICORE_CSA_LINK_MASK; + first_csa_ptr = _tx_thread_decode_link_word(first_csa_pcxi_link_word); + + if( first_csa_ptr != TX_NULL ) + { + /* Get second free Context Save Area. */ + second_csa_pcxi_link_word = first_csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD] & TX_PORT_TRICORE_CSA_LINK_MASK; + second_csa_ptr = _tx_thread_decode_link_word(second_csa_pcxi_link_word); + } + + if( ( second_csa_ptr != TX_NULL ) && ( second_csa_pcxi_link_word != lcx_link_word ) ) + { + /* Remove the two CSAs from the free CSA list by setting FCX to the + link word of the second CSA. */ + __mtcr(TX_PORT_TRICORE_CSFR_FCX, second_csa_ptr[ TX_PORT_TRICORE_CSA_PCXI_LINK_WORD ] & TX_PORT_TRICORE_CSA_LINK_MASK); + __isync(); + } + else + { + + /* The first SVLCX takes the first CSA. The second SVLCX takes the + CSA that LCX points to and raises FCD, or raises FCU if the list + ends at the first CSA. */ + __svlcx(); + __svlcx(); + while (TX_TRUE) + { + + } + } + + TX_RESTORE + + /* Initialise the first CSA as lower context. */ + TX_MEMSET(first_csa_ptr, 0, TX_PORT_TRICORE_CSA_SIZE); + first_csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD] = TX_PORT_TRICORE_CSA_INITIAL_LOWER_PCXI | + second_csa_pcxi_link_word; + first_csa_ptr[TX_PORT_TRICORE_CSA_LOWER_CONTEXT_A11_RA] = ( UINT ) function_ptr; + + /* Initialise the second CSA as upper context. */ + TX_MEMSET(second_csa_ptr, 0, TX_PORT_TRICORE_CSA_SIZE); + second_csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD] = TX_PORT_TRICORE_CSA_INITIAL_UPPER_PCXI | + TX_PORT_TRICORE_CSA_LINK_WORD_END_OF_CHAIN; + second_csa_ptr[TX_PORT_TRICORE_CSA_UPPER_CONTEXT_A10_STACK_PTR] = ( UINT ) thread_stack_ptr; + second_csa_ptr[TX_PORT_TRICORE_CSA_UPPER_CONTEXT_PSW] = TX_PORT_TRICORE_CSA_INITIAL_SYSTEM_PSW; + + thread_ptr->tx_thread_csa = first_csa_pcxi_link_word; + + /* Setup a thread stack pointer. */ + thread_ptr -> tx_thread_stack_ptr = thread_stack_ptr; + +} + + +/* Returns the CSA chain of a completed or terminated thread to the free + context list. The last CSA of the chain links to no CSA. */ +VOID _tx_thread_csa_release(TX_THREAD *thread_ptr) +{ + + TX_INTERRUPT_SAVE_AREA + UINT head_csa_link_word; + UINT * csa_ptr; + + head_csa_link_word = thread_ptr -> tx_thread_csa & TX_PORT_TRICORE_CSA_LINK_MASK; + + if (head_csa_link_word != 0U) + { + /* A free CSA links by its address only. */ + csa_ptr = _tx_thread_decode_link_word(head_csa_link_word); + while ((csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD] & TX_PORT_TRICORE_CSA_LINK_MASK) != TX_PORT_TRICORE_CSA_LINK_WORD_END_OF_CHAIN) + { + csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD] &= TX_PORT_TRICORE_CSA_LINK_MASK; + csa_ptr = _tx_thread_decode_link_word(csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD]); + } + + TX_DISABLE + __dsync(); + csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD] = __mfcr(TX_PORT_TRICORE_CSFR_FCX); + __mtcr(TX_PORT_TRICORE_CSFR_FCX, head_csa_link_word); + __isync(); + TX_RESTORE + + thread_ptr -> tx_thread_csa = 0; + } +} diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_thread_system_return.c b/ports/tricore_tc1_6_2/gnu/src/tx_thread_system_return.c new file mode 100755 index 000000000..b34045b11 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/src/tx_thread_system_return.c @@ -0,0 +1,83 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** ThreadX Component */ +/** */ +/** Thread */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + +#define TX_SOURCE_CODE + + +/* Include necessary system files. */ + +#include "tx_api.h" +#include "tx_thread.h" +#include "tx_timer.h" + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _tx_thread_system_return TriCore/GNU */ +/* 6.5.2 */ +/* AUTHOR */ +/* */ +/* Andreas Neubauer, safecubed GmbH */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function transfers control from a thread back to the */ +/* scheduler. Thread code enters the scheduler through the system */ +/* call. Interrupt and trap handlers (PSW.IS = 1) request the */ +/* dispatch interrupt instead. The function is compiled only with */ +/* TX_DISABLE_INLINE; otherwise tx_port.h maps it to */ +/* _tx_thread_system_return_inline. */ +/* */ +/* INPUT */ +/* */ +/* None */ +/* */ +/* OUTPUT */ +/* */ +/* None */ +/* */ +/* CALLS */ +/* */ +/* _tx_thread_system_return_inline System return (inline) */ +/* */ +/* CALLED BY */ +/* */ +/* ThreadX components */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ +/* 11-04-2026 Andreas Neubauer Initial Version 6.5.2 */ +/* */ +/**************************************************************************/ + +#ifdef TX_DISABLE_INLINE +VOID _tx_thread_system_return(VOID) +{ + _tx_thread_system_return_inline(); +} +#endif + diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_timer_interrupt.c b/ports/tricore_tc1_6_2/gnu/src/tx_timer_interrupt.c new file mode 100755 index 000000000..d456f24c5 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/src/tx_timer_interrupt.c @@ -0,0 +1,158 @@ +/*************************************************************************** + * Copyright (c) 2024 Microsoft Corporation + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + + +/**************************************************************************/ +/**************************************************************************/ +/** */ +/** ThreadX Component */ +/** */ +/** Timer */ +/** */ +/**************************************************************************/ +/**************************************************************************/ + +#define TX_SOURCE_CODE + + +/* Include necessary system files. */ + +#include "tx_api.h" +#include "tx_timer.h" +#include "tx_thread.h" + + +/**************************************************************************/ +/* */ +/* FUNCTION RELEASE */ +/* */ +/* _tx_timer_interrupt TriCore/GNU */ +/* 6.5.2 */ +/* AUTHOR */ +/* */ +/* William E. Lamie, Microsoft Corporation */ +/* Andreas Neubauer, safecubed GmbH */ +/* */ +/* DESCRIPTION */ +/* */ +/* This function processes one ThreadX timer tick. This processing */ +/* includes incrementing the system clock and checking for time slice */ +/* and/or timer expiration. If either is found, the expiration */ +/* functions are called. The timer interrupt handler of the board */ +/* calls it once the timer hardware has been serviced. */ +/* */ +/* INPUT */ +/* */ +/* None */ +/* */ +/* OUTPUT */ +/* */ +/* None */ +/* */ +/* CALLS */ +/* */ +/* _tx_timer_expiration_process */ +/* _tx_thread_time_slice */ +/* */ +/* CALLED BY */ +/* */ +/* timer interrupt handler */ +/* */ +/* RELEASE HISTORY */ +/* */ +/* DATE NAME DESCRIPTION */ +/* */ +/* 09-30-2020 William E. Lamie Initial Version 6.1 */ +/* 11-04-2026 Andreas Neubauer Adapted for TriCore, */ +/* resulting in version 6.5.2 */ +/* */ +/**************************************************************************/ +VOID _tx_timer_interrupt(VOID) +{ + + /* Increment the system clock. */ + _tx_timer_system_clock++; + + /* Test for time-slice expiration. */ + if (_tx_timer_time_slice != 0U) + { + + /* Decrement the time_slice. */ + _tx_timer_time_slice--; + + /* Check for expiration. */ + if (_tx_timer_time_slice == 0U) + { + + /* Set the time-slice expired flag. */ + _tx_timer_expired_time_slice = TX_TRUE; + } + } + + /* Test for timer expiration. */ + if (*_tx_timer_current_ptr != TX_NULL) + { + + /* Set expiration flag. */ + _tx_timer_expired = TX_TRUE; + } + else + { + + /* No timer expired, increment the timer pointer. */ + _tx_timer_current_ptr++; + + /* Check for wrap-around. */ + if (_tx_timer_current_ptr == _tx_timer_list_end) + { + + /* Wrap to beginning of list. */ + _tx_timer_current_ptr = _tx_timer_list_start; + } + } + + /* See if anything has expired. */ + if ((_tx_timer_expired_time_slice != TX_FALSE) || (_tx_timer_expired != TX_FALSE)) + { + + /* Did a timer expire? */ + if (_tx_timer_expired != TX_FALSE) + { + + /* Process timer expiration. */ + _tx_timer_expiration_process(); + } + + /* Did time slice expire? */ + if (_tx_timer_expired_time_slice != TX_FALSE) + { + + /* Time slice interrupted thread. */ + _tx_thread_time_slice(); + + /* _tx_thread_time_slice selects the next thread without a + system return. */ + if ((_tx_thread_preempt_disable == 0U) && + (_tx_thread_current_ptr != _tx_thread_execute_ptr)) + { + _tx_thread_dispatch_request(); + } + } + } + + +} + + + From 3aa5dedb242c2e6bd90b99e8cc4b0a1015d38ea1 Mon Sep 17 00:00:00 2001 From: Andreas Neubauer Date: Thu, 12 Nov 2026 10:12:46 +0100 Subject: [PATCH 2/4] Removed dependencies of iLLD from the TriCore TC1.6.2 port and its example The port uses the intrinsics of the AURIX GCC and its own register definitions. The example uses the start-up code of the AURIX GCC with its own linker script and trap table. --- cmake/tricore_tc1_6_2.cmake | 9 +- ports/tricore_tc1_6_2/gnu/CMakeLists.txt | 47 - .../aurix_lite_kit_v2/Cpu0_Main.c | 63 - .../aurix_lite_kit_v2/Cpu1_Main.c | 59 - .../aurix_lite_kit_v2/Cpu2_Main.c | 59 - .../example_build/aurix_lite_kit_v2/Ifx_Cfg.h | 63 - .../aurix_lite_kit_v2/Ifx_Cfg_Ssw.c | 109 - .../aurix_lite_kit_v2/Ifx_Cfg_Ssw.h | 224 --- .../aurix_lite_kit_v2/Ifx_Cfg_SswBmhd.c | 561 ------ .../aurix_lite_kit_v2/Ifx_Cfg_Trap.h | 30 - .../aurix_lite_kit_v2/Lcf_Gnuc_Tricore_Tc.lsl | 1751 ----------------- .../aurix_lite_kit_v2/build_env.sh | 81 - .../aurix_lite_kit_v2/build_threadx.sh | 32 - .../aurix_lite_kit_v2/build_threadx_sample.sh | 57 - .../tx_initialize_low_level.c | 102 - .../gnu/example_build/build_threadx_sample.sh | 53 + .../{aurix_lite_kit_v2 => }/sample_threadx.c | 10 + .../gnu/example_build/sample_threadx.ld | 86 + .../example_build/tx_initialize_low_level.c | 253 +++ ports/tricore_tc1_6_2/gnu/inc/tx_port.h | 96 +- ports/tricore_tc1_6_2/gnu/readme_threadx.txt | 181 +- .../tricore_tc1_6_2/gnu/src/tx_port_tricore.h | 18 +- .../gnu/src/tx_thread_schedule.c | 40 +- .../gnu/src/tx_thread_stack_build.c | 12 +- 24 files changed, 596 insertions(+), 3400 deletions(-) delete mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu0_Main.c delete mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu1_Main.c delete mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu2_Main.c delete mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg.h delete mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.c delete mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.h delete mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_SswBmhd.c delete mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Trap.h delete mode 100644 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Lcf_Gnuc_Tricore_Tc.lsl delete mode 100755 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_env.sh delete mode 100755 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx.sh delete mode 100755 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx_sample.sh delete mode 100755 ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/tx_initialize_low_level.c create mode 100755 ports/tricore_tc1_6_2/gnu/example_build/build_threadx_sample.sh rename ports/tricore_tc1_6_2/gnu/example_build/{aurix_lite_kit_v2 => }/sample_threadx.c (99%) create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/sample_threadx.ld create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/tx_initialize_low_level.c diff --git a/cmake/tricore_tc1_6_2.cmake b/cmake/tricore_tc1_6_2.cmake index d04259309..e732e50a1 100644 --- a/cmake/tricore_tc1_6_2.cmake +++ b/cmake/tricore_tc1_6_2.cmake @@ -12,9 +12,8 @@ # Toolchain file for the TriCore TC1.6.2 port (Infineon AURIX TC3) with the # AURIX GCC. # -# The port includes Infineon iLLD headers. AURIX_ILLD_DIR shall name the -# directory that holds the iLLD, Infra and Service folders of a TC37A iLLD -# distribution. See ports/tricore_tc1_6_2/gnu/readme_threadx.txt. +# The port uses no driver library. See +# ports/tricore_tc1_6_2/gnu/readme_threadx.txt. set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_SYSTEM_PROCESSOR tricore) @@ -37,8 +36,8 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) -set(CMAKE_C_FLAGS "-mtc162 -std=c99 -fno-common -fstrict-volatile-bitfields -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags") -set(CMAKE_EXE_LINKER_FLAGS "-mtc162 -nocrt0 -Wl,--gc-sections" CACHE INTERNAL "exe link flags") +set(CMAKE_C_FLAGS "-mcpu=tc38xx -std=c99 -fno-common -fstrict-volatile-bitfields -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags") +set(CMAKE_EXE_LINKER_FLAGS "-mcpu=tc38xx -Wl,--gc-sections" CACHE INTERNAL "exe link flags") set(CMAKE_C_FLAGS_DEBUG "-O0 -g3" CACHE INTERNAL "c debug compiler flags") set(CMAKE_C_FLAGS_RELEASE "-O0" CACHE INTERNAL "c release compiler flags") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O0 -g3" CACHE INTERNAL "c relwithdebinfo compiler flags") diff --git a/ports/tricore_tc1_6_2/gnu/CMakeLists.txt b/ports/tricore_tc1_6_2/gnu/CMakeLists.txt index 39cc59602..4126a9eaf 100755 --- a/ports/tricore_tc1_6_2/gnu/CMakeLists.txt +++ b/ports/tricore_tc1_6_2/gnu/CMakeLists.txt @@ -16,50 +16,3 @@ target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) - -# The port includes Infineon iLLD headers (Compilers.h, Bsp.h, IfxCpu.h, -# IfxStm.h). AURIX_ILLD_DIR shall name the directory that holds the iLLD, Infra -# and Service folders: either the iLLD release package for all TC3xx devices -# (iLLD/TC3xx, for example src/BaseSw of iLLD 1.22.0) or the TC37A iLLD of an -# AURIX Development Studio project (iLLD/TC37A). The iLLD in turn includes the -# board configuration Ifx_Cfg.h from AURIX_CFG_DIR, which defaults to the -# TC375 Lite Kit configuration in example_build/aurix_lite_kit_v2. -if(NOT AURIX_ILLD_DIR) - message(FATAL_ERROR "AURIX_ILLD_DIR not defined") -endif() -set(AURIX_CFG_DIR "${CMAKE_CURRENT_LIST_DIR}/example_build/aurix_lite_kit_v2" CACHE PATH - "Directory that holds the board's Ifx_Cfg.h") - -if(IS_DIRECTORY "${AURIX_ILLD_DIR}/iLLD/TC3xx/Tricore") - set(AURIX_ILLD "${AURIX_ILLD_DIR}/iLLD/TC3xx/Tricore") - set(AURIX_SFR "${AURIX_ILLD_DIR}/Infra/Sfr/TC37x") - set(AURIX_PINMAP "${AURIX_ILLD}/_PinMap/TC37x") -elseif(IS_DIRECTORY "${AURIX_ILLD_DIR}/iLLD/TC37A/Tricore") - set(AURIX_ILLD "${AURIX_ILLD_DIR}/iLLD/TC37A/Tricore") - set(AURIX_SFR "${AURIX_ILLD_DIR}/Infra/Sfr/TC37A/_Reg") - set(AURIX_PINMAP "${AURIX_ILLD}/_PinMap") -else() - message(FATAL_ERROR "AURIX_ILLD_DIR contains neither iLLD/TC3xx/Tricore nor iLLD/TC37A/Tricore") -endif() - -target_include_directories(${PROJECT_NAME} - PUBLIC - ${AURIX_CFG_DIR} - ${AURIX_ILLD} - ${AURIX_ILLD}/Cpu/Std - ${AURIX_ILLD}/Cpu/Irq - ${AURIX_ILLD}/Cpu/Trap - ${AURIX_ILLD}/Scu/Std - ${AURIX_ILLD}/Src/Std - ${AURIX_ILLD}/Stm/Std - ${AURIX_ILLD}/Port/Std - ${AURIX_ILLD}/_Impl - ${AURIX_ILLD}/_PinMap - ${AURIX_PINMAP} - ${AURIX_ILLD_DIR}/Infra/Platform - ${AURIX_ILLD_DIR}/Infra/Platform/Tricore/Compilers - ${AURIX_SFR} - ${AURIX_ILLD_DIR}/Service/CpuGeneric - ${AURIX_ILLD_DIR}/Service/CpuGeneric/SysSe/Bsp - ${AURIX_ILLD_DIR}/Service/CpuGeneric/_Utilities -) diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu0_Main.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu0_Main.c deleted file mode 100644 index f59958577..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu0_Main.c +++ /dev/null @@ -1,63 +0,0 @@ -/********************************************************************************************************************** - * \file Cpu0_Main.c - * \brief Main function definition for Cpu core 0. - * \copyright Copyright (C) Infineon Technologies AG 2019 - * - * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of - * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use - * are agreed, use of this file is subject to following: - * - * Boost Software License - Version 1.0 - August 17th, 2003 - * - * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and - * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, - * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the - * Software is furnished to do so, all subject to the following: - * - * The copyright notices in the Software and this entire statement, including the above license grant, this restriction - * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all - * derivative works of the Software, unless such copies or derivative works are solely in the form of - * machine-executable object code generated by a source language processor. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE - * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE - * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN - * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - *********************************************************************************************************************/ - -/* Portions of this file were generated with AI assistance. */ - -/* Entry point of CPU0. - - The iLLD start-up code (Ifx_Ssw_Tc0.c) calls core0_main once it has - initialised CPU0. core0_main enters the ThreadX kernel, which calls - tx_application_define in sample_threadx.c. The linker script places this - file's code and data in CPU0's memories by its name. */ - -#include "Ifx_Types.h" -#include "IfxCpu.h" -#include "IfxScuWdt.h" -#include "tx_api.h" - -/* Start-up synchronisation event shared by CPU0, CPU1 and CPU2. */ -IFX_ALIGN(4) IfxCpu_syncEvent g_cpuSyncEvent = 0; - -void core0_main(void) -{ - /* The CPU0 watchdog and the safety watchdog are disabled. An application - that keeps them enabled shall service them periodically. */ - IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword()); - IfxScuWdt_disableSafetyWatchdog(IfxScuWdt_getSafetyWatchdogPassword()); - - /* Wait until all CPUs have started. */ - IfxCpu_emitEvent(&g_cpuSyncEvent); - IfxCpu_waitEvent(&g_cpuSyncEvent, 1); - - /* tx_kernel_enter does not return. */ - tx_kernel_enter(); - - while (1) - { - } -} diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu1_Main.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu1_Main.c deleted file mode 100644 index c1a54520e..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu1_Main.c +++ /dev/null @@ -1,59 +0,0 @@ -/********************************************************************************************************************** - * \file Cpu1_Main.c - * \brief Main function definition for Cpu core 1. - * \copyright Copyright (C) Infineon Technologies AG 2019 - * - * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of - * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use - * are agreed, use of this file is subject to following: - * - * Boost Software License - Version 1.0 - August 17th, 2003 - * - * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and - * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, - * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the - * Software is furnished to do so, all subject to the following: - * - * The copyright notices in the Software and this entire statement, including the above license grant, this restriction - * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all - * derivative works of the Software, unless such copies or derivative works are solely in the form of - * machine-executable object code generated by a source language processor. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE - * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE - * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN - * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - *********************************************************************************************************************/ - -/* Portions of this file were generated with AI assistance. */ - -/* Entry point of CPU1. - - The iLLD start-up code (Ifx_Ssw_Tc1.c) calls core1_main once it has - initialised CPU1. CPU1 takes part in the start-up synchronisation and - then stays idle. The linker script places this file's code and data in - CPU1's memories by its name. */ - -#include "Ifx_Types.h" -#include "IfxCpu.h" -#include "IfxScuWdt.h" - -extern IfxCpu_syncEvent g_cpuSyncEvent; - -void core1_main(void) -{ - IfxCpu_enableInterrupts(); - - /* The CPU1 watchdog is disabled. An application that keeps it enabled - shall service it periodically. */ - IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword()); - - /* Wait until all CPUs have started. */ - IfxCpu_emitEvent(&g_cpuSyncEvent); - IfxCpu_waitEvent(&g_cpuSyncEvent, 1); - - while (1) - { - } -} diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu2_Main.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu2_Main.c deleted file mode 100644 index 8117da6a9..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Cpu2_Main.c +++ /dev/null @@ -1,59 +0,0 @@ -/********************************************************************************************************************** - * \file Cpu2_Main.c - * \brief Main function definition for Cpu core 2. - * \copyright Copyright (C) Infineon Technologies AG 2019 - * - * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of - * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use - * are agreed, use of this file is subject to following: - * - * Boost Software License - Version 1.0 - August 17th, 2003 - * - * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and - * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, - * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the - * Software is furnished to do so, all subject to the following: - * - * The copyright notices in the Software and this entire statement, including the above license grant, this restriction - * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all - * derivative works of the Software, unless such copies or derivative works are solely in the form of - * machine-executable object code generated by a source language processor. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE - * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE - * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN - * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - *********************************************************************************************************************/ - -/* Portions of this file were generated with AI assistance. */ - -/* Entry point of CPU2. - - The iLLD start-up code (Ifx_Ssw_Tc2.c) calls core2_main once it has - initialised CPU2. CPU2 takes part in the start-up synchronisation and - then stays idle. The linker script places this file's code and data in - CPU2's memories by its name. */ - -#include "Ifx_Types.h" -#include "IfxCpu.h" -#include "IfxScuWdt.h" - -extern IfxCpu_syncEvent g_cpuSyncEvent; - -void core2_main(void) -{ - IfxCpu_enableInterrupts(); - - /* The CPU2 watchdog is disabled. An application that keeps it enabled - shall service it periodically. */ - IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword()); - - /* Wait until all CPUs have started. */ - IfxCpu_emitEvent(&g_cpuSyncEvent); - IfxCpu_waitEvent(&g_cpuSyncEvent, 1); - - while (1) - { - } -} diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg.h b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg.h deleted file mode 100644 index d2301aecb..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg.h +++ /dev/null @@ -1,63 +0,0 @@ -/********************************************************************************************************************** - * \file Ifx_Cfg.h - * \brief Project configuration file. - * \copyright Copyright (C) Infineon Technologies AG 2019 - * - * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of - * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use - * are agreed, use of this file is subject to following: - * - * Boost Software License - Version 1.0 - August 17th, 2003 - * - * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and - * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, - * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the - * Software is furnished to do so, all subject to the following: - * - * The copyright notices in the Software and this entire statement, including the above license grant, this restriction - * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all - * derivative works of the Software, unless such copies or derivative works are solely in the form of - * machine-executable object code generated by a source language processor. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE - * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE - * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN - * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - *********************************************************************************************************************/ - -#ifndef IFX_CFG_H -#define IFX_CFG_H 1 - -/*********************************************************************************************************************/ -/*------------------------------------------Configuration for IfxScu_cfg.h-------------------------------------------*/ -/*********************************************************************************************************************/ -/* External oscillator frequency in Hz */ -#define IFX_CFG_SCU_XTAL_FREQUENCY (20000000) /* Allowed values are: 40000000, 25000000, 20000000, 16000000 */ -/* System PLL frequency in Hz */ -#define IFX_CFG_SCU_PLL_FREQUENCY (300000000) /* Allowed values are: 300000000, 200000000, 160000000, 133000000 - * or 80000000 */ -/* Peripheral PLL1 frequency in Hz */ -#define IFX_CFG_SCU_PLL1_FREQUENCY (320000000) /* Allowed values are: 320000000, 160000000 */ -/* Peripheral PLL2 frequency in Hz */ -#define IFX_CFG_SCU_PLL2_FREQUENCY (200000000) /* Allowed values are: 200000000 */ - -/*********************************************************************************************************************/ -/*-----------------------------------Configuration for Software managed interrupt------------------------------------*/ -/*********************************************************************************************************************/ -/* #define IFX_USE_SW_MANAGED_INT */ /* Decomment this line if the project needs to use Software managed interrupts */ - -/*********************************************************************************************************************/ -/*---------------------------------Configuration for Trap Hook Functions' Extensions---------------------------------*/ -/*********************************************************************************************************************/ -#define IFX_CFG_EXTEND_TRAP_HOOKS /* Decomment this line if the project needs to extend trap hook functions */ - -/*********************************************************************************************************************/ -/*-----------------------------------------Configuration for Device and Pin package----------------------------------*/ -/*********************************************************************************************************************/ -/* The iLLD release package for all TC3xx devices selects the device and the pin package with these macros. - * The TC375 Lite Kit carries a TC375TP in an LQFP-176 package. */ -#define DEVICE_TC37X 1 -#define IFX_PIN_PACKAGE_LQFP176 1 - -#endif /* IFX_CFG_H */ diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.c deleted file mode 100644 index 79c9d9815..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.c +++ /dev/null @@ -1,109 +0,0 @@ -/********************************************************************************************************************** - * \file Ifx_Cfg_Ssw.c - * \brief Configuration file for the Startup Software - * \copyright Copyright (C) Infineon Technologies AG 2019 - * - * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of - * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use - * are agreed, use of this file is subject to following: - * - * Boost Software License - Version 1.0 - August 17th, 2003 - * - * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and - * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, - * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the - * Software is furnished to do so, all subject to the following: - * - * The copyright notices in the Software and this entire statement, including the above license grant, this restriction - * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all - * derivative works of the Software, unless such copies or derivative works are solely in the form of - * machine-executable object code generated by a source language processor. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE - * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE - * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN - * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - *********************************************************************************************************************/ - -/*********************************************************************************************************************/ -/*-----------------------------------------------------Includes------------------------------------------------------*/ -/*********************************************************************************************************************/ -#include "Ifx_Cfg_Ssw.h" -#include "Ifx_Ssw_Infra.h" - -/*********************************************************************************************************************/ -/*---------------------------------------------Function Implementations----------------------------------------------*/ -/*********************************************************************************************************************/ -#if defined(__TASKING__) -#pragma optimize RL -#elif defined(__HIGHTEC__) -#pragma GCC optimize ("O1") -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma GCC optimize ("O1") -#endif - -#if (IFX_CFG_SSW_ENABLE_PMS_INIT == 1U) -void Ifx_Ssw_Pms_Init(void) -{ - if (IfxPmsEvr_runInitSequence(&IfxPmsEvr_cfgSequenceDefault) == 0) - { - __debug(); - /* Application may have call to error handling here */ - } - - Ifx_Ssw_jumpBackToLink(); -} - -#if (IFX_CFG_SSW_ENABLE_PMS_INIT_CHECK == 1U) -void Ifx_Ssw_Pms_InitCheck(void) -{ - - if (IfxPmsEvr_areInitValuesRight(&IfxPmsEvr_checkRegCfgDefault) == 0) - { - __debug(); - /* Application may have call to error handling here */ - } - Ifx_Ssw_jumpBackToLink(); -} -#endif /* End of Ifx_Ssw_Pms_InitCheck() */ -#endif /* End of Ifx_Ssw_Pms_Init() */ - -#if (IFX_CFG_SSW_ENABLE_LBIST == 1) -void Ifx_Ssw_Lbist(void) -{ - if (!IfxScuLbist_isDone()) - { - if(Ifx_Ssw_isColdPoweronReset()) - { - IfxScuLbist_triggerInline(&IfxScuLbist_defaultConfig); - } - } - if (!IfxScuLbist_evaluateResult(IfxScuLbist_defaultConfig.signature)) - { - __debug(); - /* Application may have call to error handling here */ - - /* Infinite loop to ensure that the error is notified as 'debugger is not connected at this point of time' */ - while(1); - } - - Ifx_Ssw_jumpBackToLink(); -} -#endif - -/* Hooks for application specific hardware and software extensions. The start-up code of the iLLD release package - * for all TC3xx devices calls them from __Core0_start; earlier iLLD versions do not. */ -void hardware_init_hook(void) -{} - -void software_init_hook(void) -{} - -#if defined(__TASKING__) -#pragma endoptimize -#elif defined(__HIGHTEC__) -#pragma GCC reset_options -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma GCC reset_options -#endif diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.h b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.h deleted file mode 100644 index 2ba973687..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Ssw.h +++ /dev/null @@ -1,224 +0,0 @@ -/********************************************************************************************************************** - * \file Ifx_Cfg_Ssw.h - * \brief Configuration header file for the Startup Software - * \copyright Copyright (C) Infineon Technologies AG 2019 - * - * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of - * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use - * are agreed, use of this file is subject to following: - * - * Boost Software License - Version 1.0 - August 17th, 2003 - * - * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and - * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, - * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the - * Software is furnished to do so, all subject to the following: - * - * The copyright notices in the Software and this entire statement, including the above license grant, this restriction - * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all - * derivative works of the Software, unless such copies or derivative works are solely in the form of - * machine-executable object code generated by a source language processor. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE - * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE - * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN - * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - *********************************************************************************************************************/ - -#ifndef IFX_CFG_SSW_H_ -#define IFX_CFG_SSW_H_ - -/*********************************************************************************************************************/ -/*-----------------------------------------------------Includes------------------------------------------------------*/ -/*********************************************************************************************************************/ -#include "Ifx_Cfg.h" -#include "Ifx_Ssw.h" - -/*********************************************************************************************************************/ -/*------------------------------------------------------Macros-------------------------------------------------------*/ -/*********************************************************************************************************************/ -/* Set this macro to 1, to configure the PMS EVR. */ -#ifndef IFX_CFG_SSW_ENABLE_PMS_INIT -#define IFX_CFG_SSW_ENABLE_PMS_INIT (1U) -#endif - -/* Set this macro to 1, to check the PMS EVR configuration. */ -#ifndef IFX_CFG_SSW_ENABLE_PMS_INIT_CHECK -#define IFX_CFG_SSW_ENABLE_PMS_INIT_CHECK (1U) -#endif - -/* Set this macro to 1, to do LBIST checks. */ -#ifndef IFX_CFG_SSW_ENABLE_LBIST -#define IFX_CFG_SSW_ENABLE_LBIST (0U) -#endif - -/* Set this macro to 1, to do MONBIST checks. */ -#ifndef IFX_CFG_SSW_ENABLE_MONBIST -#define IFX_CFG_SSW_ENABLE_MONBIST (0U) -#endif - -/* Set this macro to 1, to do MMIC checks. */ -#ifndef IFX_CFG_SSW_ENABLE_MMIC_CHECK -#define IFX_CFG_SSW_ENABLE_MMIC_CHECK (0U) -#endif - -/* Set this macro to 1, to initialize the PLL. */ -#ifndef IFX_CFG_SSW_ENABLE_PLL_INIT -#define IFX_CFG_SSW_ENABLE_PLL_INIT (1U) -#endif - -/* Set this macro to 1, to do MBIST checks. */ -#ifndef IFX_CFG_SSW_ENABLE_MBIST -#define IFX_CFG_SSW_ENABLE_MBIST (0U) -#endif - -/* Set this macro to 1, to do SMU Alarm handling. */ -#ifndef IFX_CFG_SSW_ENABLE_SMU -#define IFX_CFG_SSW_ENABLE_SMU (0U) -#endif - -/* Set this macro to 1, to enable emem initialisation. */ -#ifndef IFX_CFG_SSW_ENABLE_EMEM_INIT -#define IFX_CFG_SSW_ENABLE_EMEM_INIT (0U) -#endif - -/*********************************************************************************************************************/ -/*---------------------------------------------Function Implementations----------------------------------------------*/ -/*********************************************************************************************************************/ -#if IFX_CFG_SSW_ENABLE_PMS_INIT == 1U -#include "IfxPmsEvr.h" - -extern void Ifx_Ssw_Pms_Init(void); -extern void Ifx_Ssw_Pms_InitCheck(void); - -/* Callout hook API macro for PMS Initialization. - * This callout hook is referenced in Startup sequence. This need to be configured by application to - * initialize the PMS EVR module. This hook is by default defined to empty call by startup implementation. - * THIS CALLOUT HOOK SHALL NOT BE IMPLEMENTED AS FUNCTION CALL! - */ -#define IFX_CFG_SSW_CALLOUT_PMS_INIT() \ - { \ - Ifx_Ssw_jumpToFunctionWithLink(&Ifx_Ssw_Pms_Init); \ - IFX_CFG_SSW_CALLOUT_PMS_CHECK(); \ - } - -#if IFX_CFG_SSW_ENABLE_PMS_INIT_CHECK == 1U - -/* Callout hook API macro for PMS Initialization check. - * This callout hook is referenced in Startup sequence. This need to be configured by application to - * cross verify the PMS configuration with the required values. This hook is by default defined to empty - * call by startup implementation. - * THIS CALLOUT HOOK SHALL NOT BE IMPLEMENTED AS FUNCTION CALL! - */ -#define IFX_CFG_SSW_CALLOUT_PMS_CHECK() \ - { \ - Ifx_Ssw_jumpToFunctionWithLink(&Ifx_Ssw_Pms_InitCheck); \ - } -#else -#define IFX_CFG_SSW_CALLOUT_PMS_CHECK() -#endif /* End of IFX_CFG_SSW_ENABLE_PMS_INIT_CHECK */ - -#endif /* End of IFX_CFG_SSW_ENABLE_PMS_INIT */ - -/* Callout hook API macro for LBIST check. - * This callout hook is referenced in Startup sequence. This need to be configured by application to - * do LBIST checks. This hook is by default defined to empty call by startup implementation. - * THIS CALLOUT HOOK SHALL NOT BE IMPLEMENTED AS FUNCTION CALL! - */ -#if IFX_CFG_SSW_ENABLE_LBIST == 1U -#include "IfxScuLbist.h" - -extern void Ifx_Ssw_Lbist(void); - -#define IFX_CFG_SSW_CALLOUT_LBIST() \ - { \ - Ifx_Ssw_jumpToFunctionWithLink(&Ifx_Ssw_Lbist); \ - } - -#endif /* End of IFX_CFG_SSW_ENABLE_LBIST */ - -/* Callout hook API macro for MONBIST check. - * This callout hook is referenced in Startup sequence. This need to be configured by application to - * do MONBIST checks. This hook is by default defined to empty call by startup implementation. - * THIS CALLOUT HOOK SHALL NOT BE IMPLEMENTED AS FUNCTION CALL! - */ -#if IFX_CFG_SSW_ENABLE_MONBIST == 1U - -#include "IfxSmuStdby.h" - -extern void Ifx_Ssw_Monbist(void); - -#define IFX_CFG_SSW_CALLOUT_MONBIST() \ -{ \ - Ifx_Ssw_jumpToFunctionWithLink(&Ifx_Ssw_Monbist); \ -} -#endif /* End of IFX_CFG_SSW_ENABLE_MONBIST */ - -/* Callout hook API macro for PLL initialization. - * This callout hook is referenced in Startup sequence. This need to be configured by application to - * initialize the PLL. This hook is by default defined to empty call by startup implementation. - */ -#if IFX_CFG_SSW_ENABLE_PLL_INIT == 1U -#include "IfxScuCcu.h" - -#define IFX_CFG_SSW_CALLOUT_PLL_INIT() \ - { \ - if (IfxScuCcu_init(&IfxScuCcu_defaultClockConfig) == 1) \ - { \ - __debug(); \ - } \ - } - -#endif /* End of IFX_CFG_SSW_ENABLE_PLL_INIT */ - -/* Callout hook API macro for MBIST check. - * This callout hook is referenced in Startup sequence. This need to be configured by application to - * do MBIST checks. This hook is by default defined to empty call by startup implementation. - */ -#if IFX_CFG_SSW_ENABLE_MBIST == 1U -#include "IfxMtu.h" - -#define IFX_CFG_SSW_CALLOUT_MBIST() \ - { \ - IFX_EXTERN const IfxMtu_MbistConfig *const mbistGangConfig[]; \ - if (IfxMtu_runMbistAll(mbistGangConfig) == 1U) \ - { \ - __debug(); \ - } \ - } - -#endif /* End of IFX_CFG_SSW_ENABLE_MBIST */ - -/* Callout hook API macro for MMIC check. - * This need to be configured by application to do MMIC checks. - * This hook is by default defined to empty call by startup implementation. - */ -#if IFX_CFG_SSW_ENABLE_MMIC_CHECK == 1U -#define IFX_CFG_SSW_CALLOUT_MMIC_CHECK() -#endif /* End of IFX_CFG_SSW_ENABLE_MMIC_CHECK */ - -/* Callout hook API macro for SMU alarm handling. - * This need to be configured by application to do SMU alarm handling. - * This hook is by default defined to empty call by startup implementation. - */ -#if IFX_CFG_SSW_ENABLE_SMU == 1U -#define IFX_CFG_SSW_CALLOUT_SMU() -#endif /* End of IFX_CFG_SSW_ENABLE_SMU */ - -/* Callout hook API macro to unlock EMEM. - * This callout hook is referenced in Startup sequence. This need to be configured by application to - * initialize EMEM. This unlocks the EMEM. This hook is by default defined to empty call by startup implementation. - */ -#if IFX_CFG_SSW_ENABLE_EMEM_INIT == 1U -#include "IfxEmem_reg.h" - -extern void Ifx_Ssw_UnlockEmem(void); - -#define IFX_CFG_SSW_CALLOUT_EMEM_INIT() \ - { \ - Ifx_Ssw_UnlockEmem(); \ - } -#endif - -#endif /* IFX_CFG_SSW_H_ */ diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_SswBmhd.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_SswBmhd.c deleted file mode 100644 index 2280a3f07..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_SswBmhd.c +++ /dev/null @@ -1,561 +0,0 @@ -/********************************************************************************************************************** - * \file Ifx_Cfg_SswBmhd.c - * \brief This file contains the Bmhd for Aurix TC3XX. - * \copyright Copyright (C) Infineon Technologies AG 2019 - * - * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of - * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use - * are agreed, use of this file is subject to following: - * - * Boost Software License - Version 1.0 - August 17th, 2003 - * - * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and - * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, - * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the - * Software is furnished to do so, all subject to the following: - * - * The copyright notices in the Software and this entire statement, including the above license grant, this restriction - * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all - * derivative works of the Software, unless such copies or derivative works are solely in the form of - * machine-executable object code generated by a source language processor. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE - * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE - * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN - * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - *********************************************************************************************************************/ - -/*********************************************************************************************************************/ -/*-----------------------------------------------------Includes------------------------------------------------------*/ -/*********************************************************************************************************************/ -#include "Ifx_Ssw.h" - -/*********************************************************************************************************************/ -/*--------------------------------------------------BMHD constants---------------------------------------------------*/ -/*********************************************************************************************************************/ -#if defined(__TASKING__) -#pragma section farrom "bmhd_0_orig" -#elif defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_0_orig" a -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_0_orig" a -#elif defined(__DCC__) -#pragma section CONST ".bmhd_0_orig" far-absolute R -#elif defined(__ghs__) -#pragma ghs section rodata= ".bmhd_0_orig" -#endif -const Ifx_Ssw_Bmhd bmhd_0_orig = -{ - 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ - 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ - 0xA0000000, /* 0x004: .stad: User Code start address */ - 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ - 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ - }, - { - 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ - 0x00000000, /* 0x104: .pw1: Password protection word 1 */ - 0x00000000, /* 0x108: .pw2: Password protection word 2 */ - 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ - 0x00000000, /* 0x110: .pw4: Password protection word 4 */ - 0x00000000, /* 0x114: .pw5: Password protection word 5 */ - 0x00000000, /* 0x118: .pw6: Password protection word 6 */ - 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ - }, - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x130 - 0x13F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x140 - 0x14F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x150 - 0x15F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x160 - 0x16F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x170 - 0x17F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x180 - 0x18F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x190 - 0x19F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x1A0 - 0x1AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x1B0 - 0x1BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x1C0 - 0x1CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x1D0 - 0x1DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x1E0: Reserved (0x1E0 - 0x1EF) */ - }, - 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ -}; - -#if defined(__TASKING__) -#pragma section farrom "bmhd_0_copy" -#elif defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_0_copy" a -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_0_copy" a -#elif defined(__DCC__) -#pragma section CONST ".bmhd_0_copy" far-absolute R -#elif defined(__ghs__) -#pragma ghs section rodata= ".bmhd_0_copy" -#endif -const Ifx_Ssw_Bmhd bmhd_0_copy = -{ - 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ - 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ - 0xA0000000, /* 0x004: .stad: User Code start address */ - 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ - 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ - }, - { - 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ - 0x00000000, /* 0x104: .pw1: Password protection word 1 */ - 0x00000000, /* 0x108: .pw2: Password protection word 2 */ - 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ - 0x00000000, /* 0x110: .pw4: Password protection word 4 */ - 0x00000000, /* 0x114: .pw5: Password protection word 5 */ - 0x00000000, /* 0x118: .pw6: Password protection word 6 */ - 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ - }, - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x120 - 0x13F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x120 - 0x14F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x120 - 0x15F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x120 - 0x16F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x120 - 0x17F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x120 - 0x18F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x120 - 0x19F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x120 - 0x1AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x120 - 0x1BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x120 - 0x1CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x120 - 0x1DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1E0: Reserved (0x120 - 0x1EF) */ - }, - 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ -}; - -#if defined(__TASKING__) -#pragma section farrom "bmhd_1_orig" -#elif defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_1_orig" a -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_1_orig" a -#elif defined(__DCC__) -#pragma section CONST ".bmhd_1_orig" far-absolute R -#elif defined(__ghs__) -#pragma ghs section rodata= ".bmhd_1_orig" -#endif -const Ifx_Ssw_Bmhd bmhd_1_orig = -{ - 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ - 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ - 0xA0000000, /* 0x004: .stad: User Code start address */ - 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ - 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ - }, - { - 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ - 0x00000000, /* 0x104: .pw1: Password protection word 1 */ - 0x00000000, /* 0x108: .pw2: Password protection word 2 */ - 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ - 0x00000000, /* 0x110: .pw4: Password protection word 4 */ - 0x00000000, /* 0x114: .pw5: Password protection word 5 */ - 0x00000000, /* 0x118: .pw6: Password protection word 6 */ - 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ - }, - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x130 - 0x13F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x140 - 0x14F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x150 - 0x15F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x160 - 0x16F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x170 - 0x17F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x180 - 0x18F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x190 - 0x19F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x1A0 - 0x1AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x1B0 - 0x1BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x1C0 - 0x1CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x1D0 - 0x1DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x1E0: Reserved (0x1E0 - 0x1EF) */ - }, - 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ -}; - -#if defined(__TASKING__) -#pragma section farrom "bmhd_1_copy" -#elif defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_1_copy" a -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_1_copy" a -#elif defined(__DCC__) -#pragma section CONST ".bmhd_1_copy" far-absolute R -#elif defined(__ghs__) -#pragma ghs section rodata= ".bmhd_1_copy" -#endif -const Ifx_Ssw_Bmhd bmhd_1_copy = -{ - 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ - 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ - 0xA0000000, /* 0x004: .stad: User Code start address */ - 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ - 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ - }, - { - 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ - 0x00000000, /* 0x104: .pw1: Password protection word 1 */ - 0x00000000, /* 0x108: .pw2: Password protection word 2 */ - 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ - 0x00000000, /* 0x110: .pw4: Password protection word 4 */ - 0x00000000, /* 0x114: .pw5: Password protection word 5 */ - 0x00000000, /* 0x118: .pw6: Password protection word 6 */ - 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ - }, - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x120 - 0x13F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x120 - 0x14F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x120 - 0x15F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x120 - 0x16F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x120 - 0x17F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x120 - 0x18F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x120 - 0x19F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x120 - 0x1AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x120 - 0x1BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x120 - 0x1CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x120 - 0x1DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1E0: Reserved (0x120 - 0x1EF) */ - }, - 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ -}; - -#if defined(__TASKING__) -#pragma section farrom "bmhd_2_orig" -#elif defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_2_orig" a -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_2_orig" a -#elif defined(__DCC__) -#pragma section CONST ".bmhd_2_orig" far-absolute R -#elif defined(__ghs__) -#pragma ghs section rodata= ".bmhd_2_orig" -#endif -const Ifx_Ssw_Bmhd bmhd_2_orig = -{ - 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ - 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ - 0xA0000000, /* 0x004: .stad: User Code start address */ - 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ - 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ - }, - { - 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ - 0x00000000, /* 0x104: .pw1: Password protection word 1 */ - 0x00000000, /* 0x108: .pw2: Password protection word 2 */ - 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ - 0x00000000, /* 0x110: .pw4: Password protection word 4 */ - 0x00000000, /* 0x114: .pw5: Password protection word 5 */ - 0x00000000, /* 0x118: .pw6: Password protection word 6 */ - 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ - }, - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x130 - 0x13F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x140 - 0x14F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x150 - 0x15F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x160 - 0x16F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x170 - 0x17F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x180 - 0x18F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x190 - 0x19F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x1A0 - 0x1AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x1B0 - 0x1BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x1C0 - 0x1CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x1D0 - 0x1DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x1E0: Reserved (0x1E0 - 0x1EF) */ - }, - 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ -}; - -#if defined(__TASKING__) -#pragma section farrom "bmhd_2_copy" -#elif defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_2_copy" a -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_2_copy" a -#elif defined(__DCC__) -#pragma section CONST ".bmhd_2_copy" far-absolute R -#elif defined(__ghs__) -#pragma ghs section rodata= ".bmhd_2_copy" -#endif -const Ifx_Ssw_Bmhd bmhd_2_copy = -{ - 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ - 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ - 0xA0000000, /* 0x004: .stad: User Code start address */ - 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ - 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ - }, - { - 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ - 0x00000000, /* 0x104: .pw1: Password protection word 1 */ - 0x00000000, /* 0x108: .pw2: Password protection word 2 */ - 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ - 0x00000000, /* 0x110: .pw4: Password protection word 4 */ - 0x00000000, /* 0x114: .pw5: Password protection word 5 */ - 0x00000000, /* 0x118: .pw6: Password protection word 6 */ - 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ - }, - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x120 - 0x13F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x120 - 0x14F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x120 - 0x15F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x120 - 0x16F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x120 - 0x17F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x120 - 0x18F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x120 - 0x19F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x120 - 0x1AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x120 - 0x1BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x120 - 0x1CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x120 - 0x1DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1E0: Reserved (0x120 - 0x1EF) */ - }, - 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ -}; - -#if defined(__TASKING__) -#pragma section farrom "bmhd_3_orig" -#elif defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_3_orig" a -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_3_orig" a -#elif defined(__DCC__) -#pragma section CONST ".bmhd_3_orig" far-absolute R -#elif defined(__ghs__) -#pragma ghs section rodata= ".bmhd_3_orig" -#endif -const Ifx_Ssw_Bmhd bmhd_3_orig = -{ - 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ - 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ - 0xA0000000, /* 0x004: .stad: User Code start address */ - 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ - 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ - }, - { - 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ - 0x00000000, /* 0x104: .pw1: Password protection word 1 */ - 0x00000000, /* 0x108: .pw2: Password protection word 2 */ - 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ - 0x00000000, /* 0x110: .pw4: Password protection word 4 */ - 0x00000000, /* 0x114: .pw5: Password protection word 5 */ - 0x00000000, /* 0x118: .pw6: Password protection word 6 */ - 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ - }, - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x130 - 0x13F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x140 - 0x14F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x150 - 0x15F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x160 - 0x16F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x170 - 0x17F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x180 - 0x18F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x190 - 0x19F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x1A0 - 0x1AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x1B0 - 0x1BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x1C0 - 0x1CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x1D0 - 0x1DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x1E0: Reserved (0x1E0 - 0x1EF) */ - }, - 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ -}; - -#if defined(__TASKING__) -#pragma section farrom "bmhd_3_copy" -#elif defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_3_copy" a -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma section -#pragma section ".bmhd_3_copy" a -#elif defined(__DCC__) -#pragma section CONST ".bmhd_3_copy" far-absolute R -#elif defined(__ghs__) -#pragma ghs section rodata= ".bmhd_3_copy" -#endif -const Ifx_Ssw_Bmhd bmhd_3_copy = -{ - 0x007E, /* 0x000: .bmi: Boot Mode Index (BMI) */ - 0xB359, /* 0x002: .bmhdid: Boot Mode Header ID (CODE) = B359H */ - 0xA0000000, /* 0x004: .stad: User Code start address */ - 0x809FE5E2, /* 0x008: .crc: Check Result for the BMI Header (offset 000H - 007H) */ - 0x7F601A1D, /* 0x00C: .crcInv: Inverted Check Result for the BMI Header (offset 000H - 007H) */ - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x010: Reserved (0x010 - 0x01F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x020: Reserved (0x020 - 0x02F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x030: Reserved (0x030 - 0x03F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x040: Reserved (0x040 - 0x04F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x050: Reserved (0x050 - 0x05F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x060: Reserved (0x060 - 0x06F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x070: Reserved (0x070 - 0x07F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x080: Reserved (0x080 - 0x08F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x090: Reserved (0x090 - 0x09F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0A0: Reserved (0x0A0 - 0x0AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0B0: Reserved (0x0B0 - 0x0BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0C0: Reserved (0x0C0 - 0x0CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0D0: Reserved (0x0D0 - 0x0DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x0E0: Reserved (0x0E0 - 0x0EF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000 /* 0x0F0: Reserved (0x0F0 - 0x0FF) */ - }, - { - 0x00000000, /* 0x100: .pw0: Password protection word 0 (lsw) */ - 0x00000000, /* 0x104: .pw1: Password protection word 1 */ - 0x00000000, /* 0x108: .pw2: Password protection word 2 */ - 0x00000000, /* 0x10C: .pw3: Password protection word 3 */ - 0x00000000, /* 0x110: .pw4: Password protection word 4 */ - 0x00000000, /* 0x114: .pw5: Password protection word 5 */ - 0x00000000, /* 0x118: .pw6: Password protection word 6 */ - 0x00000000, /* 0x11C: .pw7: Password protection word 7 (msw) */ - }, - { - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x120: Reserved (0x120 - 0x12F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x130: Reserved (0x120 - 0x13F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x140: Reserved (0x120 - 0x14F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x150: Reserved (0x120 - 0x15F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x160: Reserved (0x120 - 0x16F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x170: Reserved (0x120 - 0x17F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x180: Reserved (0x120 - 0x18F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x190: Reserved (0x120 - 0x19F) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1A0: Reserved (0x120 - 0x1AF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1B0: Reserved (0x120 - 0x1BF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1C0: Reserved (0x120 - 0x1CF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1D0: Reserved (0x120 - 0x1DF) */ - 0x00000000, 0x00000000, 0x00000000, 0x00000000, /* 0x1E0: Reserved (0x120 - 0x1EF) */ - }, - 0x43211234 /* 0x1F0: .confirmation: 32-bit CODE, (always same) */ -}; - -#if defined(__HIGHTEC__) -#pragma section -#elif defined(__GNUC__) && !defined(__HIGHTEC__) -#pragma section -#endif diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Trap.h b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Trap.h deleted file mode 100644 index e3e61f43d..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Ifx_Cfg_Trap.h +++ /dev/null @@ -1,30 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2026 safecubed GmbH - * Copyright (c) 2026 Eclipse ThreadX contributors - * - * This program and the accompanying materials are made available under the - * terms of the MIT License which is available at - * https://opensource.org/licenses/MIT. - * - * SPDX-License-Identifier: MIT - **************************************************************************/ - -/* Portions of this file were generated with AI assistance. */ - -/* iLLD trap hook configuration. IfxCpu_Trap.h includes this file when - Ifx_Cfg.h defines IFX_CFG_EXTEND_TRAP_HOOKS. */ - -#ifndef IFX_CFG_TRAP_H -#define IFX_CFG_TRAP_H - -/* ThreadX system call handler, defined in tx_thread_schedule.c of the port. - The types match VOID and UCHAR in tx_port.h. */ -void _tx_thread_syscall_handler(unsigned char id); - -/* The ThreadX port enters the scheduler through a system call on CPU0. The - hook shall call _tx_thread_syscall_handler directly: the port's context - save walks a fixed number of CSA links back from the handler - (TX_PORT_TRICORE_SYSCALL_CALL_DEPTH in src/tx_port_tricore.h). */ -#define IFX_CFG_CPU_TRAP_SYSCALL_CPU0_HOOK(trapWatch) _tx_thread_syscall_handler((trapWatch).tId) - -#endif /* IFX_CFG_TRAP_H */ diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Lcf_Gnuc_Tricore_Tc.lsl b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Lcf_Gnuc_Tricore_Tc.lsl deleted file mode 100644 index 94047f8b6..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/Lcf_Gnuc_Tricore_Tc.lsl +++ /dev/null @@ -1,1751 +0,0 @@ -/********************************************************************************************************************** - * \file Lcf_Gnuc_Tricore_Tc.lsl - * \brief Linker command file for Tasking compiler. - * \copyright Copyright (C) Infineon Technologies AG 2019 - * - * Use of this file is subject to the terms of use agreed between (i) you or the company in which ordinary course of - * business you are acting and (ii) Infineon Technologies AG or its licensees. If and as long as no such terms of use - * are agreed, use of this file is subject to following: - * - * Boost Software License - Version 1.0 - August 17th, 2003 - * - * Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and - * accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, - * and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the - * Software is furnished to do so, all subject to the following: - * - * The copyright notices in the Software and this entire statement, including the above license grant, this restriction - * and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all - * derivative works of the Software, unless such copies or derivative works are solely in the form of - * machine-executable object code generated by a source language processor. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE - * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE - * COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN - * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - *********************************************************************************************************************/ -/* Default linker script, for normal executables */ -OUTPUT_FORMAT("elf32-tricore") -OUTPUT_ARCH(tricore) -ENTRY(_START) - -__TRICORE_DERIVATE_MEMORY_MAP__ = 0x380; - -LCF_CSA0_SIZE = 12k; -LCF_USTACK0_SIZE = 2k; -LCF_ISTACK0_SIZE = 1k; - -LCF_CSA1_SIZE = 8k; -LCF_USTACK1_SIZE = 2k; -LCF_ISTACK1_SIZE = 1k; - -LCF_CSA2_SIZE = 8k; -LCF_USTACK2_SIZE = 2k; -LCF_ISTACK2_SIZE = 1k; - -LCF_HEAP_SIZE = 4k; - -LCF_DSPR2_START = 0x50000000; -LCF_DSPR2_SIZE = 96k; - -LCF_DSPR1_START = 0x60000000; -LCF_DSPR1_SIZE = 240k; - -LCF_DSPR0_START = 0x70000000; -LCF_DSPR0_SIZE = 240k; - -LCF_CSA2_OFFSET = (LCF_DSPR2_SIZE - 1k - LCF_CSA2_SIZE); -LCF_ISTACK2_OFFSET = (LCF_CSA2_OFFSET - 256 - LCF_ISTACK2_SIZE); -LCF_USTACK2_OFFSET = (LCF_ISTACK2_OFFSET - 256 - LCF_USTACK2_SIZE); - -LCF_CSA1_OFFSET = (LCF_DSPR1_SIZE - 1k - LCF_CSA1_SIZE); -LCF_ISTACK1_OFFSET = (LCF_CSA1_OFFSET - 256 - LCF_ISTACK1_SIZE); -LCF_USTACK1_OFFSET = (LCF_ISTACK1_OFFSET - 256 - LCF_USTACK1_SIZE); - -LCF_CSA0_OFFSET = (LCF_DSPR0_SIZE - 1k - LCF_CSA0_SIZE); -LCF_ISTACK0_OFFSET = (LCF_CSA0_OFFSET - 256 - LCF_ISTACK0_SIZE); -LCF_USTACK0_OFFSET = (LCF_ISTACK0_OFFSET - 256 - LCF_USTACK0_SIZE); - -LCF_HEAP0_OFFSET = (LCF_USTACK0_OFFSET - LCF_HEAP_SIZE); -LCF_HEAP1_OFFSET = (LCF_USTACK1_OFFSET - LCF_HEAP_SIZE); -LCF_HEAP2_OFFSET = (LCF_USTACK2_OFFSET - LCF_HEAP_SIZE); - -LCF_INTVEC0_START = 0x802FE000; -LCF_INTVEC1_START = 0x805FC000; -LCF_INTVEC2_START = 0x805FE000; - -__INTTAB_CPU0 = LCF_INTVEC0_START; -__INTTAB_CPU1 = LCF_INTVEC1_START; -__INTTAB_CPU2 = LCF_INTVEC2_START; - -LCF_TRAPVEC0_START = 0x80000100; -LCF_TRAPVEC1_START = 0x80300000; -LCF_TRAPVEC2_START = 0x80300100; - -LCF_STARTPTR_CPU0 = 0x80000000; -LCF_STARTPTR_CPU1 = 0x80300200; -LCF_STARTPTR_CPU2 = 0x80300220; - -LCF_STARTPTR_NC_CPU0 = 0xA0000000; -LCF_STARTPTR_NC_CPU1 = 0xA0300200; -LCF_STARTPTR_NC_CPU2 = 0xA0300220; - -RESET = LCF_STARTPTR_NC_CPU0; - -MEMORY -{ - dsram2_local (w!xp): org = 0xd0000000, len = 96K - dsram2 (w!xp): org = 0x50000000, len = 96K - psram2 (w!xp): org = 0x50100000, len = 64K - - dsram1_local (w!xp): org = 0xd0000000, len = 240K - dsram1 (w!xp): org = 0x60000000, len = 240K - psram1 (w!xp): org = 0x60100000, len = 64K - - dsram0_local (w!xp): org = 0xd0000000, len = 240K - dsram0 (w!xp): org = 0x70000000, len = 240K - psram0 (w!xp): org = 0x70100000, len = 64K - - psram_local (w!xp): org = 0xc0000000, len = 64K - - pfls0 (rx!p): org = 0x80000000, len = 3M - pfls0_nc (rx!p): org = 0xa0000000, len = 3M - - pfls1 (rx!p): org = 0x80300000, len = 3M - pfls1_nc (rx!p): org = 0xa0300000, len = 3M - - dfls0 (rx!p): org = 0xaf000000, len = 256K - - ucb (rx!p): org = 0xaf400000, len = 24K - - cpu0_dlmu (w!xp): org = 0x90000000, len = 64K - cpu0_dlmu_nc (w!xp): org = 0xb0000000, len = 64K - - cpu1_dlmu (w!xp): org = 0x90010000, len = 64K - cpu1_dlmu_nc (w!xp): org = 0xb0010000, len = 64K - - cpu2_dlmu (w!xp): org = 0x90020000, len = 64K - cpu2_dlmu_nc (w!xp): org = 0xb0020000, len = 64K - -} - -/* map local memory address to a global address */ -REGION_MAP( CPU0 , ORIGIN(dsram0_local), LENGTH(dsram0_local), ORIGIN(dsram0)) -REGION_MAP( CPU1 , ORIGIN(dsram1_local), LENGTH(dsram1_local), ORIGIN(dsram1)) -REGION_MAP( CPU2 , ORIGIN(dsram2_local), LENGTH(dsram2_local), ORIGIN(dsram2)) -/* map cached and non cached addresses */ -REGION_MIRROR("pfls0", "pfls0_nc") -REGION_MIRROR("pfls1", "pfls1_nc") -REGION_MIRROR("cpu0_dlmu", "cpu0_dlmu_nc") -REGION_MIRROR("cpu1_dlmu", "cpu1_dlmu_nc") -REGION_MIRROR("cpu2_dlmu", "cpu2_dlmu_nc") - -/*Un comment one of the below statement groups to enable CpuX DMI RAM to hold global variables*/ - -REGION_ALIAS( default_ram , dsram0) -REGION_ALIAS( default_rom , pfls0) - -/* -REGION_ALIAS( default_ram , dsram1) -REGION_ALIAS( default_rom , pfls1) -*/ -/* -REGION_ALIAS( default_ram , dsram2) -*/ - -/*Sections located at absolute fixed address*/ - /*Fixed memory Allocations for stack memory and CSA*/ - CORE_ID = CPU2; - SECTIONS - { - CORE_SEC(.ustack) (LCF_DSPR2_START + LCF_USTACK2_OFFSET): - { PROVIDE(__USTACK2_END = .); . = . + LCF_USTACK2_SIZE; PROVIDE(__USTACK2 = .); } - - CORE_SEC(.istack) (LCF_DSPR2_START + LCF_ISTACK2_OFFSET): - { PROVIDE(__ISTACK2_END = .); . = . + LCF_ISTACK2_SIZE; PROVIDE(__ISTACK2 = .); } - - CORE_SEC(.csa) (LCF_DSPR2_START + LCF_CSA2_OFFSET): - { PROVIDE(__CSA2 = .); . = . + LCF_CSA2_SIZE; PROVIDE(__CSA2_END = .); } - } - - CORE_ID = CPU1; - SECTIONS - { - CORE_SEC(.ustack) (LCF_DSPR1_START + LCF_USTACK1_OFFSET): - { PROVIDE(__USTACK1_END = .); . = . + LCF_USTACK1_SIZE; PROVIDE(__USTACK1 = .); } - - CORE_SEC(.istack) (LCF_DSPR1_START + LCF_ISTACK1_OFFSET): - { PROVIDE(__ISTACK1_END = .); . = . + LCF_ISTACK1_SIZE; PROVIDE(__ISTACK1 = .); } - - CORE_SEC(.csa) (LCF_DSPR1_START + LCF_CSA1_OFFSET): - { PROVIDE(__CSA1 = .); . = . + LCF_CSA1_SIZE; PROVIDE(__CSA1_END = .); } - } - - CORE_ID = CPU0; - SECTIONS - { - CORE_SEC(.ustack) (LCF_DSPR0_START + LCF_USTACK0_OFFSET): - { PROVIDE(__USTACK0_END = .); . = . + LCF_USTACK0_SIZE; PROVIDE(__USTACK0 = .); } - - CORE_SEC(.istack) (LCF_DSPR0_START + LCF_ISTACK0_OFFSET): - { PROVIDE(__ISTACK0_END = .); . = . + LCF_ISTACK0_SIZE; PROVIDE(__ISTACK0 = .); } - - CORE_SEC(.csa) (LCF_DSPR0_START + LCF_CSA0_OFFSET): - { PROVIDE(__CSA0 = .); . = . + LCF_CSA0_SIZE; PROVIDE(__CSA0_END = .); } - } - - /*Fixed memory Allocations for _START*/ - CORE_ID = GLOBAL ; - SECTIONS - { - .start_tc0 (LCF_STARTPTR_NC_CPU0) : FLAGS(rxl) { KEEP (*(.start)); } > pfls0_nc - .interface_const (0x80000020) : { __IF_CONST = .; KEEP (*(.interface_const)); } > pfls0 - PROVIDE(__START0 = LCF_STARTPTR_NC_CPU0); - PROVIDE(__ENABLE_INDIVIDUAL_C_INIT_CPU0 = 0); /* Not used */ - PROVIDE(__ENABLE_INDIVIDUAL_C_INIT_CPU1 = 0); - PROVIDE(__ENABLE_INDIVIDUAL_C_INIT_CPU2 = 0); - } - - /*Fixed memory Allocations for Trap Vector Table*/ - CORE_ID = GLOBAL; - SECTIONS - { - .traptab_tc0 (LCF_TRAPVEC0_START) : { PROVIDE(__TRAPTAB_CPU0 = .); KEEP (*(.traptab_cpu0)); } > pfls0 - .traptab_tc1 (LCF_TRAPVEC1_START) : { PROVIDE(__TRAPTAB_CPU1 = .); KEEP (*(.traptab_cpu1)); } > pfls1 - .traptab_tc2 (LCF_TRAPVEC2_START) : { PROVIDE(__TRAPTAB_CPU2 = .); KEEP (*(.traptab_cpu2)); } > pfls1 - } - - /*Fixed memory Allocations for _START1 to 2*/ - CORE_ID = GLOBAL ; - SECTIONS - { - .start_tc1 (LCF_STARTPTR_NC_CPU1) : FLAGS(rxl) { KEEP (*(.start_cpu1)); } > pfls1_nc - .start_tc2 (LCF_STARTPTR_NC_CPU2) : FLAGS(rxl) { KEEP (*(.start_cpu2)); } > pfls1_nc - PROVIDE(__START1 = LCF_STARTPTR_NC_CPU1); - PROVIDE(__START2 = LCF_STARTPTR_NC_CPU2); - } - - /*Fixed memory Allocations for Interrupt Vector Table*/ - SECTIONS - { - /*CPU0 Interrupt Vector Table*/ - .inttab_tc0_000 (__INTTAB_CPU0 + 0x0000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_0 )); } - .inttab_tc0_001 (__INTTAB_CPU0 + 0x0020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_1 )); } - .inttab_tc0_002 (__INTTAB_CPU0 + 0x0040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_2 )); } - .inttab_tc0_003 (__INTTAB_CPU0 + 0x0060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_3 )); } - .inttab_tc0_004 (__INTTAB_CPU0 + 0x0080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_4 )); } - .inttab_tc0_005 (__INTTAB_CPU0 + 0x00A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_5 )); } - .inttab_tc0_006 (__INTTAB_CPU0 + 0x00C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_6 )); } - .inttab_tc0_007 (__INTTAB_CPU0 + 0x00E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_7 )); } - .inttab_tc0_008 (__INTTAB_CPU0 + 0x0100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_8 )); } - .inttab_tc0_009 (__INTTAB_CPU0 + 0x0120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_9 )); } - .inttab_tc0_00A (__INTTAB_CPU0 + 0x0140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_10 )); } - .inttab_tc0_00B (__INTTAB_CPU0 + 0x0160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_11 )); } - .inttab_tc0_00C (__INTTAB_CPU0 + 0x0180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_12 )); } - .inttab_tc0_00D (__INTTAB_CPU0 + 0x01A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_13 )); } - .inttab_tc0_00E (__INTTAB_CPU0 + 0x01C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_14 )); } - .inttab_tc0_00F (__INTTAB_CPU0 + 0x01E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_15 )); } - .inttab_tc0_010 (__INTTAB_CPU0 + 0x0200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_16 )); } - .inttab_tc0_011 (__INTTAB_CPU0 + 0x0220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_17 )); } - .inttab_tc0_012 (__INTTAB_CPU0 + 0x0240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_18 )); } - .inttab_tc0_013 (__INTTAB_CPU0 + 0x0260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_19 )); } - .inttab_tc0_014 (__INTTAB_CPU0 + 0x0280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_20 )); } - .inttab_tc0_015 (__INTTAB_CPU0 + 0x02A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_21 )); } - .inttab_tc0_016 (__INTTAB_CPU0 + 0x02C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_22 )); } - .inttab_tc0_017 (__INTTAB_CPU0 + 0x02E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_23 )); } - .inttab_tc0_018 (__INTTAB_CPU0 + 0x0300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_24 )); } - .inttab_tc0_019 (__INTTAB_CPU0 + 0x0320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_25 )); } - .inttab_tc0_01A (__INTTAB_CPU0 + 0x0340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_26 )); } - .inttab_tc0_01B (__INTTAB_CPU0 + 0x0360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_27 )); } - .inttab_tc0_01C (__INTTAB_CPU0 + 0x0380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_28 )); } - .inttab_tc0_01D (__INTTAB_CPU0 + 0x03A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_29 )); } - .inttab_tc0_01E (__INTTAB_CPU0 + 0x03C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_30 )); } - .inttab_tc0_01F (__INTTAB_CPU0 + 0x03E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_31 )); } - .inttab_tc0_020 (__INTTAB_CPU0 + 0x0400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_32 )); } - .inttab_tc0_021 (__INTTAB_CPU0 + 0x0420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_33 )); } - .inttab_tc0_022 (__INTTAB_CPU0 + 0x0440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_34 )); } - .inttab_tc0_023 (__INTTAB_CPU0 + 0x0460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_35 )); } - .inttab_tc0_024 (__INTTAB_CPU0 + 0x0480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_36 )); } - .inttab_tc0_025 (__INTTAB_CPU0 + 0x04A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_37 )); } - .inttab_tc0_026 (__INTTAB_CPU0 + 0x04C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_38 )); } - .inttab_tc0_027 (__INTTAB_CPU0 + 0x04E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_39 )); } - .inttab_tc0_028 (__INTTAB_CPU0 + 0x0500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_40 )); } - .inttab_tc0_029 (__INTTAB_CPU0 + 0x0520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_41 )); } - .inttab_tc0_02A (__INTTAB_CPU0 + 0x0540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_42 )); } - .inttab_tc0_02B (__INTTAB_CPU0 + 0x0560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_43 )); } - .inttab_tc0_02C (__INTTAB_CPU0 + 0x0580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_44 )); } - .inttab_tc0_02D (__INTTAB_CPU0 + 0x05A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_45 )); } - .inttab_tc0_02E (__INTTAB_CPU0 + 0x05C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_46 )); } - .inttab_tc0_02F (__INTTAB_CPU0 + 0x05E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_47 )); } - .inttab_tc0_030 (__INTTAB_CPU0 + 0x0600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_48 )); } - .inttab_tc0_031 (__INTTAB_CPU0 + 0x0620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_49 )); } - .inttab_tc0_032 (__INTTAB_CPU0 + 0x0640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_50 )); } - .inttab_tc0_033 (__INTTAB_CPU0 + 0x0660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_51 )); } - .inttab_tc0_034 (__INTTAB_CPU0 + 0x0680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_52 )); } - .inttab_tc0_035 (__INTTAB_CPU0 + 0x06A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_53 )); } - .inttab_tc0_036 (__INTTAB_CPU0 + 0x06C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_54 )); } - .inttab_tc0_037 (__INTTAB_CPU0 + 0x06E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_55 )); } - .inttab_tc0_038 (__INTTAB_CPU0 + 0x0700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_56 )); } - .inttab_tc0_039 (__INTTAB_CPU0 + 0x0720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_57 )); } - .inttab_tc0_03A (__INTTAB_CPU0 + 0x0740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_58 )); } - .inttab_tc0_03B (__INTTAB_CPU0 + 0x0760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_59 )); } - .inttab_tc0_03C (__INTTAB_CPU0 + 0x0780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_60 )); } - .inttab_tc0_03D (__INTTAB_CPU0 + 0x07A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_61 )); } - .inttab_tc0_03E (__INTTAB_CPU0 + 0x07C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_62 )); } - .inttab_tc0_03F (__INTTAB_CPU0 + 0x07E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_63 )); } - .inttab_tc0_040 (__INTTAB_CPU0 + 0x0800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_64 )); } - .inttab_tc0_041 (__INTTAB_CPU0 + 0x0820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_65 )); } - .inttab_tc0_042 (__INTTAB_CPU0 + 0x0840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_66 )); } - .inttab_tc0_043 (__INTTAB_CPU0 + 0x0860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_67 )); } - .inttab_tc0_044 (__INTTAB_CPU0 + 0x0880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_68 )); } - .inttab_tc0_045 (__INTTAB_CPU0 + 0x08A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_69 )); } - .inttab_tc0_046 (__INTTAB_CPU0 + 0x08C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_70 )); } - .inttab_tc0_047 (__INTTAB_CPU0 + 0x08E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_71 )); } - .inttab_tc0_048 (__INTTAB_CPU0 + 0x0900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_72 )); } - .inttab_tc0_049 (__INTTAB_CPU0 + 0x0920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_73 )); } - .inttab_tc0_04A (__INTTAB_CPU0 + 0x0940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_74 )); } - .inttab_tc0_04B (__INTTAB_CPU0 + 0x0960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_75 )); } - .inttab_tc0_04C (__INTTAB_CPU0 + 0x0980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_76 )); } - .inttab_tc0_04D (__INTTAB_CPU0 + 0x09A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_77 )); } - .inttab_tc0_04E (__INTTAB_CPU0 + 0x09C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_78 )); } - .inttab_tc0_04F (__INTTAB_CPU0 + 0x09E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_79 )); } - .inttab_tc0_050 (__INTTAB_CPU0 + 0x0A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_80 )); } - .inttab_tc0_051 (__INTTAB_CPU0 + 0x0A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_81 )); } - .inttab_tc0_052 (__INTTAB_CPU0 + 0x0A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_82 )); } - .inttab_tc0_053 (__INTTAB_CPU0 + 0x0A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_83 )); } - .inttab_tc0_054 (__INTTAB_CPU0 + 0x0A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_84 )); } - .inttab_tc0_055 (__INTTAB_CPU0 + 0x0AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_85 )); } - .inttab_tc0_056 (__INTTAB_CPU0 + 0x0AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_86 )); } - .inttab_tc0_057 (__INTTAB_CPU0 + 0x0AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_87 )); } - .inttab_tc0_058 (__INTTAB_CPU0 + 0x0B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_88 )); } - .inttab_tc0_059 (__INTTAB_CPU0 + 0x0B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_89 )); } - .inttab_tc0_05A (__INTTAB_CPU0 + 0x0B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_90 )); } - .inttab_tc0_05B (__INTTAB_CPU0 + 0x0B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_91 )); } - .inttab_tc0_05C (__INTTAB_CPU0 + 0x0B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_92 )); } - .inttab_tc0_05D (__INTTAB_CPU0 + 0x0BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_93 )); } - .inttab_tc0_05E (__INTTAB_CPU0 + 0x0BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_94 )); } - .inttab_tc0_05F (__INTTAB_CPU0 + 0x0BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_95 )); } - .inttab_tc0_060 (__INTTAB_CPU0 + 0x0C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_96 )); } - .inttab_tc0_061 (__INTTAB_CPU0 + 0x0C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_97 )); } - .inttab_tc0_062 (__INTTAB_CPU0 + 0x0C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_98 )); } - .inttab_tc0_063 (__INTTAB_CPU0 + 0x0C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_99 )); } - .inttab_tc0_064 (__INTTAB_CPU0 + 0x0C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_100)); } - .inttab_tc0_065 (__INTTAB_CPU0 + 0x0CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_101)); } - .inttab_tc0_066 (__INTTAB_CPU0 + 0x0CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_102)); } - .inttab_tc0_067 (__INTTAB_CPU0 + 0x0CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_103)); } - .inttab_tc0_068 (__INTTAB_CPU0 + 0x0D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_104)); } - .inttab_tc0_069 (__INTTAB_CPU0 + 0x0D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_105)); } - .inttab_tc0_06A (__INTTAB_CPU0 + 0x0D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_106)); } - .inttab_tc0_06B (__INTTAB_CPU0 + 0x0D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_107)); } - .inttab_tc0_06C (__INTTAB_CPU0 + 0x0D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_108)); } - .inttab_tc0_06D (__INTTAB_CPU0 + 0x0DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_109)); } - .inttab_tc0_06E (__INTTAB_CPU0 + 0x0DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_110)); } - .inttab_tc0_06F (__INTTAB_CPU0 + 0x0DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_111)); } - .inttab_tc0_070 (__INTTAB_CPU0 + 0x0E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_112)); } - .inttab_tc0_071 (__INTTAB_CPU0 + 0x0E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_113)); } - .inttab_tc0_072 (__INTTAB_CPU0 + 0x0E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_114)); } - .inttab_tc0_073 (__INTTAB_CPU0 + 0x0E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_115)); } - .inttab_tc0_074 (__INTTAB_CPU0 + 0x0E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_116)); } - .inttab_tc0_075 (__INTTAB_CPU0 + 0x0EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_117)); } - .inttab_tc0_076 (__INTTAB_CPU0 + 0x0EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_118)); } - .inttab_tc0_077 (__INTTAB_CPU0 + 0x0EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_119)); } - .inttab_tc0_078 (__INTTAB_CPU0 + 0x0F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_120)); } - .inttab_tc0_079 (__INTTAB_CPU0 + 0x0F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_121)); } - .inttab_tc0_07A (__INTTAB_CPU0 + 0x0F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_122)); } - .inttab_tc0_07B (__INTTAB_CPU0 + 0x0F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_123)); } - .inttab_tc0_07C (__INTTAB_CPU0 + 0x0F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_124)); } - .inttab_tc0_07D (__INTTAB_CPU0 + 0x0FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_125)); } - .inttab_tc0_07E (__INTTAB_CPU0 + 0x0FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_126)); } - .inttab_tc0_07F (__INTTAB_CPU0 + 0x0FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_127)); } - .inttab_tc0_080 (__INTTAB_CPU0 + 0x1000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_128)); } - .inttab_tc0_081 (__INTTAB_CPU0 + 0x1020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_129)); } - .inttab_tc0_082 (__INTTAB_CPU0 + 0x1040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_130)); } - .inttab_tc0_083 (__INTTAB_CPU0 + 0x1060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_131)); } - .inttab_tc0_084 (__INTTAB_CPU0 + 0x1080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_132)); } - .inttab_tc0_085 (__INTTAB_CPU0 + 0x10A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_133)); } - .inttab_tc0_086 (__INTTAB_CPU0 + 0x10C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_134)); } - .inttab_tc0_087 (__INTTAB_CPU0 + 0x10E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_135)); } - .inttab_tc0_088 (__INTTAB_CPU0 + 0x1100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_136)); } - .inttab_tc0_089 (__INTTAB_CPU0 + 0x1120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_137)); } - .inttab_tc0_08A (__INTTAB_CPU0 + 0x1140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_138)); } - .inttab_tc0_08B (__INTTAB_CPU0 + 0x1160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_139)); } - .inttab_tc0_08C (__INTTAB_CPU0 + 0x1180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_140)); } - .inttab_tc0_08D (__INTTAB_CPU0 + 0x11A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_141)); } - .inttab_tc0_08E (__INTTAB_CPU0 + 0x11C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_142)); } - .inttab_tc0_08F (__INTTAB_CPU0 + 0x11E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_143)); } - .inttab_tc0_090 (__INTTAB_CPU0 + 0x1200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_144)); } - .inttab_tc0_091 (__INTTAB_CPU0 + 0x1220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_145)); } - .inttab_tc0_092 (__INTTAB_CPU0 + 0x1240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_146)); } - .inttab_tc0_093 (__INTTAB_CPU0 + 0x1260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_147)); } - .inttab_tc0_094 (__INTTAB_CPU0 + 0x1280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_148)); } - .inttab_tc0_095 (__INTTAB_CPU0 + 0x12A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_149)); } - .inttab_tc0_096 (__INTTAB_CPU0 + 0x12C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_150)); } - .inttab_tc0_097 (__INTTAB_CPU0 + 0x12E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_151)); } - .inttab_tc0_098 (__INTTAB_CPU0 + 0x1300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_152)); } - .inttab_tc0_099 (__INTTAB_CPU0 + 0x1320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_153)); } - .inttab_tc0_09A (__INTTAB_CPU0 + 0x1340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_154)); } - .inttab_tc0_09B (__INTTAB_CPU0 + 0x1360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_155)); } - .inttab_tc0_09C (__INTTAB_CPU0 + 0x1380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_156)); } - .inttab_tc0_09D (__INTTAB_CPU0 + 0x13A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_157)); } - .inttab_tc0_09E (__INTTAB_CPU0 + 0x13C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_158)); } - .inttab_tc0_09F (__INTTAB_CPU0 + 0x13E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_159)); } - .inttab_tc0_0A0 (__INTTAB_CPU0 + 0x1400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_160)); } - .inttab_tc0_0A1 (__INTTAB_CPU0 + 0x1420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_161)); } - .inttab_tc0_0A2 (__INTTAB_CPU0 + 0x1440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_162)); } - .inttab_tc0_0A3 (__INTTAB_CPU0 + 0x1460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_163)); } - .inttab_tc0_0A4 (__INTTAB_CPU0 + 0x1480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_164)); } - .inttab_tc0_0A5 (__INTTAB_CPU0 + 0x14A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_165)); } - .inttab_tc0_0A6 (__INTTAB_CPU0 + 0x14C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_166)); } - .inttab_tc0_0A7 (__INTTAB_CPU0 + 0x14E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_167)); } - .inttab_tc0_0A8 (__INTTAB_CPU0 + 0x1500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_168)); } - .inttab_tc0_0A9 (__INTTAB_CPU0 + 0x1520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_169)); } - .inttab_tc0_0AA (__INTTAB_CPU0 + 0x1540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_170)); } - .inttab_tc0_0AB (__INTTAB_CPU0 + 0x1560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_171)); } - .inttab_tc0_0AC (__INTTAB_CPU0 + 0x1580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_172)); } - .inttab_tc0_0AD (__INTTAB_CPU0 + 0x15A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_173)); } - .inttab_tc0_0AE (__INTTAB_CPU0 + 0x15C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_174)); } - .inttab_tc0_0AF (__INTTAB_CPU0 + 0x15E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_175)); } - .inttab_tc0_0B0 (__INTTAB_CPU0 + 0x1600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_176)); } - .inttab_tc0_0B1 (__INTTAB_CPU0 + 0x1620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_177)); } - .inttab_tc0_0B2 (__INTTAB_CPU0 + 0x1640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_178)); } - .inttab_tc0_0B3 (__INTTAB_CPU0 + 0x1660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_179)); } - .inttab_tc0_0B4 (__INTTAB_CPU0 + 0x1680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_180)); } - .inttab_tc0_0B5 (__INTTAB_CPU0 + 0x16A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_181)); } - .inttab_tc0_0B6 (__INTTAB_CPU0 + 0x16C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_182)); } - .inttab_tc0_0B7 (__INTTAB_CPU0 + 0x16E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_183)); } - .inttab_tc0_0B8 (__INTTAB_CPU0 + 0x1700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_184)); } - .inttab_tc0_0B9 (__INTTAB_CPU0 + 0x1720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_185)); } - .inttab_tc0_0BA (__INTTAB_CPU0 + 0x1740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_186)); } - .inttab_tc0_0BB (__INTTAB_CPU0 + 0x1760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_187)); } - .inttab_tc0_0BC (__INTTAB_CPU0 + 0x1780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_188)); } - .inttab_tc0_0BD (__INTTAB_CPU0 + 0x17A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_189)); } - .inttab_tc0_0BE (__INTTAB_CPU0 + 0x17C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_190)); } - .inttab_tc0_0BF (__INTTAB_CPU0 + 0x17E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_191)); } - .inttab_tc0_0C0 (__INTTAB_CPU0 + 0x1800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_192)); } - .inttab_tc0_0C1 (__INTTAB_CPU0 + 0x1820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_193)); } - .inttab_tc0_0C2 (__INTTAB_CPU0 + 0x1840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_194)); } - .inttab_tc0_0C3 (__INTTAB_CPU0 + 0x1860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_195)); } - .inttab_tc0_0C4 (__INTTAB_CPU0 + 0x1880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_196)); } - .inttab_tc0_0C5 (__INTTAB_CPU0 + 0x18A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_197)); } - .inttab_tc0_0C6 (__INTTAB_CPU0 + 0x18C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_198)); } - .inttab_tc0_0C7 (__INTTAB_CPU0 + 0x18E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_199)); } - .inttab_tc0_0C8 (__INTTAB_CPU0 + 0x1900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_200)); } - .inttab_tc0_0C9 (__INTTAB_CPU0 + 0x1920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_201)); } - .inttab_tc0_0CA (__INTTAB_CPU0 + 0x1940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_202)); } - .inttab_tc0_0CB (__INTTAB_CPU0 + 0x1960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_203)); } - .inttab_tc0_0CC (__INTTAB_CPU0 + 0x1980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_204)); } - .inttab_tc0_0CD (__INTTAB_CPU0 + 0x19A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_205)); } - .inttab_tc0_0CE (__INTTAB_CPU0 + 0x19C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_206)); } - .inttab_tc0_0CF (__INTTAB_CPU0 + 0x19E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_207)); } - .inttab_tc0_0D0 (__INTTAB_CPU0 + 0x1A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_208)); } - .inttab_tc0_0D1 (__INTTAB_CPU0 + 0x1A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_209)); } - .inttab_tc0_0D2 (__INTTAB_CPU0 + 0x1A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_210)); } - .inttab_tc0_0D3 (__INTTAB_CPU0 + 0x1A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_211)); } - .inttab_tc0_0D4 (__INTTAB_CPU0 + 0x1A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_212)); } - .inttab_tc0_0D5 (__INTTAB_CPU0 + 0x1AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_213)); } - .inttab_tc0_0D6 (__INTTAB_CPU0 + 0x1AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_214)); } - .inttab_tc0_0D7 (__INTTAB_CPU0 + 0x1AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_215)); } - .inttab_tc0_0D8 (__INTTAB_CPU0 + 0x1B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_216)); } - .inttab_tc0_0D9 (__INTTAB_CPU0 + 0x1B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_217)); } - .inttab_tc0_0DA (__INTTAB_CPU0 + 0x1B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_218)); } - .inttab_tc0_0DB (__INTTAB_CPU0 + 0x1B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_219)); } - .inttab_tc0_0DC (__INTTAB_CPU0 + 0x1B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_220)); } - .inttab_tc0_0DD (__INTTAB_CPU0 + 0x1BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_221)); } - .inttab_tc0_0DE (__INTTAB_CPU0 + 0x1BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_222)); } - .inttab_tc0_0DF (__INTTAB_CPU0 + 0x1BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_223)); } - .inttab_tc0_0E0 (__INTTAB_CPU0 + 0x1C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_224)); } - .inttab_tc0_0E1 (__INTTAB_CPU0 + 0x1C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_225)); } - .inttab_tc0_0E2 (__INTTAB_CPU0 + 0x1C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_226)); } - .inttab_tc0_0E3 (__INTTAB_CPU0 + 0x1C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_227)); } - .inttab_tc0_0E4 (__INTTAB_CPU0 + 0x1C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_228)); } - .inttab_tc0_0E5 (__INTTAB_CPU0 + 0x1CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_229)); } - .inttab_tc0_0E6 (__INTTAB_CPU0 + 0x1CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_230)); } - .inttab_tc0_0E7 (__INTTAB_CPU0 + 0x1CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_231)); } - .inttab_tc0_0E8 (__INTTAB_CPU0 + 0x1D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_232)); } - .inttab_tc0_0E9 (__INTTAB_CPU0 + 0x1D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_233)); } - .inttab_tc0_0EA (__INTTAB_CPU0 + 0x1D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_234)); } - .inttab_tc0_0EB (__INTTAB_CPU0 + 0x1D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_235)); } - .inttab_tc0_0EC (__INTTAB_CPU0 + 0x1D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_236)); } - .inttab_tc0_0ED (__INTTAB_CPU0 + 0x1DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_237)); } - .inttab_tc0_0EE (__INTTAB_CPU0 + 0x1DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_238)); } - .inttab_tc0_0EF (__INTTAB_CPU0 + 0x1DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_239)); } - .inttab_tc0_0F0 (__INTTAB_CPU0 + 0x1E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_240)); } - .inttab_tc0_0F1 (__INTTAB_CPU0 + 0x1E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_241)); } - .inttab_tc0_0F2 (__INTTAB_CPU0 + 0x1E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_242)); } - .inttab_tc0_0F3 (__INTTAB_CPU0 + 0x1E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_243)); } - .inttab_tc0_0F4 (__INTTAB_CPU0 + 0x1E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_244)); } - .inttab_tc0_0F5 (__INTTAB_CPU0 + 0x1EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_245)); } - .inttab_tc0_0F6 (__INTTAB_CPU0 + 0x1EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_246)); } - .inttab_tc0_0F7 (__INTTAB_CPU0 + 0x1EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_247)); } - .inttab_tc0_0F8 (__INTTAB_CPU0 + 0x1F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_248)); } - .inttab_tc0_0F9 (__INTTAB_CPU0 + 0x1F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_249)); } - .inttab_tc0_0FA (__INTTAB_CPU0 + 0x1F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_250)); } - .inttab_tc0_0FB (__INTTAB_CPU0 + 0x1F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_251)); } - .inttab_tc0_0FC (__INTTAB_CPU0 + 0x1F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_252)); } - .inttab_tc0_0FD (__INTTAB_CPU0 + 0x1FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_253)); } - .inttab_tc0_0FE (__INTTAB_CPU0 + 0x1FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_254)); } - .inttab_tc0_0FF (__INTTAB_CPU0 + 0x1FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc0_255)); } - } - SECTIONS - { - /*CPU1 Interrupt Vector Table*/ - .inttab_tc1_000 (__INTTAB_CPU1 + 0x0000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_0 )); } - .inttab_tc1_001 (__INTTAB_CPU1 + 0x0020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_1 )); } - .inttab_tc1_002 (__INTTAB_CPU1 + 0x0040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_2 )); } - .inttab_tc1_003 (__INTTAB_CPU1 + 0x0060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_3 )); } - .inttab_tc1_004 (__INTTAB_CPU1 + 0x0080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_4 )); } - .inttab_tc1_005 (__INTTAB_CPU1 + 0x00A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_5 )); } - .inttab_tc1_006 (__INTTAB_CPU1 + 0x00C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_6 )); } - .inttab_tc1_007 (__INTTAB_CPU1 + 0x00E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_7 )); } - .inttab_tc1_008 (__INTTAB_CPU1 + 0x0100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_8 )); } - .inttab_tc1_009 (__INTTAB_CPU1 + 0x0120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_9 )); } - .inttab_tc1_00A (__INTTAB_CPU1 + 0x0140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_10 )); } - .inttab_tc1_00B (__INTTAB_CPU1 + 0x0160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_11 )); } - .inttab_tc1_00C (__INTTAB_CPU1 + 0x0180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_12 )); } - .inttab_tc1_00D (__INTTAB_CPU1 + 0x01A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_13 )); } - .inttab_tc1_00E (__INTTAB_CPU1 + 0x01C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_14 )); } - .inttab_tc1_00F (__INTTAB_CPU1 + 0x01E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_15 )); } - .inttab_tc1_010 (__INTTAB_CPU1 + 0x0200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_16 )); } - .inttab_tc1_011 (__INTTAB_CPU1 + 0x0220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_17 )); } - .inttab_tc1_012 (__INTTAB_CPU1 + 0x0240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_18 )); } - .inttab_tc1_013 (__INTTAB_CPU1 + 0x0260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_19 )); } - .inttab_tc1_014 (__INTTAB_CPU1 + 0x0280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_20 )); } - .inttab_tc1_015 (__INTTAB_CPU1 + 0x02A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_21 )); } - .inttab_tc1_016 (__INTTAB_CPU1 + 0x02C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_22 )); } - .inttab_tc1_017 (__INTTAB_CPU1 + 0x02E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_23 )); } - .inttab_tc1_018 (__INTTAB_CPU1 + 0x0300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_24 )); } - .inttab_tc1_019 (__INTTAB_CPU1 + 0x0320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_25 )); } - .inttab_tc1_01A (__INTTAB_CPU1 + 0x0340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_26 )); } - .inttab_tc1_01B (__INTTAB_CPU1 + 0x0360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_27 )); } - .inttab_tc1_01C (__INTTAB_CPU1 + 0x0380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_28 )); } - .inttab_tc1_01D (__INTTAB_CPU1 + 0x03A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_29 )); } - .inttab_tc1_01E (__INTTAB_CPU1 + 0x03C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_30 )); } - .inttab_tc1_01F (__INTTAB_CPU1 + 0x03E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_31 )); } - .inttab_tc1_020 (__INTTAB_CPU1 + 0x0400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_32 )); } - .inttab_tc1_021 (__INTTAB_CPU1 + 0x0420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_33 )); } - .inttab_tc1_022 (__INTTAB_CPU1 + 0x0440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_34 )); } - .inttab_tc1_023 (__INTTAB_CPU1 + 0x0460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_35 )); } - .inttab_tc1_024 (__INTTAB_CPU1 + 0x0480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_36 )); } - .inttab_tc1_025 (__INTTAB_CPU1 + 0x04A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_37 )); } - .inttab_tc1_026 (__INTTAB_CPU1 + 0x04C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_38 )); } - .inttab_tc1_027 (__INTTAB_CPU1 + 0x04E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_39 )); } - .inttab_tc1_028 (__INTTAB_CPU1 + 0x0500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_40 )); } - .inttab_tc1_029 (__INTTAB_CPU1 + 0x0520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_41 )); } - .inttab_tc1_02A (__INTTAB_CPU1 + 0x0540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_42 )); } - .inttab_tc1_02B (__INTTAB_CPU1 + 0x0560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_43 )); } - .inttab_tc1_02C (__INTTAB_CPU1 + 0x0580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_44 )); } - .inttab_tc1_02D (__INTTAB_CPU1 + 0x05A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_45 )); } - .inttab_tc1_02E (__INTTAB_CPU1 + 0x05C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_46 )); } - .inttab_tc1_02F (__INTTAB_CPU1 + 0x05E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_47 )); } - .inttab_tc1_030 (__INTTAB_CPU1 + 0x0600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_48 )); } - .inttab_tc1_031 (__INTTAB_CPU1 + 0x0620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_49 )); } - .inttab_tc1_032 (__INTTAB_CPU1 + 0x0640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_50 )); } - .inttab_tc1_033 (__INTTAB_CPU1 + 0x0660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_51 )); } - .inttab_tc1_034 (__INTTAB_CPU1 + 0x0680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_52 )); } - .inttab_tc1_035 (__INTTAB_CPU1 + 0x06A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_53 )); } - .inttab_tc1_036 (__INTTAB_CPU1 + 0x06C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_54 )); } - .inttab_tc1_037 (__INTTAB_CPU1 + 0x06E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_55 )); } - .inttab_tc1_038 (__INTTAB_CPU1 + 0x0700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_56 )); } - .inttab_tc1_039 (__INTTAB_CPU1 + 0x0720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_57 )); } - .inttab_tc1_03A (__INTTAB_CPU1 + 0x0740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_58 )); } - .inttab_tc1_03B (__INTTAB_CPU1 + 0x0760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_59 )); } - .inttab_tc1_03C (__INTTAB_CPU1 + 0x0780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_60 )); } - .inttab_tc1_03D (__INTTAB_CPU1 + 0x07A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_61 )); } - .inttab_tc1_03E (__INTTAB_CPU1 + 0x07C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_62 )); } - .inttab_tc1_03F (__INTTAB_CPU1 + 0x07E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_63 )); } - .inttab_tc1_040 (__INTTAB_CPU1 + 0x0800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_64 )); } - .inttab_tc1_041 (__INTTAB_CPU1 + 0x0820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_65 )); } - .inttab_tc1_042 (__INTTAB_CPU1 + 0x0840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_66 )); } - .inttab_tc1_043 (__INTTAB_CPU1 + 0x0860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_67 )); } - .inttab_tc1_044 (__INTTAB_CPU1 + 0x0880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_68 )); } - .inttab_tc1_045 (__INTTAB_CPU1 + 0x08A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_69 )); } - .inttab_tc1_046 (__INTTAB_CPU1 + 0x08C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_70 )); } - .inttab_tc1_047 (__INTTAB_CPU1 + 0x08E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_71 )); } - .inttab_tc1_048 (__INTTAB_CPU1 + 0x0900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_72 )); } - .inttab_tc1_049 (__INTTAB_CPU1 + 0x0920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_73 )); } - .inttab_tc1_04A (__INTTAB_CPU1 + 0x0940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_74 )); } - .inttab_tc1_04B (__INTTAB_CPU1 + 0x0960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_75 )); } - .inttab_tc1_04C (__INTTAB_CPU1 + 0x0980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_76 )); } - .inttab_tc1_04D (__INTTAB_CPU1 + 0x09A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_77 )); } - .inttab_tc1_04E (__INTTAB_CPU1 + 0x09C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_78 )); } - .inttab_tc1_04F (__INTTAB_CPU1 + 0x09E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_79 )); } - .inttab_tc1_050 (__INTTAB_CPU1 + 0x0A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_80 )); } - .inttab_tc1_051 (__INTTAB_CPU1 + 0x0A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_81 )); } - .inttab_tc1_052 (__INTTAB_CPU1 + 0x0A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_82 )); } - .inttab_tc1_053 (__INTTAB_CPU1 + 0x0A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_83 )); } - .inttab_tc1_054 (__INTTAB_CPU1 + 0x0A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_84 )); } - .inttab_tc1_055 (__INTTAB_CPU1 + 0x0AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_85 )); } - .inttab_tc1_056 (__INTTAB_CPU1 + 0x0AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_86 )); } - .inttab_tc1_057 (__INTTAB_CPU1 + 0x0AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_87 )); } - .inttab_tc1_058 (__INTTAB_CPU1 + 0x0B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_88 )); } - .inttab_tc1_059 (__INTTAB_CPU1 + 0x0B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_89 )); } - .inttab_tc1_05A (__INTTAB_CPU1 + 0x0B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_90 )); } - .inttab_tc1_05B (__INTTAB_CPU1 + 0x0B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_91 )); } - .inttab_tc1_05C (__INTTAB_CPU1 + 0x0B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_92 )); } - .inttab_tc1_05D (__INTTAB_CPU1 + 0x0BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_93 )); } - .inttab_tc1_05E (__INTTAB_CPU1 + 0x0BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_94 )); } - .inttab_tc1_05F (__INTTAB_CPU1 + 0x0BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_95 )); } - .inttab_tc1_060 (__INTTAB_CPU1 + 0x0C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_96 )); } - .inttab_tc1_061 (__INTTAB_CPU1 + 0x0C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_97 )); } - .inttab_tc1_062 (__INTTAB_CPU1 + 0x0C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_98 )); } - .inttab_tc1_063 (__INTTAB_CPU1 + 0x0C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_99 )); } - .inttab_tc1_064 (__INTTAB_CPU1 + 0x0C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_100)); } - .inttab_tc1_065 (__INTTAB_CPU1 + 0x0CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_101)); } - .inttab_tc1_066 (__INTTAB_CPU1 + 0x0CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_102)); } - .inttab_tc1_067 (__INTTAB_CPU1 + 0x0CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_103)); } - .inttab_tc1_068 (__INTTAB_CPU1 + 0x0D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_104)); } - .inttab_tc1_069 (__INTTAB_CPU1 + 0x0D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_105)); } - .inttab_tc1_06A (__INTTAB_CPU1 + 0x0D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_106)); } - .inttab_tc1_06B (__INTTAB_CPU1 + 0x0D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_107)); } - .inttab_tc1_06C (__INTTAB_CPU1 + 0x0D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_108)); } - .inttab_tc1_06D (__INTTAB_CPU1 + 0x0DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_109)); } - .inttab_tc1_06E (__INTTAB_CPU1 + 0x0DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_110)); } - .inttab_tc1_06F (__INTTAB_CPU1 + 0x0DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_111)); } - .inttab_tc1_070 (__INTTAB_CPU1 + 0x0E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_112)); } - .inttab_tc1_071 (__INTTAB_CPU1 + 0x0E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_113)); } - .inttab_tc1_072 (__INTTAB_CPU1 + 0x0E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_114)); } - .inttab_tc1_073 (__INTTAB_CPU1 + 0x0E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_115)); } - .inttab_tc1_074 (__INTTAB_CPU1 + 0x0E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_116)); } - .inttab_tc1_075 (__INTTAB_CPU1 + 0x0EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_117)); } - .inttab_tc1_076 (__INTTAB_CPU1 + 0x0EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_118)); } - .inttab_tc1_077 (__INTTAB_CPU1 + 0x0EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_119)); } - .inttab_tc1_078 (__INTTAB_CPU1 + 0x0F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_120)); } - .inttab_tc1_079 (__INTTAB_CPU1 + 0x0F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_121)); } - .inttab_tc1_07A (__INTTAB_CPU1 + 0x0F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_122)); } - .inttab_tc1_07B (__INTTAB_CPU1 + 0x0F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_123)); } - .inttab_tc1_07C (__INTTAB_CPU1 + 0x0F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_124)); } - .inttab_tc1_07D (__INTTAB_CPU1 + 0x0FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_125)); } - .inttab_tc1_07E (__INTTAB_CPU1 + 0x0FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_126)); } - .inttab_tc1_07F (__INTTAB_CPU1 + 0x0FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_127)); } - .inttab_tc1_080 (__INTTAB_CPU1 + 0x1000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_128)); } - .inttab_tc1_081 (__INTTAB_CPU1 + 0x1020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_129)); } - .inttab_tc1_082 (__INTTAB_CPU1 + 0x1040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_130)); } - .inttab_tc1_083 (__INTTAB_CPU1 + 0x1060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_131)); } - .inttab_tc1_084 (__INTTAB_CPU1 + 0x1080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_132)); } - .inttab_tc1_085 (__INTTAB_CPU1 + 0x10A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_133)); } - .inttab_tc1_086 (__INTTAB_CPU1 + 0x10C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_134)); } - .inttab_tc1_087 (__INTTAB_CPU1 + 0x10E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_135)); } - .inttab_tc1_088 (__INTTAB_CPU1 + 0x1100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_136)); } - .inttab_tc1_089 (__INTTAB_CPU1 + 0x1120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_137)); } - .inttab_tc1_08A (__INTTAB_CPU1 + 0x1140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_138)); } - .inttab_tc1_08B (__INTTAB_CPU1 + 0x1160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_139)); } - .inttab_tc1_08C (__INTTAB_CPU1 + 0x1180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_140)); } - .inttab_tc1_08D (__INTTAB_CPU1 + 0x11A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_141)); } - .inttab_tc1_08E (__INTTAB_CPU1 + 0x11C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_142)); } - .inttab_tc1_08F (__INTTAB_CPU1 + 0x11E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_143)); } - .inttab_tc1_090 (__INTTAB_CPU1 + 0x1200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_144)); } - .inttab_tc1_091 (__INTTAB_CPU1 + 0x1220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_145)); } - .inttab_tc1_092 (__INTTAB_CPU1 + 0x1240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_146)); } - .inttab_tc1_093 (__INTTAB_CPU1 + 0x1260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_147)); } - .inttab_tc1_094 (__INTTAB_CPU1 + 0x1280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_148)); } - .inttab_tc1_095 (__INTTAB_CPU1 + 0x12A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_149)); } - .inttab_tc1_096 (__INTTAB_CPU1 + 0x12C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_150)); } - .inttab_tc1_097 (__INTTAB_CPU1 + 0x12E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_151)); } - .inttab_tc1_098 (__INTTAB_CPU1 + 0x1300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_152)); } - .inttab_tc1_099 (__INTTAB_CPU1 + 0x1320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_153)); } - .inttab_tc1_09A (__INTTAB_CPU1 + 0x1340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_154)); } - .inttab_tc1_09B (__INTTAB_CPU1 + 0x1360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_155)); } - .inttab_tc1_09C (__INTTAB_CPU1 + 0x1380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_156)); } - .inttab_tc1_09D (__INTTAB_CPU1 + 0x13A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_157)); } - .inttab_tc1_09E (__INTTAB_CPU1 + 0x13C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_158)); } - .inttab_tc1_09F (__INTTAB_CPU1 + 0x13E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_159)); } - .inttab_tc1_0A0 (__INTTAB_CPU1 + 0x1400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_160)); } - .inttab_tc1_0A1 (__INTTAB_CPU1 + 0x1420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_161)); } - .inttab_tc1_0A2 (__INTTAB_CPU1 + 0x1440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_162)); } - .inttab_tc1_0A3 (__INTTAB_CPU1 + 0x1460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_163)); } - .inttab_tc1_0A4 (__INTTAB_CPU1 + 0x1480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_164)); } - .inttab_tc1_0A5 (__INTTAB_CPU1 + 0x14A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_165)); } - .inttab_tc1_0A6 (__INTTAB_CPU1 + 0x14C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_166)); } - .inttab_tc1_0A7 (__INTTAB_CPU1 + 0x14E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_167)); } - .inttab_tc1_0A8 (__INTTAB_CPU1 + 0x1500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_168)); } - .inttab_tc1_0A9 (__INTTAB_CPU1 + 0x1520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_169)); } - .inttab_tc1_0AA (__INTTAB_CPU1 + 0x1540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_170)); } - .inttab_tc1_0AB (__INTTAB_CPU1 + 0x1560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_171)); } - .inttab_tc1_0AC (__INTTAB_CPU1 + 0x1580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_172)); } - .inttab_tc1_0AD (__INTTAB_CPU1 + 0x15A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_173)); } - .inttab_tc1_0AE (__INTTAB_CPU1 + 0x15C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_174)); } - .inttab_tc1_0AF (__INTTAB_CPU1 + 0x15E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_175)); } - .inttab_tc1_0B0 (__INTTAB_CPU1 + 0x1600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_176)); } - .inttab_tc1_0B1 (__INTTAB_CPU1 + 0x1620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_177)); } - .inttab_tc1_0B2 (__INTTAB_CPU1 + 0x1640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_178)); } - .inttab_tc1_0B3 (__INTTAB_CPU1 + 0x1660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_179)); } - .inttab_tc1_0B4 (__INTTAB_CPU1 + 0x1680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_180)); } - .inttab_tc1_0B5 (__INTTAB_CPU1 + 0x16A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_181)); } - .inttab_tc1_0B6 (__INTTAB_CPU1 + 0x16C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_182)); } - .inttab_tc1_0B7 (__INTTAB_CPU1 + 0x16E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_183)); } - .inttab_tc1_0B8 (__INTTAB_CPU1 + 0x1700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_184)); } - .inttab_tc1_0B9 (__INTTAB_CPU1 + 0x1720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_185)); } - .inttab_tc1_0BA (__INTTAB_CPU1 + 0x1740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_186)); } - .inttab_tc1_0BB (__INTTAB_CPU1 + 0x1760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_187)); } - .inttab_tc1_0BC (__INTTAB_CPU1 + 0x1780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_188)); } - .inttab_tc1_0BD (__INTTAB_CPU1 + 0x17A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_189)); } - .inttab_tc1_0BE (__INTTAB_CPU1 + 0x17C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_190)); } - .inttab_tc1_0BF (__INTTAB_CPU1 + 0x17E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_191)); } - .inttab_tc1_0C0 (__INTTAB_CPU1 + 0x1800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_192)); } - .inttab_tc1_0C1 (__INTTAB_CPU1 + 0x1820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_193)); } - .inttab_tc1_0C2 (__INTTAB_CPU1 + 0x1840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_194)); } - .inttab_tc1_0C3 (__INTTAB_CPU1 + 0x1860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_195)); } - .inttab_tc1_0C4 (__INTTAB_CPU1 + 0x1880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_196)); } - .inttab_tc1_0C5 (__INTTAB_CPU1 + 0x18A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_197)); } - .inttab_tc1_0C6 (__INTTAB_CPU1 + 0x18C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_198)); } - .inttab_tc1_0C7 (__INTTAB_CPU1 + 0x18E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_199)); } - .inttab_tc1_0C8 (__INTTAB_CPU1 + 0x1900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_200)); } - .inttab_tc1_0C9 (__INTTAB_CPU1 + 0x1920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_201)); } - .inttab_tc1_0CA (__INTTAB_CPU1 + 0x1940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_202)); } - .inttab_tc1_0CB (__INTTAB_CPU1 + 0x1960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_203)); } - .inttab_tc1_0CC (__INTTAB_CPU1 + 0x1980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_204)); } - .inttab_tc1_0CD (__INTTAB_CPU1 + 0x19A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_205)); } - .inttab_tc1_0CE (__INTTAB_CPU1 + 0x19C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_206)); } - .inttab_tc1_0CF (__INTTAB_CPU1 + 0x19E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_207)); } - .inttab_tc1_0D0 (__INTTAB_CPU1 + 0x1A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_208)); } - .inttab_tc1_0D1 (__INTTAB_CPU1 + 0x1A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_209)); } - .inttab_tc1_0D2 (__INTTAB_CPU1 + 0x1A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_210)); } - .inttab_tc1_0D3 (__INTTAB_CPU1 + 0x1A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_211)); } - .inttab_tc1_0D4 (__INTTAB_CPU1 + 0x1A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_212)); } - .inttab_tc1_0D5 (__INTTAB_CPU1 + 0x1AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_213)); } - .inttab_tc1_0D6 (__INTTAB_CPU1 + 0x1AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_214)); } - .inttab_tc1_0D7 (__INTTAB_CPU1 + 0x1AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_215)); } - .inttab_tc1_0D8 (__INTTAB_CPU1 + 0x1B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_216)); } - .inttab_tc1_0D9 (__INTTAB_CPU1 + 0x1B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_217)); } - .inttab_tc1_0DA (__INTTAB_CPU1 + 0x1B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_218)); } - .inttab_tc1_0DB (__INTTAB_CPU1 + 0x1B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_219)); } - .inttab_tc1_0DC (__INTTAB_CPU1 + 0x1B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_220)); } - .inttab_tc1_0DD (__INTTAB_CPU1 + 0x1BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_221)); } - .inttab_tc1_0DE (__INTTAB_CPU1 + 0x1BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_222)); } - .inttab_tc1_0DF (__INTTAB_CPU1 + 0x1BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_223)); } - .inttab_tc1_0E0 (__INTTAB_CPU1 + 0x1C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_224)); } - .inttab_tc1_0E1 (__INTTAB_CPU1 + 0x1C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_225)); } - .inttab_tc1_0E2 (__INTTAB_CPU1 + 0x1C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_226)); } - .inttab_tc1_0E3 (__INTTAB_CPU1 + 0x1C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_227)); } - .inttab_tc1_0E4 (__INTTAB_CPU1 + 0x1C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_228)); } - .inttab_tc1_0E5 (__INTTAB_CPU1 + 0x1CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_229)); } - .inttab_tc1_0E6 (__INTTAB_CPU1 + 0x1CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_230)); } - .inttab_tc1_0E7 (__INTTAB_CPU1 + 0x1CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_231)); } - .inttab_tc1_0E8 (__INTTAB_CPU1 + 0x1D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_232)); } - .inttab_tc1_0E9 (__INTTAB_CPU1 + 0x1D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_233)); } - .inttab_tc1_0EA (__INTTAB_CPU1 + 0x1D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_234)); } - .inttab_tc1_0EB (__INTTAB_CPU1 + 0x1D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_235)); } - .inttab_tc1_0EC (__INTTAB_CPU1 + 0x1D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_236)); } - .inttab_tc1_0ED (__INTTAB_CPU1 + 0x1DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_237)); } - .inttab_tc1_0EE (__INTTAB_CPU1 + 0x1DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_238)); } - .inttab_tc1_0EF (__INTTAB_CPU1 + 0x1DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_239)); } - .inttab_tc1_0F0 (__INTTAB_CPU1 + 0x1E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_240)); } - .inttab_tc1_0F1 (__INTTAB_CPU1 + 0x1E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_241)); } - .inttab_tc1_0F2 (__INTTAB_CPU1 + 0x1E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_242)); } - .inttab_tc1_0F3 (__INTTAB_CPU1 + 0x1E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_243)); } - .inttab_tc1_0F4 (__INTTAB_CPU1 + 0x1E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_244)); } - .inttab_tc1_0F5 (__INTTAB_CPU1 + 0x1EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_245)); } - .inttab_tc1_0F6 (__INTTAB_CPU1 + 0x1EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_246)); } - .inttab_tc1_0F7 (__INTTAB_CPU1 + 0x1EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_247)); } - .inttab_tc1_0F8 (__INTTAB_CPU1 + 0x1F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_248)); } - .inttab_tc1_0F9 (__INTTAB_CPU1 + 0x1F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_249)); } - .inttab_tc1_0FA (__INTTAB_CPU1 + 0x1F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_250)); } - .inttab_tc1_0FB (__INTTAB_CPU1 + 0x1F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_251)); } - .inttab_tc1_0FC (__INTTAB_CPU1 + 0x1F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_252)); } - .inttab_tc1_0FD (__INTTAB_CPU1 + 0x1FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_253)); } - .inttab_tc1_0FE (__INTTAB_CPU1 + 0x1FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_254)); } - .inttab_tc1_0FF (__INTTAB_CPU1 + 0x1FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc1_255)); } - } - SECTIONS - { - /*CPU2 Interrupt Vector Table*/ - .inttab_tc2_000 (__INTTAB_CPU2 + 0x0000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_0 )); } - .inttab_tc2_001 (__INTTAB_CPU2 + 0x0020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_1 )); } - .inttab_tc2_002 (__INTTAB_CPU2 + 0x0040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_2 )); } - .inttab_tc2_003 (__INTTAB_CPU2 + 0x0060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_3 )); } - .inttab_tc2_004 (__INTTAB_CPU2 + 0x0080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_4 )); } - .inttab_tc2_005 (__INTTAB_CPU2 + 0x00A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_5 )); } - .inttab_tc2_006 (__INTTAB_CPU2 + 0x00C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_6 )); } - .inttab_tc2_007 (__INTTAB_CPU2 + 0x00E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_7 )); } - .inttab_tc2_008 (__INTTAB_CPU2 + 0x0100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_8 )); } - .inttab_tc2_009 (__INTTAB_CPU2 + 0x0120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_9 )); } - .inttab_tc2_00A (__INTTAB_CPU2 + 0x0140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_10 )); } - .inttab_tc2_00B (__INTTAB_CPU2 + 0x0160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_11 )); } - .inttab_tc2_00C (__INTTAB_CPU2 + 0x0180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_12 )); } - .inttab_tc2_00D (__INTTAB_CPU2 + 0x01A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_13 )); } - .inttab_tc2_00E (__INTTAB_CPU2 + 0x01C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_14 )); } - .inttab_tc2_00F (__INTTAB_CPU2 + 0x01E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_15 )); } - .inttab_tc2_010 (__INTTAB_CPU2 + 0x0200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_16 )); } - .inttab_tc2_011 (__INTTAB_CPU2 + 0x0220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_17 )); } - .inttab_tc2_012 (__INTTAB_CPU2 + 0x0240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_18 )); } - .inttab_tc2_013 (__INTTAB_CPU2 + 0x0260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_19 )); } - .inttab_tc2_014 (__INTTAB_CPU2 + 0x0280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_20 )); } - .inttab_tc2_015 (__INTTAB_CPU2 + 0x02A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_21 )); } - .inttab_tc2_016 (__INTTAB_CPU2 + 0x02C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_22 )); } - .inttab_tc2_017 (__INTTAB_CPU2 + 0x02E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_23 )); } - .inttab_tc2_018 (__INTTAB_CPU2 + 0x0300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_24 )); } - .inttab_tc2_019 (__INTTAB_CPU2 + 0x0320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_25 )); } - .inttab_tc2_01A (__INTTAB_CPU2 + 0x0340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_26 )); } - .inttab_tc2_01B (__INTTAB_CPU2 + 0x0360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_27 )); } - .inttab_tc2_01C (__INTTAB_CPU2 + 0x0380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_28 )); } - .inttab_tc2_01D (__INTTAB_CPU2 + 0x03A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_29 )); } - .inttab_tc2_01E (__INTTAB_CPU2 + 0x03C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_30 )); } - .inttab_tc2_01F (__INTTAB_CPU2 + 0x03E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_31 )); } - .inttab_tc2_020 (__INTTAB_CPU2 + 0x0400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_32 )); } - .inttab_tc2_021 (__INTTAB_CPU2 + 0x0420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_33 )); } - .inttab_tc2_022 (__INTTAB_CPU2 + 0x0440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_34 )); } - .inttab_tc2_023 (__INTTAB_CPU2 + 0x0460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_35 )); } - .inttab_tc2_024 (__INTTAB_CPU2 + 0x0480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_36 )); } - .inttab_tc2_025 (__INTTAB_CPU2 + 0x04A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_37 )); } - .inttab_tc2_026 (__INTTAB_CPU2 + 0x04C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_38 )); } - .inttab_tc2_027 (__INTTAB_CPU2 + 0x04E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_39 )); } - .inttab_tc2_028 (__INTTAB_CPU2 + 0x0500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_40 )); } - .inttab_tc2_029 (__INTTAB_CPU2 + 0x0520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_41 )); } - .inttab_tc2_02A (__INTTAB_CPU2 + 0x0540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_42 )); } - .inttab_tc2_02B (__INTTAB_CPU2 + 0x0560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_43 )); } - .inttab_tc2_02C (__INTTAB_CPU2 + 0x0580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_44 )); } - .inttab_tc2_02D (__INTTAB_CPU2 + 0x05A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_45 )); } - .inttab_tc2_02E (__INTTAB_CPU2 + 0x05C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_46 )); } - .inttab_tc2_02F (__INTTAB_CPU2 + 0x05E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_47 )); } - .inttab_tc2_030 (__INTTAB_CPU2 + 0x0600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_48 )); } - .inttab_tc2_031 (__INTTAB_CPU2 + 0x0620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_49 )); } - .inttab_tc2_032 (__INTTAB_CPU2 + 0x0640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_50 )); } - .inttab_tc2_033 (__INTTAB_CPU2 + 0x0660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_51 )); } - .inttab_tc2_034 (__INTTAB_CPU2 + 0x0680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_52 )); } - .inttab_tc2_035 (__INTTAB_CPU2 + 0x06A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_53 )); } - .inttab_tc2_036 (__INTTAB_CPU2 + 0x06C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_54 )); } - .inttab_tc2_037 (__INTTAB_CPU2 + 0x06E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_55 )); } - .inttab_tc2_038 (__INTTAB_CPU2 + 0x0700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_56 )); } - .inttab_tc2_039 (__INTTAB_CPU2 + 0x0720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_57 )); } - .inttab_tc2_03A (__INTTAB_CPU2 + 0x0740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_58 )); } - .inttab_tc2_03B (__INTTAB_CPU2 + 0x0760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_59 )); } - .inttab_tc2_03C (__INTTAB_CPU2 + 0x0780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_60 )); } - .inttab_tc2_03D (__INTTAB_CPU2 + 0x07A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_61 )); } - .inttab_tc2_03E (__INTTAB_CPU2 + 0x07C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_62 )); } - .inttab_tc2_03F (__INTTAB_CPU2 + 0x07E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_63 )); } - .inttab_tc2_040 (__INTTAB_CPU2 + 0x0800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_64 )); } - .inttab_tc2_041 (__INTTAB_CPU2 + 0x0820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_65 )); } - .inttab_tc2_042 (__INTTAB_CPU2 + 0x0840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_66 )); } - .inttab_tc2_043 (__INTTAB_CPU2 + 0x0860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_67 )); } - .inttab_tc2_044 (__INTTAB_CPU2 + 0x0880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_68 )); } - .inttab_tc2_045 (__INTTAB_CPU2 + 0x08A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_69 )); } - .inttab_tc2_046 (__INTTAB_CPU2 + 0x08C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_70 )); } - .inttab_tc2_047 (__INTTAB_CPU2 + 0x08E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_71 )); } - .inttab_tc2_048 (__INTTAB_CPU2 + 0x0900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_72 )); } - .inttab_tc2_049 (__INTTAB_CPU2 + 0x0920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_73 )); } - .inttab_tc2_04A (__INTTAB_CPU2 + 0x0940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_74 )); } - .inttab_tc2_04B (__INTTAB_CPU2 + 0x0960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_75 )); } - .inttab_tc2_04C (__INTTAB_CPU2 + 0x0980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_76 )); } - .inttab_tc2_04D (__INTTAB_CPU2 + 0x09A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_77 )); } - .inttab_tc2_04E (__INTTAB_CPU2 + 0x09C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_78 )); } - .inttab_tc2_04F (__INTTAB_CPU2 + 0x09E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_79 )); } - .inttab_tc2_050 (__INTTAB_CPU2 + 0x0A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_80 )); } - .inttab_tc2_051 (__INTTAB_CPU2 + 0x0A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_81 )); } - .inttab_tc2_052 (__INTTAB_CPU2 + 0x0A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_82 )); } - .inttab_tc2_053 (__INTTAB_CPU2 + 0x0A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_83 )); } - .inttab_tc2_054 (__INTTAB_CPU2 + 0x0A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_84 )); } - .inttab_tc2_055 (__INTTAB_CPU2 + 0x0AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_85 )); } - .inttab_tc2_056 (__INTTAB_CPU2 + 0x0AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_86 )); } - .inttab_tc2_057 (__INTTAB_CPU2 + 0x0AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_87 )); } - .inttab_tc2_058 (__INTTAB_CPU2 + 0x0B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_88 )); } - .inttab_tc2_059 (__INTTAB_CPU2 + 0x0B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_89 )); } - .inttab_tc2_05A (__INTTAB_CPU2 + 0x0B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_90 )); } - .inttab_tc2_05B (__INTTAB_CPU2 + 0x0B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_91 )); } - .inttab_tc2_05C (__INTTAB_CPU2 + 0x0B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_92 )); } - .inttab_tc2_05D (__INTTAB_CPU2 + 0x0BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_93 )); } - .inttab_tc2_05E (__INTTAB_CPU2 + 0x0BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_94 )); } - .inttab_tc2_05F (__INTTAB_CPU2 + 0x0BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_95 )); } - .inttab_tc2_060 (__INTTAB_CPU2 + 0x0C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_96 )); } - .inttab_tc2_061 (__INTTAB_CPU2 + 0x0C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_97 )); } - .inttab_tc2_062 (__INTTAB_CPU2 + 0x0C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_98 )); } - .inttab_tc2_063 (__INTTAB_CPU2 + 0x0C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_99 )); } - .inttab_tc2_064 (__INTTAB_CPU2 + 0x0C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_100)); } - .inttab_tc2_065 (__INTTAB_CPU2 + 0x0CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_101)); } - .inttab_tc2_066 (__INTTAB_CPU2 + 0x0CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_102)); } - .inttab_tc2_067 (__INTTAB_CPU2 + 0x0CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_103)); } - .inttab_tc2_068 (__INTTAB_CPU2 + 0x0D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_104)); } - .inttab_tc2_069 (__INTTAB_CPU2 + 0x0D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_105)); } - .inttab_tc2_06A (__INTTAB_CPU2 + 0x0D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_106)); } - .inttab_tc2_06B (__INTTAB_CPU2 + 0x0D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_107)); } - .inttab_tc2_06C (__INTTAB_CPU2 + 0x0D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_108)); } - .inttab_tc2_06D (__INTTAB_CPU2 + 0x0DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_109)); } - .inttab_tc2_06E (__INTTAB_CPU2 + 0x0DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_110)); } - .inttab_tc2_06F (__INTTAB_CPU2 + 0x0DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_111)); } - .inttab_tc2_070 (__INTTAB_CPU2 + 0x0E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_112)); } - .inttab_tc2_071 (__INTTAB_CPU2 + 0x0E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_113)); } - .inttab_tc2_072 (__INTTAB_CPU2 + 0x0E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_114)); } - .inttab_tc2_073 (__INTTAB_CPU2 + 0x0E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_115)); } - .inttab_tc2_074 (__INTTAB_CPU2 + 0x0E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_116)); } - .inttab_tc2_075 (__INTTAB_CPU2 + 0x0EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_117)); } - .inttab_tc2_076 (__INTTAB_CPU2 + 0x0EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_118)); } - .inttab_tc2_077 (__INTTAB_CPU2 + 0x0EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_119)); } - .inttab_tc2_078 (__INTTAB_CPU2 + 0x0F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_120)); } - .inttab_tc2_079 (__INTTAB_CPU2 + 0x0F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_121)); } - .inttab_tc2_07A (__INTTAB_CPU2 + 0x0F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_122)); } - .inttab_tc2_07B (__INTTAB_CPU2 + 0x0F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_123)); } - .inttab_tc2_07C (__INTTAB_CPU2 + 0x0F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_124)); } - .inttab_tc2_07D (__INTTAB_CPU2 + 0x0FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_125)); } - .inttab_tc2_07E (__INTTAB_CPU2 + 0x0FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_126)); } - .inttab_tc2_07F (__INTTAB_CPU2 + 0x0FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_127)); } - .inttab_tc2_080 (__INTTAB_CPU2 + 0x1000) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_128)); } - .inttab_tc2_081 (__INTTAB_CPU2 + 0x1020) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_129)); } - .inttab_tc2_082 (__INTTAB_CPU2 + 0x1040) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_130)); } - .inttab_tc2_083 (__INTTAB_CPU2 + 0x1060) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_131)); } - .inttab_tc2_084 (__INTTAB_CPU2 + 0x1080) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_132)); } - .inttab_tc2_085 (__INTTAB_CPU2 + 0x10A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_133)); } - .inttab_tc2_086 (__INTTAB_CPU2 + 0x10C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_134)); } - .inttab_tc2_087 (__INTTAB_CPU2 + 0x10E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_135)); } - .inttab_tc2_088 (__INTTAB_CPU2 + 0x1100) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_136)); } - .inttab_tc2_089 (__INTTAB_CPU2 + 0x1120) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_137)); } - .inttab_tc2_08A (__INTTAB_CPU2 + 0x1140) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_138)); } - .inttab_tc2_08B (__INTTAB_CPU2 + 0x1160) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_139)); } - .inttab_tc2_08C (__INTTAB_CPU2 + 0x1180) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_140)); } - .inttab_tc2_08D (__INTTAB_CPU2 + 0x11A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_141)); } - .inttab_tc2_08E (__INTTAB_CPU2 + 0x11C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_142)); } - .inttab_tc2_08F (__INTTAB_CPU2 + 0x11E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_143)); } - .inttab_tc2_090 (__INTTAB_CPU2 + 0x1200) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_144)); } - .inttab_tc2_091 (__INTTAB_CPU2 + 0x1220) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_145)); } - .inttab_tc2_092 (__INTTAB_CPU2 + 0x1240) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_146)); } - .inttab_tc2_093 (__INTTAB_CPU2 + 0x1260) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_147)); } - .inttab_tc2_094 (__INTTAB_CPU2 + 0x1280) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_148)); } - .inttab_tc2_095 (__INTTAB_CPU2 + 0x12A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_149)); } - .inttab_tc2_096 (__INTTAB_CPU2 + 0x12C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_150)); } - .inttab_tc2_097 (__INTTAB_CPU2 + 0x12E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_151)); } - .inttab_tc2_098 (__INTTAB_CPU2 + 0x1300) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_152)); } - .inttab_tc2_099 (__INTTAB_CPU2 + 0x1320) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_153)); } - .inttab_tc2_09A (__INTTAB_CPU2 + 0x1340) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_154)); } - .inttab_tc2_09B (__INTTAB_CPU2 + 0x1360) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_155)); } - .inttab_tc2_09C (__INTTAB_CPU2 + 0x1380) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_156)); } - .inttab_tc2_09D (__INTTAB_CPU2 + 0x13A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_157)); } - .inttab_tc2_09E (__INTTAB_CPU2 + 0x13C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_158)); } - .inttab_tc2_09F (__INTTAB_CPU2 + 0x13E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_159)); } - .inttab_tc2_0A0 (__INTTAB_CPU2 + 0x1400) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_160)); } - .inttab_tc2_0A1 (__INTTAB_CPU2 + 0x1420) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_161)); } - .inttab_tc2_0A2 (__INTTAB_CPU2 + 0x1440) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_162)); } - .inttab_tc2_0A3 (__INTTAB_CPU2 + 0x1460) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_163)); } - .inttab_tc2_0A4 (__INTTAB_CPU2 + 0x1480) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_164)); } - .inttab_tc2_0A5 (__INTTAB_CPU2 + 0x14A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_165)); } - .inttab_tc2_0A6 (__INTTAB_CPU2 + 0x14C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_166)); } - .inttab_tc2_0A7 (__INTTAB_CPU2 + 0x14E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_167)); } - .inttab_tc2_0A8 (__INTTAB_CPU2 + 0x1500) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_168)); } - .inttab_tc2_0A9 (__INTTAB_CPU2 + 0x1520) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_169)); } - .inttab_tc2_0AA (__INTTAB_CPU2 + 0x1540) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_170)); } - .inttab_tc2_0AB (__INTTAB_CPU2 + 0x1560) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_171)); } - .inttab_tc2_0AC (__INTTAB_CPU2 + 0x1580) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_172)); } - .inttab_tc2_0AD (__INTTAB_CPU2 + 0x15A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_173)); } - .inttab_tc2_0AE (__INTTAB_CPU2 + 0x15C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_174)); } - .inttab_tc2_0AF (__INTTAB_CPU2 + 0x15E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_175)); } - .inttab_tc2_0B0 (__INTTAB_CPU2 + 0x1600) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_176)); } - .inttab_tc2_0B1 (__INTTAB_CPU2 + 0x1620) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_177)); } - .inttab_tc2_0B2 (__INTTAB_CPU2 + 0x1640) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_178)); } - .inttab_tc2_0B3 (__INTTAB_CPU2 + 0x1660) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_179)); } - .inttab_tc2_0B4 (__INTTAB_CPU2 + 0x1680) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_180)); } - .inttab_tc2_0B5 (__INTTAB_CPU2 + 0x16A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_181)); } - .inttab_tc2_0B6 (__INTTAB_CPU2 + 0x16C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_182)); } - .inttab_tc2_0B7 (__INTTAB_CPU2 + 0x16E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_183)); } - .inttab_tc2_0B8 (__INTTAB_CPU2 + 0x1700) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_184)); } - .inttab_tc2_0B9 (__INTTAB_CPU2 + 0x1720) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_185)); } - .inttab_tc2_0BA (__INTTAB_CPU2 + 0x1740) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_186)); } - .inttab_tc2_0BB (__INTTAB_CPU2 + 0x1760) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_187)); } - .inttab_tc2_0BC (__INTTAB_CPU2 + 0x1780) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_188)); } - .inttab_tc2_0BD (__INTTAB_CPU2 + 0x17A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_189)); } - .inttab_tc2_0BE (__INTTAB_CPU2 + 0x17C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_190)); } - .inttab_tc2_0BF (__INTTAB_CPU2 + 0x17E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_191)); } - .inttab_tc2_0C0 (__INTTAB_CPU2 + 0x1800) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_192)); } - .inttab_tc2_0C1 (__INTTAB_CPU2 + 0x1820) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_193)); } - .inttab_tc2_0C2 (__INTTAB_CPU2 + 0x1840) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_194)); } - .inttab_tc2_0C3 (__INTTAB_CPU2 + 0x1860) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_195)); } - .inttab_tc2_0C4 (__INTTAB_CPU2 + 0x1880) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_196)); } - .inttab_tc2_0C5 (__INTTAB_CPU2 + 0x18A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_197)); } - .inttab_tc2_0C6 (__INTTAB_CPU2 + 0x18C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_198)); } - .inttab_tc2_0C7 (__INTTAB_CPU2 + 0x18E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_199)); } - .inttab_tc2_0C8 (__INTTAB_CPU2 + 0x1900) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_200)); } - .inttab_tc2_0C9 (__INTTAB_CPU2 + 0x1920) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_201)); } - .inttab_tc2_0CA (__INTTAB_CPU2 + 0x1940) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_202)); } - .inttab_tc2_0CB (__INTTAB_CPU2 + 0x1960) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_203)); } - .inttab_tc2_0CC (__INTTAB_CPU2 + 0x1980) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_204)); } - .inttab_tc2_0CD (__INTTAB_CPU2 + 0x19A0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_205)); } - .inttab_tc2_0CE (__INTTAB_CPU2 + 0x19C0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_206)); } - .inttab_tc2_0CF (__INTTAB_CPU2 + 0x19E0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_207)); } - .inttab_tc2_0D0 (__INTTAB_CPU2 + 0x1A00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_208)); } - .inttab_tc2_0D1 (__INTTAB_CPU2 + 0x1A20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_209)); } - .inttab_tc2_0D2 (__INTTAB_CPU2 + 0x1A40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_210)); } - .inttab_tc2_0D3 (__INTTAB_CPU2 + 0x1A60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_211)); } - .inttab_tc2_0D4 (__INTTAB_CPU2 + 0x1A80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_212)); } - .inttab_tc2_0D5 (__INTTAB_CPU2 + 0x1AA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_213)); } - .inttab_tc2_0D6 (__INTTAB_CPU2 + 0x1AC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_214)); } - .inttab_tc2_0D7 (__INTTAB_CPU2 + 0x1AE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_215)); } - .inttab_tc2_0D8 (__INTTAB_CPU2 + 0x1B00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_216)); } - .inttab_tc2_0D9 (__INTTAB_CPU2 + 0x1B20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_217)); } - .inttab_tc2_0DA (__INTTAB_CPU2 + 0x1B40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_218)); } - .inttab_tc2_0DB (__INTTAB_CPU2 + 0x1B60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_219)); } - .inttab_tc2_0DC (__INTTAB_CPU2 + 0x1B80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_220)); } - .inttab_tc2_0DD (__INTTAB_CPU2 + 0x1BA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_221)); } - .inttab_tc2_0DE (__INTTAB_CPU2 + 0x1BC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_222)); } - .inttab_tc2_0DF (__INTTAB_CPU2 + 0x1BE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_223)); } - .inttab_tc2_0E0 (__INTTAB_CPU2 + 0x1C00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_224)); } - .inttab_tc2_0E1 (__INTTAB_CPU2 + 0x1C20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_225)); } - .inttab_tc2_0E2 (__INTTAB_CPU2 + 0x1C40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_226)); } - .inttab_tc2_0E3 (__INTTAB_CPU2 + 0x1C60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_227)); } - .inttab_tc2_0E4 (__INTTAB_CPU2 + 0x1C80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_228)); } - .inttab_tc2_0E5 (__INTTAB_CPU2 + 0x1CA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_229)); } - .inttab_tc2_0E6 (__INTTAB_CPU2 + 0x1CC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_230)); } - .inttab_tc2_0E7 (__INTTAB_CPU2 + 0x1CE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_231)); } - .inttab_tc2_0E8 (__INTTAB_CPU2 + 0x1D00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_232)); } - .inttab_tc2_0E9 (__INTTAB_CPU2 + 0x1D20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_233)); } - .inttab_tc2_0EA (__INTTAB_CPU2 + 0x1D40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_234)); } - .inttab_tc2_0EB (__INTTAB_CPU2 + 0x1D60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_235)); } - .inttab_tc2_0EC (__INTTAB_CPU2 + 0x1D80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_236)); } - .inttab_tc2_0ED (__INTTAB_CPU2 + 0x1DA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_237)); } - .inttab_tc2_0EE (__INTTAB_CPU2 + 0x1DC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_238)); } - .inttab_tc2_0EF (__INTTAB_CPU2 + 0x1DE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_239)); } - .inttab_tc2_0F0 (__INTTAB_CPU2 + 0x1E00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_240)); } - .inttab_tc2_0F1 (__INTTAB_CPU2 + 0x1E20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_241)); } - .inttab_tc2_0F2 (__INTTAB_CPU2 + 0x1E40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_242)); } - .inttab_tc2_0F3 (__INTTAB_CPU2 + 0x1E60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_243)); } - .inttab_tc2_0F4 (__INTTAB_CPU2 + 0x1E80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_244)); } - .inttab_tc2_0F5 (__INTTAB_CPU2 + 0x1EA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_245)); } - .inttab_tc2_0F6 (__INTTAB_CPU2 + 0x1EC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_246)); } - .inttab_tc2_0F7 (__INTTAB_CPU2 + 0x1EE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_247)); } - .inttab_tc2_0F8 (__INTTAB_CPU2 + 0x1F00) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_248)); } - .inttab_tc2_0F9 (__INTTAB_CPU2 + 0x1F20) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_249)); } - .inttab_tc2_0FA (__INTTAB_CPU2 + 0x1F40) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_250)); } - .inttab_tc2_0FB (__INTTAB_CPU2 + 0x1F60) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_251)); } - .inttab_tc2_0FC (__INTTAB_CPU2 + 0x1F80) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_252)); } - .inttab_tc2_0FD (__INTTAB_CPU2 + 0x1FA0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_253)); } - .inttab_tc2_0FE (__INTTAB_CPU2 + 0x1FC0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_254)); } - .inttab_tc2_0FF (__INTTAB_CPU2 + 0x1FE0) : { . = ALIGN(8) ; KEEP (*(.intvec_tc2_255)); } - } - - /*Fixed memory Allocations for BMHD*/ - CORE_ID = GLOBAL; - SECTIONS - { - .bmhd_0_org (0xaf400000) : FLAGS(arl) { KEEP (*(.bmhd_0_orig)); } > ucb - .bmhd_1_org (0xaf400200) : FLAGS(arl) { KEEP (*(.bmhd_1_orig)); } > ucb - .bmhd_2_org (0xaf400400) : FLAGS(arl) { KEEP (*(.bmhd_2_orig)); } > ucb - .bmhd_3_org (0xaf400600) : FLAGS(arl) { KEEP (*(.bmhd_3_orig)); } > ucb - .ucb_reserved (0xaf400800) : FLAGS(arl) { } > ucb - .bmhd_0_copy (0xaf401000) : FLAGS(arl) { KEEP (*(.bmhd_0_copy)); } > ucb - .bmhd_1_copy (0xaf401200) : FLAGS(arl) { KEEP (*(.bmhd_1_copy)); } > ucb - .bmhd_2_copy (0xaf401400) : FLAGS(arl) { KEEP (*(.bmhd_2_copy)); } > ucb - .bmhd_3_copy (0xaf401600) : FLAGS(arl) { KEEP (*(.bmhd_3_copy)); } > ucb - } - - /*Near Abbsolute Addressable Data Sections*/ - /*Near Absolute Data, selectable with patterns and user defined sections*/ - CORE_ID = CPU2; - SECTIONS - { - CORE_SEC(.zdata) (LCF_DSPR2_START): FLAGS(awzl) - { - *Ifx_Ssw_Tc2.* (.zdata) - *Cpu2_Main.* (.zdata) - *(.zdata_cpu2) - *(.zdata_cpu2.*) - . = ALIGN(2); - } > dsram2 AT> pfls0 - - CORE_SEC(.zbss) (NOLOAD): FLAGS(awz) - { - *Ifx_Ssw_Tc2.* (.zbss) - *Cpu2_Main.* (.zbss) - *(.zbss_cpu2) - *(.zbss_cpu2.*) - } > dsram2 - } - CORE_ID = CPU1; - SECTIONS - { - CORE_SEC(.zdata) (LCF_DSPR1_START): FLAGS(awzl) - { - *Ifx_Ssw_Tc1.* (.zdata) - *Cpu1_Main.* (.zdata) - *(.zdata_cpu1) - *(.zdata_cpu1.*) - . = ALIGN(2); - } > dsram1 AT> pfls0 - - CORE_SEC(.zbss) (NOLOAD): FLAGS(awz) - { - *Ifx_Ssw_Tc1.* (.zbss) - *Cpu1_Main.* (.zbss) - *(.zbss_cpu1) - *(.zbss_cpu1.*) - } > dsram1 - } - CORE_ID = CPU0; - SECTIONS - { - CORE_SEC(.zdata) (LCF_DSPR0_START): FLAGS(awzl) - { - *Ifx_Ssw_Tc0.* (.zdata) - *Cpu0_Main.* (.zdata) - *(.zdata_cpu0) - *(.zdata_cpu0.*) - . = ALIGN(2); - } > dsram0 AT> pfls0 - - CORE_SEC(.zbss) (NOLOAD): FLAGS(awz) - { - *Ifx_Ssw_Tc0.* (.zbss) - *Cpu0_Main.* (.zbss) - *(.zbss_cpu0) - *(.zbss_cpu0.*) - } > dsram0 - } - - /*Near Absolute Data, selectable by toolchain*/ - CORE_ID = GLOBAL; - SECTIONS - { - CORE_SEC(.zdata_powerOn) : FLAGS(awzl) - { - *(.zdata.dsprPowerOnInit.cpu0.32bit) - *(.zdata.dsprPowerOnInit.cpu0.16bit) - *(.zdata.dsprPowerOnInit.cpu0.8bit) - . = ALIGN(2); - } > default_ram AT> pfls0 - - CORE_SEC(.zdata) : FLAGS(awzl) - { - *(.zdata.dsprInit.cpu0.32bit) - *(.zdata.dsprInit.cpu0.16bit) - *(.zdata.dsprInit.cpu0.8bit) - *(.zdata) - *(.zdata.*) - *(.gnu.linkonce.z.*) - . = ALIGN(2); - } > default_ram AT> pfls0 - - CORE_SEC(.zbss_powerOn) (NOLOAD) : FLAGS(awz) - { - *(.zbss.dsprPowerOnClear.cpu0.32bit) - *(.zbss.dsprPowerOnClear.cpu0.16bit) - *(.zbss.dsprPowerOnClear.cpu0.8bit) - } > default_ram - - CORE_SEC(.zbss_noClear) (NOLOAD) : FLAGS(awz) - { - *(.zbss.dsprNoInit.cpu0.32bit) - *(.zbss.dsprNoInit.cpu0.16bit) - *(.zbss.dsprNoInit.cpu0.8bit) - } > default_ram - - CORE_SEC(.zbss) (NOLOAD) : FLAGS(awz) - { - *(.zbss.dsprClearOnInit.cpu0.32bit) - *(.zbss.dsprClearOnInit.cpu0.16bit) - *(.zbss.dsprClearOnInit.cpu0.8bit) - *(.zbss) - *(.zbss.*) - *(.bbss) - *(.bbss.*) - *(.gnu.linkonce.zb.*) - } > default_ram - } - - CORE_ID = GLOBAL; - SECTIONS - { - /*Cpu0_dlmu also is the segment start, all the near lmu data shll be located here*/ - CORE_SEC(.lmuzdata) : FLAGS(awzl) - { - *(.zlmudata) - *(.zlmudata.*) - . = ALIGN(2); - } > cpu0_dlmu AT> pfls0 - - CORE_SEC(.zbss) (NOLOAD) : FLAGS(awz) - { - *(.zlmubss) - *(.zlmubss.*) - } > cpu0_dlmu - } - - /*Near Absolute Const, selectable with patterns and user defined sections*/ - CORE_ID = GLOBAL; - SECTIONS - { - CORE_SEC(.zrodata) : FLAGS(arzl) - { - *Ifx_Ssw_Tc?.* (.zrodata) - *Cpu?_Main.* (.zrodata) - *(.zrodata_cpu?) - } > pfls0 - } - - /*Near Absolute Const, selectable by toolchain*/ - CORE_ID = GLOBAL; - SECTIONS - { - CORE_SEC(.zrodata) : FLAGS(arzl) - { - *(.zrodata.const.cpu0.32bit) - *(.zrodata.const.cpu0.16bit) - *(.zrodata.const.cpu0.8bit) - *(.zrodata.config.cpu0.32bit) - *(.zrodata.config.cpu0.16bit) - *(.zrodata.config.cpu0.8bit) - *(.zrodata) - *(.zrodata.*) - } > pfls0 - } - -/*Relative A0/A1/A8/A9 Addressable Sections*/ -CORE_ID = GLOBAL; -SECTIONS -{ - /*Relative A0 Addressable Data, selectable with patterns and user defined sections*/ - /*Note: A0 addressable area is common, to make the functions callable in any CPU*/ - /*Relative A0 Addressable Data, selectable by toolchain*/ - CORE_SEC(.sdata) : FLAGS(awsl) - { - *(.sdata) - *(.sdata.*) - . = ALIGN(2); - } > default_ram AT> pfls0 - CORE_SEC(.sbss) (NOLOAD): FLAGS(aws) - { - *(.sbss) - *(.sbss.*) - } > default_ram - _SMALL_DATA_ = SIZEOF(CORE_SEC(.sdata)) ? ADDR(CORE_SEC(.sdata)) : (ADDR(CORE_SEC(.sdata)) & 0xF0000000) + 32k ; - __A0_MEM = _SMALL_DATA_; -} - -CORE_ID = GLOBAL; -SECTIONS -{ - /*Relative A1 Addressable Const, selectable with patterns and user defined sections*/ - /*Note: A1 addressable area is common, to make the functions callable in any CPU*/ - /*Relative A1 Addressable Const, selectable by toolchain*/ - CORE_SEC(.sdata2) : FLAGS(arsl) - { - *(.srodata) - *(.srodata.*) - } > default_rom - _SMALL_DATA2_ = SIZEOF(CORE_SEC(.sdata2)) ? ADDR(CORE_SEC(.sdata2)) : (ADDR(CORE_SEC(.sdata2)) & 0xF0000000) + 32k ; - __A1_MEM = _SMALL_DATA2_; -} - -CORE_ID = GLOBAL; -SECTIONS -{ - /*Relative A8 Addressable Const, selectable with patterns and user defined sections*/ - CORE_SEC(.sdata3) : FLAGS(arsl) - { - *(.rodata_a8) - *(.rodata_a8.*) - } > default_rom - - _SMALL_DATA3_ = SIZEOF(CORE_SEC(.sdata3)) ? ADDR(CORE_SEC(.sdata3)) : (ADDR(CORE_SEC(.sdata3)) & 0xF0000000) + 32k ; - __A8_MEM = _SMALL_DATA3_; -} - -/*Far Data / Far Const Sections, selectable with patterns and user defined sections*/ -/*Far Data Sections, selectable with patterns and user defined sections*/ -CORE_ID = CPU2 ; -SECTIONS -{ - /*DSRAM2 Sections*/ - CORE_SEC(.data) : FLAGS(awl) - { - *Ifx_Ssw_Tc2.* (.data) - *Cpu2_Main.* (.data) - *(.data_cpu2) - *(.data_cpu2.*) - . = ALIGN(2); - } > dsram2 AT> pfls0 - - CORE_SEC(.bss) (NOLOAD): FLAGS(aw) - { - *Ifx_Ssw_Tc2.* (.bss) - *Cpu2_Main.* (.bss) - *(.bss_cpu2) - *(.bss_cpu2.*) - } > dsram2 - - /*DLMU2 Sections*/ - CORE_SEC(.lmudata) : FLAGS(awl) - { - *(.lmudata_cpu2) - *(.lmudata_cpu2.*) - . = ALIGN(2); - } > cpu2_dlmu AT> pfls0 - - CORE_SEC(.lmubss) : FLAGS(aw) - { - *(.lmubss_cpu2) - *(.lmubss_cpu2.*) - } > cpu2_dlmu -} -CORE_ID = CPU1 ; -SECTIONS -{ - /*DSRAM1 Sections*/ - CORE_SEC(.data) : FLAGS(awl) - { - *Ifx_Ssw_Tc1.* (.data) - *Cpu1_Main.* (.data) - *(.data_cpu1) - *(.data_cpu1.*) - . = ALIGN(2); - } > dsram1 AT> pfls0 - - CORE_SEC(.bss) (NOLOAD): FLAGS(aw) - { - *Ifx_Ssw_Tc1.* (.bss) - *Cpu1_Main.* (.bss) - *(.bss_cpu1) - *(.bss_cpu1.*) - } > dsram1 - - /*DLMU1 Sections*/ - CORE_SEC(.lmudata) : FLAGS(awl) - { - *(.lmudata_cpu1) - *(.lmudata_cpu1.*) - . = ALIGN(2); - } > cpu1_dlmu AT> pfls0 - - CORE_SEC(.lmubss) : FLAGS(aw) - { - *(.lmubss_cpu1) - *(.lmubss_cpu1.*) - } > cpu1_dlmu -} -CORE_ID = CPU0 ; -SECTIONS -{ - /*DSRAM0 Sections*/ - CORE_SEC(.data) : FLAGS(awl) - { - *Ifx_Ssw_Tc0.* (.data) - *Cpu0_Main.* (.data) - *(.data_cpu0) - *(.data_cpu0.*) - . = ALIGN(2); - } > dsram0 AT> pfls0 - - CORE_SEC(.bss) (NOLOAD): FLAGS(aw) - { - *Ifx_Ssw_Tc0.* (.bss) - *Cpu0_Main.* (.bss) - *(.bss_cpu0) - *(.bss_cpu0.*) - } > dsram0 - - /*DLMU0 Sections*/ - CORE_SEC(.lmudata) : FLAGS(awl) - { - *(.lmudata_cpu0) - *(.lmudata_cpu0.*) - . = ALIGN(2); - } > cpu0_dlmu AT> pfls0 - - CORE_SEC(.lmubss) : FLAGS(aw) - { - *(.lmubss_cpu0) - *(.lmubss_cpu0.*) - } > cpu0_dlmu -} - -CORE_ID = GLOBAL; -SECTIONS -{ - /*Relative A9 Addressable Data, selectable with patterns and user defined sections*/ - CORE_SEC(.sdata4) : - { - *(.a9sdata) - *(.a9sdata.*) - . = ALIGN(2); - } > cpu0_dlmu AT> pfls0 - - CORE_SEC(.sbss4) : - { - *(.a9sbss) - *(.a9sbss.*) - } > cpu0_dlmu - - _SMALL_DATA4_ = SIZEOF(CORE_SEC(.sdata4)) ? ADDR(CORE_SEC(.sdata4)) : (ADDR(CORE_SEC(.sdata4)) & 0xF0000000) + 32k ; - __A9_MEM = _SMALL_DATA4_; -} - -/*Far Data Sections, selectable by toolchain*/ -CORE_ID = GLOBAL; -SECTIONS -{ - CORE_SEC(.bss_noClear) (NOLOAD) : FLAGS(aw) - { - *(.bss.farDsprNoInit.cpu0.32bit) - *(.bss.farDsprNoInit.cpu0.16bit) - *(.bss.farDsprNoInit.cpu0.8bit) - } > default_ram - - CORE_SEC(.data) : FLAGS(awl) - { - *(.data.farDsprInit.cpu0.32bit) - *(.data.farDsprInit.cpu0.16bit) - *(.data.farDsprInit.cpu0.8bit) - *(.data) - *(.data.*) - *(.gnu.linkonce.d.*) - . = ALIGN(2); - } > default_ram AT> pfls0 - - CORE_SEC(.bss) (NOLOAD) : FLAGS(aw) - { - *(.bss.farDsprClearOnInit.cpu0.32bit) - *(.bss.farDsprClearOnInit.cpu0.16bit) - *(.bss.farDsprClearOnInit.cpu0.8bit) - *(.bss) - *(.bss.*) - *(.gnu.linkonce.b.*) - } > default_ram - - .heap : FLAGS(aw) - { - . = ALIGN(4); - __HEAP = .; - . += LCF_HEAP_SIZE; - __HEAP_END = .; - /* First unused address of default_ram */ - . = ALIGN(8); - __TX_FREE_MEM = .; - } > default_ram - - CORE_SEC(.lmudata) : FLAGS(awl) - { - *(.lmudata) - *(.lmudata.*) - . = ALIGN(2); - } > cpu0_dlmu AT> pfls0 - - CORE_SEC(.lmubss) : FLAGS(aw) - { - *(.lmubss) - *(.lmubss.*) - } > cpu0_dlmu -} -/*Far Const Sections, selectable with patterns and user defined sections*/ -CORE_ID = CPU0; -SECTIONS -{ - CORE_SEC(.rodata) : FLAGS(arl) - { - *Ifx_Ssw_Tc0.* (.rodata) - *Cpu0_Main.* (.rodata) - *(.rodata_cpu0) - *(.rodata_cpu0.*) - } > pfls0 -} - -CORE_ID = CPU1; -SECTIONS -{ - CORE_SEC(.rodata) : FLAGS(arl) - { - *Ifx_Ssw_Tc1.* (.rodata) - *Cpu1_Main.* (.rodata) - *(.rodata_cpu1) - *(.rodata_cpu1.*) - } > pfls1 -} - -CORE_ID = CPU2; -SECTIONS -{ - CORE_SEC(.rodata) : FLAGS(arl) - { - *Ifx_Ssw_Tc2.* (.rodata) - *Cpu2_Main.* (.rodata) - *(.rodata_cpu2) - *(.rodata_cpu2.*) - } > pfls1 -} - -/*Far Const Sections, selectable by toolchain*/ -CORE_ID = GLOBAL; -SECTIONS -{ - CORE_SEC(.rodata) : FLAGS(arl) - { - *(.rodata.farConst.cpu0.32bit) - *(.rodata.farConst.cpu0.16bit) - *(.rodata.farConst.cpu0.8bit) - *(.rodata) - *(.rodata.*) - *(.gnu.linkonce.r.*) - /* - * Create the clear and copy tables that tell the startup code - * which memory areas to clear and to copy, respectively. - */ - . = ALIGN(4) ; - PROVIDE(__clear_table = .); - LONG(0 + ADDR(.CPU2.zbss)); LONG(SIZEOF(.CPU2.zbss)); - LONG(0 + ADDR(.CPU2.bss)); LONG(SIZEOF(.CPU2.bss)); - LONG(0 + ADDR(.CPU2.lmubss)); LONG(SIZEOF(.CPU2.lmubss)); - LONG(0 + ADDR(.CPU1.zbss)); LONG(SIZEOF(.CPU1.zbss)); - LONG(0 + ADDR(.CPU1.bss)); LONG(SIZEOF(.CPU1.bss)); - LONG(0 + ADDR(.CPU1.lmubss)); LONG(SIZEOF(.CPU1.lmubss)); - LONG(0 + ADDR(.CPU0.zbss)); LONG(SIZEOF(.CPU0.zbss)); - LONG(0 + ADDR(.CPU0.bss)); LONG(SIZEOF(.CPU0.bss)); - LONG(0 + ADDR(.CPU0.lmubss)); LONG(SIZEOF(.CPU0.lmubss)); - LONG(0 + ADDR(.zbss)); LONG(SIZEOF(.zbss)); - LONG(0 + ADDR(.sbss)); LONG(SIZEOF(.sbss)); - LONG(0 + ADDR(.bss)); LONG(SIZEOF(.bss)); - LONG(0 + ADDR(.lmubss)); LONG(SIZEOF(.lmubss)); - LONG(0 + ADDR(.sbss4)); LONG(SIZEOF(.sbss4)); - LONG(-1); LONG(-1); - PROVIDE(__clear_table_powerOn = .); - LONG(0 + ADDR(.zbss_powerOn)); LONG(SIZEOF(.zbss_powerOn)); - LONG(-1); LONG(-1); - PROVIDE(__copy_table = .); - LONG(LOADADDR(.CPU2.zdata)); LONG(0 + ADDR(.CPU2.zdata)); LONG(SIZEOF(.CPU2.zdata)); - LONG(LOADADDR(.CPU2.data)); LONG(0 + ADDR(.CPU2.data)); LONG(SIZEOF(.CPU2.data)); - LONG(LOADADDR(.CPU2.lmudata)); LONG(0 + ADDR(.CPU2.lmudata)); LONG(SIZEOF(.CPU2.lmudata)); - LONG(LOADADDR(.CPU1.zdata)); LONG(0 + ADDR(.CPU1.zdata)); LONG(SIZEOF(.CPU1.zdata)); - LONG(LOADADDR(.CPU1.data)); LONG(0 + ADDR(.CPU1.data)); LONG(SIZEOF(.CPU1.data)); - LONG(LOADADDR(.CPU1.lmudata)); LONG(0 + ADDR(.CPU1.lmudata)); LONG(SIZEOF(.CPU1.lmudata)); - LONG(LOADADDR(.CPU0.zdata)); LONG(0 + ADDR(.CPU0.zdata)); LONG(SIZEOF(.CPU0.zdata)); - LONG(LOADADDR(.CPU0.data)); LONG(0 + ADDR(.CPU0.data)); LONG(SIZEOF(.CPU0.data)); - LONG(LOADADDR(.CPU0.lmudata)); LONG(0 + ADDR(.CPU0.lmudata)); LONG(SIZEOF(.CPU0.lmudata)); - LONG(LOADADDR(.zdata)); LONG(0 + ADDR(.zdata)); LONG(SIZEOF(.zdata)); - LONG(LOADADDR(.sdata)); LONG(0 + ADDR(.sdata)); LONG(SIZEOF(.sdata)); - LONG(LOADADDR(.data)); LONG(0 + ADDR(.data)); LONG(SIZEOF(.data)); - LONG(LOADADDR(.lmudata)); LONG(0 + ADDR(.lmudata)); LONG(SIZEOF(.lmudata)); - LONG(LOADADDR(.sdata4)); LONG(0 + ADDR(.sdata4)); LONG(SIZEOF(.sdata4)); - LONG(LOADADDR(.CPU0.psram_text)); LONG(0 + ADDR(.CPU0.psram_text)); LONG(SIZEOF(.CPU0.psram_text)); - LONG(LOADADDR(.CPU1.psram_text)); LONG(0 + ADDR(.CPU1.psram_text)); LONG(SIZEOF(.CPU1.psram_text)); - LONG(LOADADDR(.CPU2.psram_text)); LONG(0 + ADDR(.CPU2.psram_text)); LONG(SIZEOF(.CPU2.psram_text)); - LONG(-1); LONG(-1); LONG(-1); - PROVIDE(__copy_table_powerOn = .) ; - LONG(LOADADDR(.zdata_powerOn)); LONG(0 + ADDR(.zdata_powerOn)); LONG(SIZEOF(.zdata_powerOn)); - LONG(-1); LONG(-1); LONG(-1); - . = ALIGN(8); - } > default_rom -} - -/*Code selections*/ -/*Code Sections, selectable with patterns and user defined sections*/ -CORE_ID = CPU0; -SECTIONS -{ - CORE_SEC(.text) : FLAGS(axl) - { - . = ALIGN(2); - *Ifx_Ssw_Tc0.*(.text) - *Cpu0_Main.*(.text) - *Ifx_Ssw_Tc0.*(.text.*) - *Cpu0_Main.*(.text.*) - *(.text_cpu0) - *(.text_cpu0.*) - } > pfls0 - - /* - * Code executed before calling main extra section for C++ constructor init - * -------------------------Start----------------------------------------- - */ - .init : - { - PROVIDE(__init_start = .); - KEEP(*(.init)) - KEEP(*(.init*)) - PROVIDE(__init_end = .); - . = ALIGN(8); - - } > pfls0 - - .fini : - { - PROVIDE(__fini_start = .); - KEEP(*(.fini)) - KEEP(*(.fini*)) - PROVIDE(__fini_end = .); - . = ALIGN(8); - } > pfls0 - - /* - * Code executed before calling main extra section for C++ constructor init - * -------------------------End----------------------------------------- - */ - CORE_SEC(.psram_text) : FLAGS(awx) - { - . = ALIGN(2); - *(.psram_text_cpu0) - *(.psram_text_cpu0.*) - *(.cpu0_psram) - *(.cpu0_psram.*) - . = ALIGN(2); - } > psram0 AT> pfls0 -} - -CORE_ID = CPU1; -SECTIONS -{ - CORE_SEC(.text) : FLAGS(axl) - { - . = ALIGN(2); - *Ifx_Ssw_Tc1.*(.text) - *Cpu1_Main.*(.text) - *Ifx_Ssw_Tc1.*(.text.*) - *Cpu1_Main.*(.text.*) - *(.text_cpu1) - *(.text_cpu1.*) - } > pfls1 - - CORE_SEC(.psram_text) : FLAGS(awx) - { - . = ALIGN(2); - *(.psram_text_cpu1) - *(.psram_text_cpu1.*) - *(.cpu1_psram) - *(.cpu1_psram.*) - . = ALIGN(2); - } > psram1 AT> pfls1 -} - -CORE_ID = CPU2; -SECTIONS -{ - CORE_SEC(.text) : FLAGS(axl) - { - . = ALIGN(2); - *Ifx_Ssw_Tc2.*(.text) - *Cpu2_Main.*(.text) - *Ifx_Ssw_Tc2.*(.text.*) - *Cpu2_Main.*(.text.*) - *(.text_cpu2) - *(.text_cpu2.*) - } > pfls1 - - CORE_SEC(.psram_text) : FLAGS(awx) - { - . = ALIGN(2); - *(.psram_text_cpu2) - *(.psram_text_cpu2.*) - *(.cpu2_psram) - *(.cpu2_psram.*) - . = ALIGN(2); - } > psram2 AT> pfls1 -} - -/*Code Sections, selectable by toolchain*/ -CORE_ID = GLOBAL; -SECTIONS -{ - CORE_SEC(.text) : FLAGS(axl) - { - *(.text.fast.pfls.cpu0) - *(.text.slow.pfls.cpu0) - *(.text.5ms.pfls.cpu0) - *(.text.10ms.pfls.cpu0) - *(.text.callout.pfls.cpu0) - *(.text) - *(.text.*) - *(.gnu.linkonce.t.*) - *(.gnu.warning) /* .gnu.warning sections are handled specially by elf32.em. */ - . = ALIGN(4); - } > default_rom - - /* - * C++ exception handling tables. NOTE: gcc emits .eh_frame - * sections when compiling C sources with debugging enabled (-g). - * If you can be sure that your final application consists - * exclusively of C objects (i.e., no C++ objects), you may use - * the -R option of the "strip" and "objcopy" utilities to remove - * the .eh_frame section from the executable. - */ - .eh_frame : - { - *(.gcc_except_table) - __EH_FRAME_BEGIN__ = . ; - KEEP (*(.eh_frame)) - __EH_FRAME_END__ = . ; - . = ALIGN(8); - } > default_rom - - /* - * Constructors and destructors. - */ - .ctors : FLAGS(ar) - { - __CTOR_LIST__ = . ; - LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2); - /* - * Code executed before calling main extra section for C++ constructor init - * -------------------------Start----------------------------------------- - */ - KEEP (*crtbegin.o(.ctors)) - KEEP (*(EXCLUDE_FILE (*crtend.o ) .ctors)) - KEEP (*(SORT(.ctors.*))) - KEEP (*(.ctors)) - /* - * Code executed before calling main extra section for C++ constructor init - * -------------------------End----------------------------------------- - */ - LONG(0) ; - __CTOR_END__ = . ; - . = ALIGN(8); - } > default_rom - .dtors : FLAGS(ar) - { - __DTOR_LIST__ = . ; - LONG((__DTOR_END__ - __DTOR_LIST__) / 4 - 2); - /* - * Code executed before calling main extra section for C++ distructor init - * -------------------------Start----------------------------------------- - */ - KEEP (*crtbegin.o(.dtors)) - KEEP (*(EXCLUDE_FILE (*crtend.o ) .dtors)) - KEEP (*(SORT(.dtors.*))) - KEEP (*(.dtors)) - /* - * Code executed before calling main extra section for C++ distructor init - * -------------------------End----------------------------------------- - */ - LONG(0) ; - __DTOR_END__ = . ; - . = ALIGN(8); - } > default_rom - /* - * DWARF debug sections. - * Symbols in the DWARF debugging sections are relative to the - * beginning of the section, so we begin them at 0. - */ - /* - * DWARF 1 - */ - .comment 0 : { *(.comment) } - .debug 0 : { *(.debug) } - .line 0 : { *(.line) } - /* - * GNU DWARF 1 extensions - */ - .debug_srcinfo 0 : { *(.debug_srcinfo) } - .debug_sfnames 0 : { *(.debug_sfnames) } - /* - * DWARF 1.1 and DWARF 2 - */ - .debug_aranges 0 : { *(.debug_aranges) } - .debug_pubnames 0 : { *(.debug_pubnames) } - /* - * DWARF 2 - */ - .debug_info 0 : { *(.debug_info) } - .debug_abbrev 0 : { *(.debug_abbrev) } - .debug_line 0 : { *(.debug_line) } - .debug_frame 0 : { *(.debug_frame) } - .debug_str 0 : { *(.debug_str) } - .debug_loc 0 : { *(.debug_loc) } - .debug_macinfo 0 : { *(.debug_macinfo) } - .debug_ranges 0 : { *(.debug_ranges) } - /* - * SGI/MIPS DWARF 2 extensions - */ - .debug_weaknames 0 : { *(.debug_weaknames) } - .debug_funcnames 0 : { *(.debug_funcnames) } - .debug_typenames 0 : { *(.debug_typenames) } - .debug_varnames 0 : { *(.debug_varnames) } - /* - * Optional sections that may only appear when relocating. - */ - /* - * Optional sections that may appear regardless of relocating. - */ - .version_info 0 : { *(.version_info) } - .boffs 0 : { KEEP (*(.boffs)) } -} - diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_env.sh b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_env.sh deleted file mode 100755 index bc8fb07f5..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_env.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/bash -############################################################################## -# Copyright (c) 2026 safecubed GmbH -# Copyright (c) 2026 Eclipse ThreadX contributors -# -# This program and the accompanying materials are made available under the -# terms of the MIT License which is available at -# https://opensource.org/licenses/MIT. -# -# SPDX-License-Identifier: MIT -############################################################################## - -# Portions of this file were generated with AI assistance. - -# Common settings for build_threadx.sh and build_threadx_sample.sh. -# -# The TriCore TC1.6.2 port and the sample depend on the Infineon iLLD. The iLLD is -# not part of this repository. AURIX_ILLD_DIR shall name the directory that -# holds the iLLD, Infra and Service folders. Two layouts are accepted: -# -# - the iLLD release package for all TC3xx devices (iLLD/TC3xx), for -# example src/BaseSw of iLLD 1.22.0. Ifx_Cfg.h selects the device. -# - the TC37A iLLD of an AURIX Development Studio project (iLLD/TC37A), -# that is the project's Libraries folder. -# -# AURIX_ILLD_DIR=/path/to/illd_release_tc3x/src/BaseSw ./build_threadx_sample.sh -# -# CROSS_COMPILE selects the toolchain prefix. The default is the AURIX GCC -# (tricore-elf-), which shall be on PATH. - -: "${CROSS_COMPILE:=tricore-elf-}" -CC="${CROSS_COMPILE}gcc" -AR="${CROSS_COMPILE}ar" - -THREADX_ROOT="../../../../.." -BUILD_DIR="build" -INFRA="${AURIX_ILLD_DIR:-}/Infra" -SERVICE="${AURIX_ILLD_DIR:-}/Service/CpuGeneric" - -if [ -d "${AURIX_ILLD_DIR:-}/iLLD/TC3xx/Tricore" ]; then - ILLD="${AURIX_ILLD_DIR}/iLLD/TC3xx/Tricore" - SFR="${INFRA}/Sfr/TC37x" - SSW="${INFRA}/Ssw/TC3xx/Tricore" - PINMAP="${ILLD}/_PinMap/TC37x" -elif [ -d "${AURIX_ILLD_DIR:-}/iLLD/TC37A/Tricore" ]; then - ILLD="${AURIX_ILLD_DIR}/iLLD/TC37A/Tricore" - SFR="${INFRA}/Sfr/TC37A/_Reg" - SSW="${INFRA}/Ssw/TC37A/Tricore" - PINMAP="${ILLD}/_PinMap" -else - echo "AURIX_ILLD_DIR shall name a directory that contains iLLD/TC3xx/Tricore" >&2 - echo "or iLLD/TC37A/Tricore, together with Infra and Service." >&2 - exit 1 -fi - -CFLAGS="-std=c99 -O0 -g3 -Wall -fmessage-length=0 -fno-common \ --fstrict-volatile-bitfields -fdata-sections -ffunction-sections -mtc162" - -INCLUDES="-I. \ --I${THREADX_ROOT}/common/inc \ --I../../inc \ --I${ILLD} \ --I${ILLD}/Cpu/Std \ --I${ILLD}/Cpu/Irq \ --I${ILLD}/Cpu/Trap \ --I${ILLD}/Scu/Std \ --I${ILLD}/Src/Std \ --I${ILLD}/Stm/Std \ --I${ILLD}/Port/Std \ --I${ILLD}/Pms/Std \ --I${ILLD}/_Impl \ --I${ILLD}/_Lib \ --I${ILLD}/_PinMap \ --I${PINMAP} \ --I${INFRA}/Platform \ --I${INFRA}/Platform/Tricore/Compilers \ --I${SFR} \ --I${SSW} \ --I${SERVICE} \ --I${SERVICE}/SysSe/Bsp \ --I${SERVICE}/_Utilities" diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx.sh b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx.sh deleted file mode 100755 index 02ddda951..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -############################################################################## -# Copyright (c) 2026 safecubed GmbH -# Copyright (c) 2026 Eclipse ThreadX contributors -# -# This program and the accompanying materials are made available under the -# terms of the MIT License which is available at -# https://opensource.org/licenses/MIT. -# -# SPDX-License-Identifier: MIT -############################################################################## - -# Portions of this file were generated with AI assistance. - -# Builds the ThreadX library tx.a for the TriCore TC1.6.2 port. See build_env.sh for -# the required environment. - -set -e -cd "$(dirname "$0")" -. ./build_env.sh - -OBJ_DIR="${BUILD_DIR}/tx" -rm -rf "${OBJ_DIR}" -mkdir -p "${OBJ_DIR}" -rm -f tx.a - -for src in ../../src/*.c "${THREADX_ROOT}"/common/src/*.c; do - obj="${OBJ_DIR}/$(basename "${src%.c}").o" - "${CC}" ${CFLAGS} ${INCLUDES} -c "${src}" -o "${obj}" -done - -"${AR}" -r tx.a "${OBJ_DIR}"/*.o diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx_sample.sh b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx_sample.sh deleted file mode 100755 index ce74f145c..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/build_threadx_sample.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash -############################################################################## -# Copyright (c) 2026 safecubed GmbH -# Copyright (c) 2026 Eclipse ThreadX contributors -# -# This program and the accompanying materials are made available under the -# terms of the MIT License which is available at -# https://opensource.org/licenses/MIT. -# -# SPDX-License-Identifier: MIT -############################################################################## - -# Portions of this file were generated with AI assistance. - -# Builds sample_threadx.elf for the AURIX TC375 Lite Kit. build_threadx.sh -# shall have built tx.a first. See build_env.sh for the required environment. - -set -e -cd "$(dirname "$0")" -. ./build_env.sh - -OBJ_DIR="${BUILD_DIR}/sample" -rm -rf "${OBJ_DIR}" -mkdir -p "${OBJ_DIR}" -rm -f sample_threadx.elf sample_threadx.map - -SOURCES="sample_threadx.c \ -tx_initialize_low_level.c \ -Cpu0_Main.c \ -Cpu1_Main.c \ -Cpu2_Main.c \ -Ifx_Cfg_Ssw.c \ -Ifx_Cfg_SswBmhd.c \ -${INFRA}/Platform/Tricore/Compilers/CompilerGnuc.c \ -${SSW}/Ifx_Ssw_Infra.c \ -${SSW}/Ifx_Ssw_Tc0.c \ -${SSW}/Ifx_Ssw_Tc1.c \ -${SSW}/Ifx_Ssw_Tc2.c \ -${ILLD}/Cpu/Std/IfxCpu.c \ -${ILLD}/Cpu/Irq/IfxCpu_Irq.c \ -${ILLD}/Cpu/Trap/IfxCpu_Trap.c \ -${ILLD}/Pms/Std/IfxPmsEvr.c \ -${ILLD}/Scu/Std/IfxScuCcu.c \ -${ILLD}/Scu/Std/IfxScuWdt.c \ -${ILLD}/Src/Std/IfxSrc.c \ -${ILLD}/Stm/Std/IfxStm.c \ -${ILLD}/_Impl/IfxCpu_cfg.c \ -${ILLD}/_Impl/IfxStm_cfg.c" - -for src in ${SOURCES}; do - obj="${OBJ_DIR}/$(basename "${src%.c}").o" - "${CC}" ${CFLAGS} ${INCLUDES} -c "${src}" -o "${obj}" -done - -"${CC}" -mtc162 -nocrt0 -T Lcf_Gnuc_Tricore_Tc.lsl -Wl,--gc-sections \ - -Wl,-Map=sample_threadx.map \ - -o sample_threadx.elf "${OBJ_DIR}"/*.o tx.a diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/tx_initialize_low_level.c b/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/tx_initialize_low_level.c deleted file mode 100755 index 2d56315cb..000000000 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/tx_initialize_low_level.c +++ /dev/null @@ -1,102 +0,0 @@ -/*************************************************************************** - * Copyright (c) 2026 safecubed GmbH - * Copyright (c) 2026 Eclipse ThreadX contributors - * - * This program and the accompanying materials are made available under the - * terms of the MIT License which is available at - * https://opensource.org/licenses/MIT. - * - * SPDX-License-Identifier: MIT - **************************************************************************/ - -/* Portions of this file were generated with AI assistance. */ - -/* Low-level initialisation of ThreadX on CPU0 of the TC375 Lite Kit. - - _tx_initialize_low_level runs from tx_kernel_enter before the kernel and - the application are initialised. It sets the first unused memory, the - ThreadX timer on compare 0 of STM0 and the dispatch interrupt of the port. - Interrupts stay disabled until _tx_thread_schedule starts the first - thread. The linker script shall define __TX_FREE_MEM. */ - -#define TX_SOURCE_CODE - -#include "tx_api.h" -#include "IfxStm.h" - -#define TIMER_STM MODULE_STM0 -#define TIMER_COMPARATOR IfxStm_Comparator_0 - -VOID _tx_timer_interrupt(VOID); - -#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) -VOID _tx_execution_isr_enter(VOID); -VOID _tx_execution_isr_exit(VOID); -#endif - -extern VOID *_tx_initialize_unused_memory; - -/* First address of CPU0 data RAM after the variables and the heap, from the - linker script. */ -extern UCHAR __TX_FREE_MEM[]; - -/* STM ticks per ThreadX timer tick. */ -static ULONG timer_period; - - -VOID _tx_initialize_low_level(VOID) -{ - - IfxStm_CompareConfig compare_config; - - __disable(); - - _tx_initialize_unused_memory = (VOID *) __TX_FREE_MEM; - - timer_period = (ULONG) ((IfxStm_getFrequency(&TIMER_STM) / (float32) TX_TIMER_TICKS_PER_SECOND) + 0.5f); - - IfxStm_initCompareConfig(&compare_config); - compare_config.comparator = TIMER_COMPARATOR; - compare_config.comparatorInterrupt = IfxStm_ComparatorInterrupt_ir0; - compare_config.ticks = timer_period; - compare_config.triggerPriority = TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY; - compare_config.typeOfService = IfxSrc_Tos_cpu0; - (VOID) IfxStm_initCompare(&TIMER_STM, &compare_config); - - IfxSrc_init(&TX_PORT_TRICORE_DISPATCH_SRC, IfxSrc_Tos_cpu0, TX_PORT_TRICORE_DISPATCH_PRIORITY); - IfxSrc_enable(&TX_PORT_TRICORE_DISPATCH_SRC); -} - - -IFX_INTERRUPT(TimerInterruptHandler, 0, TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY) -{ - - ULONG now; - ULONG next; - -#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) - _tx_execution_isr_enter(); -#endif - - IfxStm_clearCompareFlag(&TIMER_STM, TIMER_COMPARATOR); - - /* The next compare follows the previous one by one period. If the counter - has already passed that value, for example after the first tick was - delayed by tx_application_define or after a debugger halt, the next - compare is one period from now and the ticks in between are lost. - Without this check, the next interrupt would occur only after the - 32-bit counter wraps. */ - next = IfxStm_getCompare(&TIMER_STM, TIMER_COMPARATOR) + timer_period; - now = IfxStm_getLower(&TIMER_STM); - if ((LONG) (next - now) <= 0) - { - next = now + timer_period; - } - IfxStm_updateCompare(&TIMER_STM, TIMER_COMPARATOR, next); - - _tx_timer_interrupt(); - -#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) - _tx_execution_isr_exit(); -#endif -} diff --git a/ports/tricore_tc1_6_2/gnu/example_build/build_threadx_sample.sh b/ports/tricore_tc1_6_2/gnu/example_build/build_threadx_sample.sh new file mode 100755 index 000000000..5581ff6e6 --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/build_threadx_sample.sh @@ -0,0 +1,53 @@ +#!/bin/bash +############################################################################## +# Copyright (c) 2026 safecubed GmbH +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + +# Portions of this file were generated with AI assistance. + +# Builds the ThreadX library tx.a and sample_threadx.elf for the AURIX TC375 +# Lite Kit without a driver library. The start-up code is crt0-tc38xx.o of +# the AURIX GCC: the compiler has no TC37x device, and the TC38x start-up +# code applies to the TC375 unchanged. sample_threadx.ld replaces the memory +# description of the TC38x. +# +# CROSS_COMPILE selects the toolchain prefix. The default is the AURIX GCC +# (tricore-elf-), which shall be on PATH. + +set -e +cd "$(dirname "$0")" + +: "${CROSS_COMPILE:=tricore-elf-}" +CC="${CROSS_COMPILE}gcc" +AR="${CROSS_COMPILE}ar" + +THREADX_ROOT="../../../.." +BUILD_DIR="build" + +CFLAGS="-mcpu=tc38xx -std=c99 -O0 -g3 -Wall -fmessage-length=0 -fno-common \ +-fdata-sections -ffunction-sections" +INCLUDES="-I${THREADX_ROOT}/common/inc -I../inc" + +rm -rf "${BUILD_DIR}" +mkdir -p "${BUILD_DIR}/tx" "${BUILD_DIR}/sample" +rm -f tx.a sample_threadx.elf sample_threadx.map + +for src in ../src/*.c "${THREADX_ROOT}"/common/src/*.c; do + "${CC}" ${CFLAGS} ${INCLUDES} -c "${src}" -o "${BUILD_DIR}/tx/$(basename "${src%.c}").o" +done +"${AR}" -r tx.a "${BUILD_DIR}"/tx/*.o + +for src in sample_threadx.c tx_initialize_low_level.c; do + obj="${BUILD_DIR}/sample/$(basename "${src%.c}").o" + "${CC}" ${CFLAGS} ${INCLUDES} -c "${src}" -o "${obj}" +done + +"${CC}" -mcpu=tc38xx -T sample_threadx.ld -Wl,--gc-sections -Wl,-Map=sample_threadx.map \ + -o sample_threadx.elf "${BUILD_DIR}"/sample/*.o tx.a diff --git a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/sample_threadx.c b/ports/tricore_tc1_6_2/gnu/example_build/sample_threadx.c similarity index 99% rename from ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/sample_threadx.c rename to ports/tricore_tc1_6_2/gnu/example_build/sample_threadx.c index de0ef97e6..dcd1b5471 100644 --- a/ports/tricore_tc1_6_2/gnu/example_build/aurix_lite_kit_v2/sample_threadx.c +++ b/ports/tricore_tc1_6_2/gnu/example_build/sample_threadx.c @@ -74,6 +74,16 @@ void thread_5_entry(ULONG thread_input); void thread_6_and_7_entry(ULONG thread_input); +/* Define main entry point. */ + +int main() +{ + + /* Enter the ThreadX kernel. */ + tx_kernel_enter(); +} + + /* Define what the initial system looks like. */ void tx_application_define(void *first_unused_memory) diff --git a/ports/tricore_tc1_6_2/gnu/example_build/sample_threadx.ld b/ports/tricore_tc1_6_2/gnu/example_build/sample_threadx.ld new file mode 100644 index 000000000..8df0b0eac --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/sample_threadx.ld @@ -0,0 +1,86 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* Memory description of CPU0 of the TC375 for the default linker script of + the AURIX GCC and its start-up code crt0-tc38xx.o. + + The file is given with -T and augments the default linker script through + INSERT. It replaces the memory description that the compiler driver adds + for -mcpu=tc38xx. The start-up code occupies the start of program flash + bank 0, 0x80000000, which the boot mode header of the board selects + through its non-cached address 0xA0000000. */ + +__USTACK_SIZE = 4K; +__ISTACK_SIZE = 4K; +__HEAP_SIZE = 4K; +__CSA_SIZE = 16K; + +MEMORY +{ + PFLASH0 (rx!p): org = 0x80000000, len = 3M + DSPR0 (w!xp): org = 0x70000000, len = 240K +} + +REGION_ALIAS("CODE_MEM", PFLASH0) +REGION_ALIAS("DATA_MEM", DSPR0) +REGION_ALIAS("SDATA_MEM", DSPR0) +REGION_ALIAS("BSS_MEM", DSPR0) +REGION_ALIAS("ZDATA_MEM", DSPR0) +REGION_ALIAS("CSA_MEM", DSPR0) + +INSERT BEFORE .startup + + +/* Interrupt vector table of CPU0. TX_PORT_TRICORE_INTERRUPT in tx_port.h + places the entry of priority n in the section .intvec_tc0_, which is + located at BIV + 32 * n. The table holds the priorities 1 to 15 and is + aligned to its size of 512 bytes. */ + +SECTIONS +{ + .inttab_tc0 : ALIGN(512) + { + __INTTAB_CPU0 = .; + . = 0x020; KEEP (*(.intvec_tc0_1)) + . = 0x040; KEEP (*(.intvec_tc0_2)) + . = 0x060; KEEP (*(.intvec_tc0_3)) + . = 0x080; KEEP (*(.intvec_tc0_4)) + . = 0x0A0; KEEP (*(.intvec_tc0_5)) + . = 0x0C0; KEEP (*(.intvec_tc0_6)) + . = 0x0E0; KEEP (*(.intvec_tc0_7)) + . = 0x100; KEEP (*(.intvec_tc0_8)) + . = 0x120; KEEP (*(.intvec_tc0_9)) + . = 0x140; KEEP (*(.intvec_tc0_10)) + . = 0x160; KEEP (*(.intvec_tc0_11)) + . = 0x180; KEEP (*(.intvec_tc0_12)) + . = 0x1A0; KEEP (*(.intvec_tc0_13)) + . = 0x1C0; KEEP (*(.intvec_tc0_14)) + . = 0x1E0; KEEP (*(.intvec_tc0_15)) + } > CODE_MEM +} + +INSERT AFTER .inttab + + +/* The memory of DSPR0 after the context save areas is free. + _tx_initialize_low_level passes its start to tx_application_define. */ + +SECTIONS +{ + .tx_free_memory (NOLOAD) : ALIGN(8) + { + __TX_FREE_MEM = .; + } > DATA_MEM +} + +INSERT AFTER .csa diff --git a/ports/tricore_tc1_6_2/gnu/example_build/tx_initialize_low_level.c b/ports/tricore_tc1_6_2/gnu/example_build/tx_initialize_low_level.c new file mode 100644 index 000000000..6aef0405a --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/tx_initialize_low_level.c @@ -0,0 +1,253 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* Low-level initialisation of ThreadX on CPU0 of the TC375 Lite Kit without + a driver library. + + The start-up code of the compiler (crt0) has disabled the CPU0 watchdog + and the safety watchdog, initialised the stacks, the context save areas + and the C data, and calls main of sample_threadx.c, which calls + tx_kernel_enter. The clock system keeps its reset state: the system runs + from the back-up clock of 100 MHz. + + _tx_initialize_low_level runs from tx_kernel_enter before the kernel and + the application are initialised. It installs the trap and interrupt + vector tables, the ThreadX timer on compare 0 of STM0 and the dispatch + interrupt of the port. Interrupts stay disabled until _tx_thread_schedule + starts the first thread. */ + +#include "tx_api.h" + + +/* Core special function registers. */ +#define CSFR_BIV 0xFE20 +#define CSFR_BTV 0xFE24 + +/* CPU0 watchdog: ENDINIT protects BIV and BTV. */ +#define SCU_WDTCPU0_CON0 (*(volatile unsigned int *) 0xF003624CUL) +#define WDT_CON0_ENDINIT 0x00000001UL +#define WDT_CON0_LCK 0x00000002UL +#define WDT_CON0_PW_OFF 2 +#define WDT_CON0_PW_MSK 0x3FFFUL +#define WDT_CON0_REL_MSK 0xFFFF0000UL +/* CON0.PW reads with bits 5:0 inverted. */ +#define WDT_CON0_PW_READ_INVERT 0x003FUL + +/* Clock control: fSTM = fSOURCE / CCUCON0.STMDIV, where fSOURCE is the + back-up clock while CCUCON0.CLKSEL = 0. */ +#define SCU_CCUCON0 (*(volatile unsigned int *) 0xF0036030UL) +#define CCUCON0_STMDIV_MSK 0x0000000FUL +#define BACKUP_CLOCK_FREQUENCY 100000000UL + +/* STM0 compare 0. */ +#define STM0_TIM0 (*(volatile unsigned int *) 0xF0001010UL) +#define STM0_CMP0 (*(volatile unsigned int *) 0xF0001030UL) +#define STM0_CMCON (*(volatile unsigned int *) 0xF0001038UL) +#define STM0_ICR (*(volatile unsigned int *) 0xF000103CUL) +#define STM0_ISCR (*(volatile unsigned int *) 0xF0001040UL) +#define STM_CMCON_CMP0_MSK 0x00001F1FUL /* MSTART0 and MSIZE0 */ +#define STM_CMCON_CMP0_32_BITS 0x0000001FUL /* MSTART0 = 0, MSIZE0 = 31 */ +#define STM_ICR_CMP0_MSK 0x00000007UL /* CMP0EN, CMP0IR and CMP0OS */ +#define STM_ICR_CMP0EN 0x00000001UL /* CMP0OS = 0: service request STMIR0 */ +#define STM_ISCR_CMP0IRR 0x00000001UL + +/* Service request STMIR0 of STM0. */ +#define SRC_STM0SR0 (*(volatile unsigned int *) 0xF0038300UL) + + +VOID _tx_timer_interrupt(VOID); + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) +VOID _tx_execution_isr_enter(VOID); +VOID _tx_execution_isr_exit(VOID); +#endif + +extern VOID *_tx_initialize_unused_memory; + +/* From the trap vector table below and the linker script. */ +extern UCHAR _tx_trap_table[]; +extern UCHAR __INTTAB_CPU0[]; +extern UCHAR __TX_FREE_MEM[]; + +/* STM ticks per ThreadX timer tick. */ +static ULONG timer_period; + + +/* Sets (endinit = WDT_CON0_ENDINIT) or clears (endinit = 0) the ENDINIT bit + of the CPU0 watchdog. A password access unlocks CON0, the modify access + then writes ENDINIT and locks CON0 again. */ +static VOID cpu0_endinit_write(ULONG endinit) +{ + + ULONG con0; + ULONG password; + + con0 = SCU_WDTCPU0_CON0; + password = (((con0 >> WDT_CON0_PW_OFF) & WDT_CON0_PW_MSK) ^ WDT_CON0_PW_READ_INVERT) << WDT_CON0_PW_OFF; + + if ((con0 & WDT_CON0_LCK) != 0U) + { + SCU_WDTCPU0_CON0 = (con0 & WDT_CON0_REL_MSK) | password | WDT_CON0_ENDINIT; + } + + SCU_WDTCPU0_CON0 = (con0 & WDT_CON0_REL_MSK) | password | WDT_CON0_LCK | endinit; + + /* The read back completes the write before ENDINIT protected registers + are accessed. */ + (VOID) SCU_WDTCPU0_CON0; +} + + +VOID _tx_initialize_low_level(VOID) +{ + + ULONG stm_frequency; + + _disable(); + + _tx_initialize_unused_memory = (VOID *) __TX_FREE_MEM; + + /* Trap and interrupt vector tables. BIV.VSS = 0: vector spacing of 32 + bytes. */ + cpu0_endinit_write(0U); + __mtcr(CSFR_BTV, (ULONG) _tx_trap_table); + __mtcr(CSFR_BIV, (ULONG) __INTTAB_CPU0); + _isync(); + cpu0_endinit_write(WDT_CON0_ENDINIT); + + /* ThreadX timer on compare 0 of STM0. The compare covers all 32 bits of + the lower timer word. */ + stm_frequency = BACKUP_CLOCK_FREQUENCY / (SCU_CCUCON0 & CCUCON0_STMDIV_MSK); + timer_period = (stm_frequency + (TX_TIMER_TICKS_PER_SECOND / 2U)) / TX_TIMER_TICKS_PER_SECOND; + + STM0_CMCON = (STM0_CMCON & ~STM_CMCON_CMP0_MSK) | STM_CMCON_CMP0_32_BITS; + STM0_CMP0 = STM0_TIM0 + timer_period; + STM0_ISCR = STM_ISCR_CMP0IRR; + STM0_ICR = (STM0_ICR & ~STM_ICR_CMP0_MSK) | STM_ICR_CMP0EN; + SRC_STM0SR0 = TX_PORT_TRICORE_SRC_CLRR_MSK | TX_PORT_TRICORE_SRC_SRE_MSK | + (0UL << TX_PORT_TRICORE_SRC_TOS_OFF) | TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY; + + /* Dispatch interrupt of the port. */ + TX_PORT_TRICORE_DISPATCH_SRC = TX_PORT_TRICORE_SRC_CLRR_MSK | TX_PORT_TRICORE_SRC_SRE_MSK | + (0UL << TX_PORT_TRICORE_SRC_TOS_OFF) | TX_PORT_TRICORE_DISPATCH_PRIORITY; +} + + +TX_PORT_TRICORE_INTERRUPT(_tx_timer_isr, TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY) +{ + + ULONG now; + ULONG next; + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) + _tx_execution_isr_enter(); +#endif + + STM0_ISCR = STM_ISCR_CMP0IRR; + + /* The next compare follows the previous one by one period. If the timer + has already passed that value, for example after a debugger halt, the + next compare is one period from now and the ticks in between are lost. + Without this check, the next interrupt would occur only after the + 32-bit timer wraps. */ + next = STM0_CMP0 + timer_period; + now = STM0_TIM0; + if ((LONG) (next - now) <= 0) + { + next = now + timer_period; + } + STM0_CMP0 = next; + + _tx_timer_interrupt(); + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) + _tx_execution_isr_exit(); +#endif +} + + +/* Receives the trap class and TIN of every trap except the system call and + shall not return. */ +VOID __attribute__( ( weak, noreturn ) ) tx_trap_error_hook(UINT trap_class, UINT tin) +{ + (VOID) trap_class; + (VOID) tin; + + _debug(); + while (TX_TRUE) + { + } +} + +/* Trap vector table of CPU0: eight entries of 32 bytes, aligned to 256 + bytes. The error entries jump, because a context management trap can + leave no free CSA. */ +__asm__ (".pushsection .traptab, \"ax\", @progbits\n" + " .align 8\n" + " .global _tx_trap_table\n" + " .type _tx_trap_table, @function\n" + "_tx_trap_table:\n" + + /* Class 0: MMU. */ + " mov %d4, 0\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 1: internal protection. */ + " mov %d4, 1\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 2: instruction errors. */ + " mov %d4, 2\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 3: context management. */ + " mov %d4, 3\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 4: system bus and peripheral errors. */ + " mov %d4, 4\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 5: assertion. */ + " mov %d4, 5\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 6: system call. The handler shall be called directly + (TX_PORT_TRICORE_SYSCALL_CALL_DEPTH). */ + " svlcx\n" + " mov %d4, %d15\n" + " call _tx_thread_syscall_handler\n" + " rslcx\n" + " rfe\n" + " .align 5\n" + + /* Class 7: non-maskable interrupt. */ + " mov %d4, 7\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + " .size _tx_trap_table, . - _tx_trap_table\n" + ".popsection\n"); diff --git a/ports/tricore_tc1_6_2/gnu/inc/tx_port.h b/ports/tricore_tc1_6_2/gnu/inc/tx_port.h index 32bca0f2e..7ab3a36e4 100755 --- a/ports/tricore_tc1_6_2/gnu/inc/tx_port.h +++ b/ports/tricore_tc1_6_2/gnu/inc/tx_port.h @@ -120,11 +120,8 @@ #include #include -/* iLLD core intrinsics, the service request of the dispatch interrupt and - the trace time source. */ -#include "IfxCpu_Intrinsics.h" -#include "IfxSrc.h" -#include "IfxStm_reg.h" +/* TriCore intrinsics of the AURIX GCC. */ +#include @@ -255,7 +252,41 @@ extern TEST_FLAG test_forced_mutex_timeout; #define TX_PORT_TRICORE_ICR_IE_MSK 0x00008000UL /* Global interrupt enable */ /* System call that enters the scheduler. */ -#define TX_PORT_TRICORE_SYSCALL_ID 0 +#define TX_PORT_TRICORE_SYSCALL_ID_SCHEDULE 0 + +/* Receives every other system call number. The weak default stops the CPU. */ +VOID tx_port_tricore_syscall_hook(UINT id); + + +/* Interrupt handlers of CPU0. + + TX_PORT_TRICORE_INTERRUPT(isr, priority) starts the definition of the + interrupt handler isr, for example: + + TX_PORT_TRICORE_INTERRUPT(timer_isr, 2) + { + ... + } + + It places the vector table entry in the section .intvec_tc0_. + The linker script shall locate this section at BIV + 32 * priority. The + entry saves the lower context and jumps to isr, which returns through + RSLCX and RFE. priority shall expand to a decimal integer literal without + parentheses or suffix, because it becomes part of the section name. */ + +#define TX_PORT_TRICORE_STRINGIFY(x) #x +#define TX_PORT_TRICORE_EXPAND_STRINGIFY(x) TX_PORT_TRICORE_STRINGIFY(x) + +#define TX_PORT_TRICORE_INTERRUPT(isr, priority) \ + __asm__ (".pushsection .intvec_tc0_" TX_PORT_TRICORE_EXPAND_STRINGIFY(priority) \ + ", \"ax\", @progbits\n" \ + " svlcx\n" \ + " movh.a %a14, hi:" #isr "\n" \ + " lea %a14, [%a14]lo:" #isr "\n" \ + " ji %a14\n" \ + ".popsection\n"); \ + void isr(void) __attribute__ ((interrupt_handler)); \ + void isr(void) /* The dispatch interrupt switches threads on behalf of interrupt handlers. @@ -265,14 +296,31 @@ extern TEST_FLAG test_forced_mutex_timeout; #define TX_PORT_TRICORE_DISPATCH_PRIORITY 1 #endif -#ifndef TX_PORT_TRICORE_DISPATCH_SRC -#define TX_PORT_TRICORE_DISPATCH_SRC SRC_GPSR_GPSR0_SR0 +/* Address of the service request control register (SRC) of the dispatch + interrupt. The default is SRC_GPSR00, general purpose service request 0 + of group 0, of the TC3xx. The board shall configure this SRC for CPU0 + with TX_PORT_TRICORE_DISPATCH_PRIORITY and enable it. */ +#ifndef TX_PORT_TRICORE_DISPATCH_SRC_ADDRESS +#define TX_PORT_TRICORE_DISPATCH_SRC_ADDRESS 0xF0038990UL #endif +#define TX_PORT_TRICORE_DISPATCH_SRC (*(volatile unsigned int *) TX_PORT_TRICORE_DISPATCH_SRC_ADDRESS) + +/* Fields of an SRC. */ +#define TX_PORT_TRICORE_SRC_SRPN_MSK 0x000000FFUL /* Service request priority number */ +#define TX_PORT_TRICORE_SRC_SRE_MSK 0x00000400UL /* Service request enable */ +#define TX_PORT_TRICORE_SRC_TOS_OFF 11 /* Type of service, 0: CPU0 */ +#define TX_PORT_TRICORE_SRC_CLRR_MSK 0x02000000UL /* Request clear */ +#define TX_PORT_TRICORE_SRC_SETR_MSK 0x04000000UL /* Request set */ + #ifndef TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY #define TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY 2 #endif +/* Lower 32 bits of the system timer STM0 of the TC3xx: the default time + source of the trace and of the execution profile. */ +#define TX_PORT_TRICORE_STM0_TIM0 (*(volatile unsigned int *) 0xF0001010UL) + /* Define the TX_MEMSET macro to remove library reference. The local names carry the prefix tx_memset_ so that they do not hide an argument of the @@ -359,7 +407,7 @@ extern TEST_FLAG test_forced_mutex_timeout; #ifndef TX_MISRA_ENABLE #ifndef TX_TRACE_TIME_SOURCE -#define TX_TRACE_TIME_SOURCE STM0_TIM0.U +#define TX_TRACE_TIME_SOURCE TX_PORT_TRICORE_STM0_TIM0 #endif #else #ifndef TX_TRACE_TIME_SOURCE @@ -370,7 +418,7 @@ ULONG _tx_misra_time_stamp_get(VOID); /* Time source of the execution profile kit. */ #ifndef TX_EXECUTION_TIME_SOURCE -#define TX_EXECUTION_TIME_SOURCE (EXECUTION_TIME_SOURCE_TYPE) STM0_TIM0.U +#define TX_EXECUTION_TIME_SOURCE (EXECUTION_TIME_SOURCE_TYPE) TX_PORT_TRICORE_STM0_TIM0 #endif #ifndef TX_TRACE_TIME_MASK @@ -479,7 +527,7 @@ __attribute__( ( always_inline ) ) static inline unsigned int __get_interrupt_st { UINT psw; psw = __mfcr(TX_PORT_TRICORE_CSFR_PSW); - __isync(); + _isync(); return (psw >> TX_PORT_TRICORE_PSW_IS_OFF) & 1U; } @@ -509,10 +557,18 @@ ULONG _tx_misra_interrupt_state_get(VOID); __attribute__( ( always_inline ) ) static inline void _tx_thread_dispatch_request(void) { - IfxSrc_setRequest(&TX_PORT_TRICORE_DISPATCH_SRC); - __dsync(); + TX_PORT_TRICORE_DISPATCH_SRC |= (unsigned int) TX_PORT_TRICORE_SRC_SETR_MSK; + _dsync(); } +/* PSW.IS is 1 after reset, and start-up code may keep it. The initialisation runs on the user stack, so + _tx_initialize_kernel_enter clears PSW.IS: traps and interrupts then switch to the interrupt stack, and + TX_THREAD_GET_SYSTEM_STATE does not take the initialisation for an interrupt handler. The clear shall be + inline code of _tx_initialize_kernel_enter, which does not return: the return from a called function + would restore the PSW of its caller. */ +#define TX_PORT_SPECIFIC_PRE_INITIALIZATION __mtcr(TX_PORT_TRICORE_CSFR_PSW, __mfcr(TX_PORT_TRICORE_CSFR_PSW) & ~(1UL << TX_PORT_TRICORE_PSW_IS_OFF)); \ + _isync(); + /* Define the macro to ensure _tx_thread_preempt_disable is set early in initialization in order to prevent early scheduling. _tx_thread_schedule clears it before the first thread runs. */ #define TX_PORT_SPECIFIC_POST_INITIALIZATION _tx_thread_preempt_disable++; @@ -525,8 +581,8 @@ __attribute__( ( always_inline ) ) static inline void _tx_thread_dispatch_reques __attribute__( ( always_inline ) ) static inline unsigned int __get_interrupt_posture(void) { UINT posture; - posture =__mfcr(TX_PORT_TRICORE_CSFR_ICR); - __isync(); + posture = __mfcr(TX_PORT_TRICORE_CSFR_ICR); + _isync(); return posture; } @@ -537,18 +593,18 @@ __attribute__( ( always_inline ) ) static inline void __set_ccpn_value(unsigned icr = __mfcr(TX_PORT_TRICORE_CSFR_ICR); icr = (icr & ~((UINT) TX_PORT_TRICORE_ICR_CCPN_MSK)) | (ccpn_value & ((UINT) TX_PORT_TRICORE_ICR_CCPN_MSK)); __mtcr(TX_PORT_TRICORE_CSFR_ICR, icr); - __isync(); + _isync(); } __attribute__( ( always_inline ) ) static inline void __enable_interrupts(void) { - __enable(); + _enable(); } __attribute__( ( always_inline ) ) static inline void __restore_interrupt(unsigned int posture) { __mtcr(TX_PORT_TRICORE_CSFR_ICR, posture); - __isync(); + _isync(); } __attribute__( ( always_inline ) ) static inline unsigned int __disable_interrupts(void) @@ -564,7 +620,7 @@ __attribute__( ( always_inline ) ) static inline unsigned int __disable_interrup __set_ccpn_value(TX_PORT_CCPN); } #else - __disable(); + _disable(); #endif return posture; @@ -587,7 +643,7 @@ __attribute__( ( always_inline ) ) static inline void _tx_thread_system_return_i #else __enable_interrupts(); #endif - __syscall(TX_PORT_TRICORE_SYSCALL_ID); + __syscall(TX_PORT_TRICORE_SYSCALL_ID_SCHEDULE); __restore_interrupt(interrupt_save); } else diff --git a/ports/tricore_tc1_6_2/gnu/readme_threadx.txt b/ports/tricore_tc1_6_2/gnu/readme_threadx.txt index 62f189149..9580d0e9b 100755 --- a/ports/tricore_tc1_6_2/gnu/readme_threadx.txt +++ b/ports/tricore_tc1_6_2/gnu/readme_threadx.txt @@ -7,144 +7,106 @@ The port runs on CPU0 of an AURIX TC3 device and was developed on the AURIX TC375 Lite Kit (KIT_A2G_TC375_LITE). It requires the AURIX GCC -(tricore-elf-gcc) on PATH and the Infineon iLLD, which is not part of this -repository. AURIX_ILLD_DIR shall name the directory that holds the iLLD, -Infra and Service folders. The example build was built and tested with -iLLD 1.22.0. - -The iLLD headers include the board configuration Ifx_Cfg.h. The one for the -TC375 Lite Kit (DEVICE_TC37X, IFX_PIN_PACKAGE_LQFP176) is in -example_build/aurix_lite_kit_v2. +(tricore-elf-gcc) on PATH and uses no driver library. 2. Building the ThreadX Run-time Library -In example_build/aurix_lite_kit_v2, run: - - AURIX_ILLD_DIR=/path/to/Libraries ./build_threadx.sh - -or, with CMake from the repository root: +With CMake from the repository root, run: - cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=cmake/tricore_tc1_6_2.cmake \ - -DAURIX_ILLD_DIR=/path/to/Libraries + cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=cmake/tricore_tc1_6_2.cmake cmake --build build -The CMake variable AURIX_CFG_DIR selects a different directory for -Ifx_Cfg.h. Both builds produce the library tx.a, which the application links. -tx.a does not contain _tx_initialize_low_level and the timer interrupt, -because both depend on the board; the application provides them (section 4). +The build produces the library tx.a, which the application links. tx.a does +not contain _tx_initialize_low_level and the timer interrupt, because both +depend on the board; the application provides them (section 4). inc/tx_port.h holds the definitions for the ThreadX common sources and the application, including the settings that tx_user.h or the command line may -override. src/tx_port_tricore.h holds the definitions that only the port -sources use: the CSA layout, the initial thread context and the core -registers. +override. src/tx_port_tricore.h holds the internal definitions of the port. 3. Demonstration System -After tx.a is built, run in example_build/aurix_lite_kit_v2: +In example_build, run: - AURIX_ILLD_DIR=/path/to/Libraries ./build_threadx_sample.sh + ./build_threadx_sample.sh -This builds sample_threadx.elf for the TC375 Lite Kit from: +This builds tx.a and sample_threadx.elf for the TC375 Lite Kit from: - sample_threadx.c samples/demo_threadx.c without main() and with - the event trace start (section 8) - tx_initialize_low_level.c low-level initialisation and timer interrupt - Cpu0_Main.c CPU0 entry, calls tx_kernel_enter (Infineon) - Cpu1_Main.c, Cpu2_Main.c CPU1 and CPU2 entry, idle (Infineon) - Ifx_Cfg_Trap.h iLLD trap hook for the ThreadX system call - Ifx_Cfg.h clock configuration (Infineon) - Ifx_Cfg_Ssw.c/.h iLLD start-up configuration (Infineon) - Ifx_Cfg_SswBmhd.c boot mode headers (Infineon) - Lcf_Gnuc_Tricore_Tc.lsl linker script (Infineon, with __TX_FREE_MEM) + sample_threadx.c samples/demo_threadx.c with the event trace + start (section 8) + tx_initialize_low_level.c low-level initialisation, trap vector table + with the ThreadX system call and timer + interrupt + sample_threadx.ld memory description of CPU0 of the TC375 -and the iLLD start-up code and drivers listed in build_threadx_sample.sh. +The start-up code is crt0-tc38xx.o of the AURIX GCC. The AURIX GCC has no +TC37x device; -mcpu=tc38xx selects the same TC1.6.2 core and start-up code +that applies to the TC375 unchanged. sample_threadx.ld, given with -T, +replaces the TC38x memory description of the compiler. The start-up code is +located at 0x80000000, the cached address of 0xA0000000, at which the boot +mode header of the board starts CPU0. The build produces no boot mode header. -The files marked (Infineon) are Copyright (C) Infineon Technologies AG and -are licensed under the Boost Software License 1.0, as stated in their -headers, not under the MIT License of ThreadX. They are adapted for the -ThreadX demonstration. The iLLD itself is not part of this repository and -is subject to its own Infineon license. +The clock system keeps its reset state: the system runs from the back-up +clock of 100 MHz, and the caches stay disabled. CPU1 and CPU2 stay halted. 4. System Initialization -The iLLD start-up code initialises each CPU and calls core0_main to -core2_main. The linker script places the code and data of Cpu_Main.c in -the memories of CPU. core0_main disables the CPU0 and safety watchdogs, -waits until all CPUs have started and calls tx_kernel_enter. Interrupts stay -disabled from reset until _tx_thread_schedule starts the first thread. +main calls tx_kernel_enter. Interrupts stay disabled from reset until +_tx_thread_schedule starts the first thread. The port clears PSW.IS at the +start of _tx_initialize_kernel_enter (TX_PORT_SPECIFIC_PRE_INITIALIZATION), +so traps and interrupts switch to the interrupt stack. _tx_initialize_low_level: - - sets the first unused memory to __TX_FREE_MEM, which the linker script - defines after the heap in the data RAM of CPU0; the memory up to - __USTACK0_END is free for tx_application_define, + - sets the first unused memory to __TX_FREE_MEM, which sample_threadx.ld + defines after the CSAs; the remaining data RAM of CPU0 is free for + tx_application_define, + - loads BTV with _tx_trap_table and BIV with __INTTAB_CPU0, the vector + table of sample_threadx.ld; it clears the CPU0 ENDINIT bit for both, - sets up the ThreadX timer (section 7), - - sets up the dispatch interrupt (section 5). + - sets up the dispatch interrupt: TX_PORT_TRICORE_DISPATCH_SRC for CPU0 + with TX_PORT_TRICORE_DISPATCH_PRIORITY, enabled (section 5). 5. Thread Scheduling -ThreadX enters the scheduler through syscall 0. The iLLD system call trap -calls the hook IFX_CFG_CPU_TRAP_SYSCALL_CPU0_HOOK in Ifx_Cfg_Trap.h, which -shall call _tx_thread_syscall_handler directly. +ThreadX enters the scheduler through system call +TX_PORT_TRICORE_SYSCALL_ID_SCHEDULE. The class 6 trap entry shall save the +lower context with SVLCX and call _tx_thread_syscall_handler with the trap +identification number. Any other number goes to tx_port_tricore_syscall_hook, +which runs like an interrupt handler; its weak default stops the CPU. An interrupt or trap handler that makes another thread ready requests the -dispatch interrupt _tx_thread_dispatch_isr, a software request on -TX_PORT_TRICORE_DISPATCH_SRC (SRC_GPSR_GPSR0_SR0 by default) at -TX_PORT_TRICORE_DISPATCH_PRIORITY (1 by default). It switches threads once no -interrupt of a higher priority is active. +dispatch interrupt _tx_thread_dispatch_isr, a software request on the SRC at +TX_PORT_TRICORE_DISPATCH_SRC_ADDRESS (SRC_GPSR00 of the TC3xx, 0xF0038990, by +default) at TX_PORT_TRICORE_DISPATCH_PRIORITY (1 by default). 6. Thread Context -A thread's context is its CSA chain. tx_thread_csa (TX_THREAD_EXTENSION_0) -holds the link to the chain of a suspended thread: - - lower context saved by SVLCX in the iLLD interrupt or trap entry; - A11 holds the resume address - upper context saved on entry to the system call or the dispatch - interrupt; A10 and PSW of the thread - call contexts one upper context for each call level of the thread - -The context save walks TX_PORT_TRICORE_SYSCALL_CALL_DEPTH or -TX_PORT_TRICORE_DISPATCH_CALL_DEPTH links back from the handler -(src/tx_port_tricore.h). It copies A10 of the upper context to -tx_thread_stack_ptr for ThreadX stack checking. The thread stack holds only -local data. - -_tx_thread_stack_build gives a new thread two CSAs, all other words 0: - - lower context A11 = entry function, PCXI.PIE = 1, PCXI.UL = 1 and - the link to the upper context - upper context A10 = stack end, aligned to 8 bytes; PSW.IO = 2, - PRS 0, call depth counting disabled; no link - -The scheduler restores both like a suspended thread, so the thread starts at -its entry function with interrupts enabled. - -The FPU state is part of the CSAs, so threads use the FPU without setup. +A thread's context is its CSA chain; the port keeps the link to it in +tx_thread_csa (TX_THREAD_EXTENSION_0). The thread stack holds only local +data. A new thread starts at its entry function in supervisor mode with +interrupts enabled. The FPU state is part of the CSAs, so threads use the +FPU without setup. CSA budget: a suspended thread holds one CSA per call level plus two; each active interrupt or trap holds two plus one per call level. ThreadX stack -checking does not cover the CSAs. The CSA area of CPU0 (LCF_CSA0_SIZE) shall -hold the chains of all threads plus the deepest interrupt nesting, up to LCX -as set by Ifx_Ssw_initCSA. If the CSAs for a new thread would reach LCX, -tx_thread_create or tx_thread_reset raises FCD. +checking does not cover the CSAs. The CSA area of CPU0 (__CSA_SIZE, 16 KiB, +in sample_threadx.ld) shall hold the chains of all threads plus the deepest +interrupt nesting, up to LCX as set by the start-up code. If the CSAs for a +new thread would reach LCX, tx_thread_create or tx_thread_reset raises FCD. 7. Timer and Interrupt Handling -The ThreadX timer uses STM0 compare 0. _tx_initialize_low_level derives the -period from IfxStm_getFrequency and TX_TIMER_TICKS_PER_SECOND (1000 by -default). TimerInterruptHandler (IFX_INTERRUPT, priority -TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY, 2 by default) clears the compare -flag, sets the next compare one period after the previous one and calls -_tx_timer_interrupt. If STM has already passed that value, for example after -a debugger halt, the next compare is one period from now and the ticks in +The ThreadX timer uses STM0 compare 0 with TX_TIMER_TICKS_PER_SECOND (1000 +by default) ticks per second. The timer interrupt has the priority +TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY (2 by default). If STM has passed +the next compare value, for example after a debugger halt, the ticks in between are lost. TX_DISABLE clears ICR.IE by default. With TX_PORT_USE_CCPN defined, it @@ -152,38 +114,35 @@ raises ICR.CCPN to TX_PORT_CCPN (31 by default) instead and never lowers it; interrupts above TX_PORT_CCPN stay enabled in ThreadX critical sections and shall not call ThreadX services. TX_RESTORE restores the previous ICR. -An ISR that calls ThreadX services is a plain IFX_INTERRUPT function on CPU0 -with a priority above TX_PORT_TRICORE_DISPATCH_PRIORITY and, with +An ISR that calls ThreadX services is a plain interrupt handler on CPU0 with +a priority above TX_PORT_TRICORE_DISPATCH_PRIORITY and, with TX_PORT_USE_CCPN, not above TX_PORT_CCPN. _tx_thread_context_save and _tx_thread_context_restore have no effect on this port. +TX_PORT_TRICORE_INTERRUPT(isr, priority) in tx_port.h defines such a handler +and places its vector table entry in the section .intvec_tc0_. +The linker script shall locate this section at BIV + 32 * priority; +sample_threadx.ld does so for the priorities 1 to 15. Interrupts and traps taken from a thread switch to the CPU0 interrupt stack -(LCF_ISTACK0_SIZE, 1 KiB). It holds the local data of all nested handlers, -including the scheduler's idle wait, so thread stacks need no interrupt -reserve. - -IFX_USE_SW_MANAGED_INT shall not be defined: IFX_INTERRUPT then creates no -vector table entry, and the iLLD dispatcher adds a call level that -TX_PORT_TRICORE_DISPATCH_CALL_DEPTH does not count. +(__ISTACK_SIZE, 4 KiB, in sample_threadx.ld). It holds the local data of all +nested handlers, including the scheduler's idle wait, so thread stacks need +no interrupt reserve. 8. Event Trace With TX_ENABLE_EVENT_TRACE, the application calls tx_trace_enable with its trace buffer, at the earliest at the start of tx_application_define, because -kernel initialisation resets the trace. The demonstration does so with a -4000-byte buffer and 30 registry entries. The time stamp is STM0_TIM0 -(TX_TRACE_TIME_SOURCE in tx_port.h). +kernel initialisation resets the trace. The time stamp is the lower word of +STM0 (TX_TRACE_TIME_SOURCE in tx_port.h). 9. Execution Profile and Low Power For TX_EXECUTION_PROFILE_ENABLE and TX_LOW_POWER the port implements only the -callouts. The regression configurations execution_profile_build and -low_power_build (test/tx/cmake/tricore_tc1_6_2) show only that the callouts -do not disturb the kernel: no test reads the measured times, and none of -TX_LOW_POWER_TIMER_SETUP, TX_LOW_POWER_TICKLESS and TX_LOW_POWER_USER_* is -defined. +callouts. The regression tests show only that the callouts do not disturb +the kernel. TX_LOW_POWER_TIMER_SETUP, TX_LOW_POWER_TICKLESS and +TX_LOW_POWER_USER_* are not defined. 10. Improving Performance diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_port_tricore.h b/ports/tricore_tc1_6_2/gnu/src/tx_port_tricore.h index 2a60fd7bc..ff0a8e7c2 100644 --- a/ports/tricore_tc1_6_2/gnu/src/tx_port_tricore.h +++ b/ports/tricore_tc1_6_2/gnu/src/tx_port_tricore.h @@ -18,8 +18,6 @@ #ifndef TX_PORT_TRICORE_H #define TX_PORT_TRICORE_H -#include "IfxCpu_bf.h" - /* TriCore core registers. */ @@ -27,6 +25,12 @@ #define TX_PORT_TRICORE_CSFR_FCX 0xFE38 #define TX_PORT_TRICORE_CSFR_LCX 0xFE3C +#define TX_PORT_TRICORE_PSW_CDC_MSK 0x7FUL /* Call depth counter, bits 6:0 */ +#define TX_PORT_TRICORE_PSW_CDE_OFF 7 /* Call depth count enable */ +#define TX_PORT_TRICORE_PSW_IO_OFF 10 /* I/O privilege level */ +#define TX_PORT_TRICORE_PCXI_UL_OFF 20 /* 1: link to an upper context */ +#define TX_PORT_TRICORE_PCXI_PIE_OFF 21 /* Previous interrupt enable */ + /* Context save areas (CSAs). A link word holds the segment of a CSA in bits 19:16 and its offset, divided by 64, in bits 15:0. */ @@ -56,12 +60,12 @@ /* Supervisor mode, protection register set 0. PSW.CDC = 0x7F disables call depth counting. */ -#define TX_PORT_TRICORE_CSA_INITIAL_SYSTEM_PSW ((TX_PORT_TRICORE_PSW_IO_SUPERVISOR << IFX_CPU_PSW_IO_OFF) | \ - (1UL << IFX_CPU_PSW_CDE_OFF) | \ - ((UINT) IFX_CPU_PSW_CDC_MSK << IFX_CPU_PSW_CDC_OFF)) +#define TX_PORT_TRICORE_CSA_INITIAL_SYSTEM_PSW ((TX_PORT_TRICORE_PSW_IO_SUPERVISOR << TX_PORT_TRICORE_PSW_IO_OFF) | \ + (1UL << TX_PORT_TRICORE_PSW_CDE_OFF) | \ + TX_PORT_TRICORE_PSW_CDC_MSK) /* PCXI.UL = 1: links to an upper context. */ -#define TX_PORT_TRICORE_CSA_INITIAL_LOWER_PCXI ((1UL << IFX_CPU_PCXI_UL_OFF) | (1UL << IFX_CPU_PCXI_PIE_OFF)) -#define TX_PORT_TRICORE_CSA_INITIAL_UPPER_PCXI (1UL << IFX_CPU_PCXI_PIE_OFF) +#define TX_PORT_TRICORE_CSA_INITIAL_LOWER_PCXI ((1UL << TX_PORT_TRICORE_PCXI_UL_OFF) | (1UL << TX_PORT_TRICORE_PCXI_PIE_OFF)) +#define TX_PORT_TRICORE_CSA_INITIAL_UPPER_PCXI (1UL << TX_PORT_TRICORE_PCXI_PIE_OFF) #define TX_PORT_TRICORE_STACK_ALIGNMENT 8U diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_thread_schedule.c b/ports/tricore_tc1_6_2/gnu/src/tx_thread_schedule.c index 1668c1066..9b52f431b 100755 --- a/ports/tricore_tc1_6_2/gnu/src/tx_thread_schedule.c +++ b/ports/tricore_tc1_6_2/gnu/src/tx_thread_schedule.c @@ -102,9 +102,9 @@ VOID _tx_thread_schedule(VOID) interrupts are enabled; a thread it makes ready starts through the dispatch interrupt, and the system call below is not reached. */ _tx_thread_preempt_disable = 0; - __enable(); + _enable(); - __syscall(TX_PORT_TRICORE_SYSCALL_ID); + __syscall(TX_PORT_TRICORE_SYSCALL_ID_SCHEDULE); while(TX_TRUE) { @@ -135,7 +135,7 @@ static VOID __attribute__( ( noinline ) ) _tx_thread_csa_save(UINT call_depth) UINT * upper_csa_ptr; UINT lower_csa; - __dsync(); + _dsync(); csa_ptr = _tx_thread_decode_link_word(__mfcr(TX_PORT_TRICORE_CSFR_PCXI)); for (UINT i = 0U; i < (call_depth - 1U); i++) @@ -156,7 +156,7 @@ static VOID __attribute__( ( noinline ) ) _tx_thread_csa_restore(UINT call_depth { UINT * csa_ptr; - __dsync(); + _dsync(); csa_ptr = _tx_thread_decode_link_word(__mfcr(TX_PORT_TRICORE_CSFR_PCXI)); for (UINT i = 0U; i < (call_depth - 1U); i++) @@ -183,9 +183,9 @@ static VOID __attribute__( ( noinline ) ) _tx_ts_handler(UINT call_depth) } #if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) - __disable(); + _disable(); _tx_execution_thread_exit(); - __enable(); + _enable(); #endif _tx_thread_csa_save(call_depth); @@ -200,8 +200,8 @@ static VOID __attribute__( ( noinline ) ) _tx_ts_handler(UINT call_depth) masks interrupts through ICR.IE. */ while (TX_TRUE) { - __disable(); - __nop(); + _disable(); + _nop(); next_thread = _tx_thread_execute_ptr; if (next_thread != TX_NULL) { @@ -212,8 +212,8 @@ static VOID __attribute__( ( noinline ) ) _tx_ts_handler(UINT call_depth) tx_low_power_enter(); tx_low_power_exit(); #endif - __enable(); - __nop(); + _enable(); + _nop(); } #if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) @@ -222,7 +222,7 @@ static VOID __attribute__( ( noinline ) ) _tx_ts_handler(UINT call_depth) /* Interrupts stay disabled until the return to next_thread, so the switch to next_thread satisfies every pending dispatch request. */ - IfxSrc_clearRequest(&TX_PORT_TRICORE_DISPATCH_SRC); + TX_PORT_TRICORE_DISPATCH_SRC |= (unsigned int) TX_PORT_TRICORE_SRC_CLRR_MSK; next_thread->tx_thread_run_count++; _tx_timer_time_slice = next_thread->tx_thread_time_slice; @@ -240,11 +240,24 @@ static VOID __attribute__( ( noinline ) ) _tx_ts_handler(UINT call_depth) +/* An unsupported system call number is an error. */ +VOID __attribute__( ( weak ) ) tx_port_tricore_syscall_hook(UINT id) +{ + (VOID) id; + + _disable(); + _debug(); + while (TX_TRUE) + { + } +} + + VOID _tx_thread_syscall_handler(UCHAR id ) { switch(id) { - case TX_PORT_TRICORE_SYSCALL_ID: + case TX_PORT_TRICORE_SYSCALL_ID_SCHEDULE: /* The dispatch interrupt shall not interrupt the scheduler. RFE restores the CCPN of the thread that the trap returns to. */ __set_ccpn_value(TX_PORT_TRICORE_DISPATCH_PRIORITY); @@ -253,13 +266,14 @@ VOID _tx_thread_syscall_handler(UCHAR id ) break; default: + tx_port_tricore_syscall_hook((UINT) id); break; } } -IFX_INTERRUPT(_tx_thread_dispatch_isr, 0, TX_PORT_TRICORE_DISPATCH_PRIORITY) +TX_PORT_TRICORE_INTERRUPT(_tx_thread_dispatch_isr, TX_PORT_TRICORE_DISPATCH_PRIORITY) { /* A thread that has disabled preemption keeps the CPU. It enters the scheduler through the system call once it enables preemption again. */ diff --git a/ports/tricore_tc1_6_2/gnu/src/tx_thread_stack_build.c b/ports/tricore_tc1_6_2/gnu/src/tx_thread_stack_build.c index 4ffa16fd4..333007cbc 100755 --- a/ports/tricore_tc1_6_2/gnu/src/tx_thread_stack_build.c +++ b/ports/tricore_tc1_6_2/gnu/src/tx_thread_stack_build.c @@ -98,7 +98,7 @@ VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) TX_DISABLE - __dsync(); + _dsync(); /* The CSA that LCX points to and the CSAs after it are the reserve of the free context list depletion trap (FCD). The thread shall not @@ -121,7 +121,7 @@ VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) /* Remove the two CSAs from the free CSA list by setting FCX to the link word of the second CSA. */ __mtcr(TX_PORT_TRICORE_CSFR_FCX, second_csa_ptr[ TX_PORT_TRICORE_CSA_PCXI_LINK_WORD ] & TX_PORT_TRICORE_CSA_LINK_MASK); - __isync(); + _isync(); } else { @@ -129,8 +129,8 @@ VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID)) /* The first SVLCX takes the first CSA. The second SVLCX takes the CSA that LCX points to and raises FCD, or raises FCU if the list ends at the first CSA. */ - __svlcx(); - __svlcx(); + _svlcx(); + _svlcx(); while (TX_TRUE) { @@ -182,10 +182,10 @@ VOID _tx_thread_csa_release(TX_THREAD *thread_ptr) } TX_DISABLE - __dsync(); + _dsync(); csa_ptr[TX_PORT_TRICORE_CSA_PCXI_LINK_WORD] = __mfcr(TX_PORT_TRICORE_CSFR_FCX); __mtcr(TX_PORT_TRICORE_CSFR_FCX, head_csa_link_word); - __isync(); + _isync(); TX_RESTORE thread_ptr -> tx_thread_csa = 0; From 96260ced02c80291a9edba6c156a33734d4b2e20 Mon Sep 17 00:00:00 2001 From: Andreas Neubauer Date: Thu, 12 Nov 2026 10:34:51 +0100 Subject: [PATCH 3/4] Added the ThreadX regression test for the TriCore TC1.6.2 port The test runs the regression suite on the TC375 Lite Kit as one image and reports over the UART. It builds on the example of the port. --- test/tx/cmake/tricore_tc1_6_2/.gitignore | 2 + test/tx/cmake/tricore_tc1_6_2/CMakeLists.txt | 97 ++++++++++ test/tx/cmake/tricore_tc1_6_2/README.md | 97 ++++++++++ .../cmake/tricore_tc1_6_2/bsp/CMakeLists.txt | 41 ++++ test/tx/cmake/tricore_tc1_6_2/bsp/main.c | 182 ++++++++++++++++++ .../cmake/tricore_tc1_6_2/bsp/regression.ld | 36 ++++ .../bsp/tx_initialize_low_level.patch | 62 ++++++ .../tricore_tc1_6_2/regression/CMakeLists.txt | 75 ++++++++ .../regression/testcontrol.patch | 20 ++ test/tx/cmake/tricore_tc1_6_2/run.sh | 87 +++++++++ 10 files changed, 699 insertions(+) create mode 100644 test/tx/cmake/tricore_tc1_6_2/.gitignore create mode 100644 test/tx/cmake/tricore_tc1_6_2/CMakeLists.txt create mode 100644 test/tx/cmake/tricore_tc1_6_2/README.md create mode 100644 test/tx/cmake/tricore_tc1_6_2/bsp/CMakeLists.txt create mode 100644 test/tx/cmake/tricore_tc1_6_2/bsp/main.c create mode 100644 test/tx/cmake/tricore_tc1_6_2/bsp/regression.ld create mode 100644 test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.patch create mode 100644 test/tx/cmake/tricore_tc1_6_2/regression/CMakeLists.txt create mode 100644 test/tx/cmake/tricore_tc1_6_2/regression/testcontrol.patch create mode 100755 test/tx/cmake/tricore_tc1_6_2/run.sh diff --git a/test/tx/cmake/tricore_tc1_6_2/.gitignore b/test/tx/cmake/tricore_tc1_6_2/.gitignore new file mode 100644 index 000000000..9ab2398c7 --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/.gitignore @@ -0,0 +1,2 @@ +build/ +logs/ diff --git a/test/tx/cmake/tricore_tc1_6_2/CMakeLists.txt b/test/tx/cmake/tricore_tc1_6_2/CMakeLists.txt new file mode 100644 index 000000000..64ca62116 --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/CMakeLists.txt @@ -0,0 +1,97 @@ +############################################################################## +# Copyright (c) 2026 safecubed GmbH +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + +# Portions of this file were generated with AI assistance. + +cmake_minimum_required(VERSION 3.13 FATAL_ERROR) +cmake_policy(SET CMP0054 NEW) +cmake_policy(SET CMP0057 NEW) + +# ThreadX regression test for the TriCore TC1.6.2 port on the TC375 Lite Kit. +# All tests run in one image, regression.elf, which a debugger programs into +# the board. The test output goes to the UART of the board. See README.md. + +project(threadx_tricore_tc1_6_2_test LANGUAGES C) + +# Set build configurations +set(BUILD_CONFIGURATIONS default_build disable_notify_callbacks_build + stack_checking_build stack_checking_rand_fill_build + trace_build misra_build misra_trace_build + disable_inline_build port_use_ccpn_build + timer_process_in_isr_build not_interruptable_build + execution_profile_build low_power_build) +set(CMAKE_CONFIGURATION_TYPES + ${BUILD_CONFIGURATIONS} + CACHE STRING "list of supported configuration types" FORCE) +set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + ${CMAKE_CONFIGURATION_TYPES}) +list(GET CMAKE_CONFIGURATION_TYPES 0 BUILD_TYPE) +if((NOT CMAKE_BUILD_TYPE) OR (NOT ("${CMAKE_BUILD_TYPE}" IN_LIST + CMAKE_CONFIGURATION_TYPES))) + set(CMAKE_BUILD_TYPE + "${BUILD_TYPE}" + CACHE STRING "Build Type of the project" FORCE) +endif() + +message(STATUS "Build type: ${CMAKE_BUILD_TYPE}") +message(STATUS "Using toolchain file: ${CMAKE_TOOLCHAIN_FILE}.") +message(STATUS "THREADX_ARCH: ${THREADX_ARCH}") + +# The configurations of test/tx/cmake/CMakeLists.txt. +set(default_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32) +set(disable_notify_callbacks_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_DISABLE_NOTIFY_CALLBACKS) +set(stack_checking_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_ENABLE_STACK_CHECKING) +set(stack_checking_rand_fill_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_ENABLE_STACK_CHECKING -DTX_ENABLE_RANDOM_NUMBER_STACK_FILLING) +set(trace_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_ENABLE_EVENT_TRACE) +set(misra_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_MISRA_ENABLE) +set(misra_trace_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_MISRA_ENABLE -DTX_ENABLE_EVENT_TRACE) + +# Options with code of their own in the port. +set(disable_inline_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_DISABLE_INLINE) +set(port_use_ccpn_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_PORT_USE_CCPN) +set(timer_process_in_isr_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_TIMER_PROCESS_IN_ISR) +set(not_interruptable_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_NOT_INTERRUPTABLE) +set(execution_profile_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_EXECUTION_PROFILE_ENABLE) +set(low_power_build -DTX_QUEUE_MESSAGE_MAX_SIZE=32 -DTX_LOW_POWER) + +add_compile_options( + -O0 + -g3 + -fdiagnostics-color + -DTX_REGRESSION_TEST + -DTEST_STACK_SIZE_PRINTF=4096 + -DEXTERNAL_EXIT + ${${CMAKE_BUILD_TYPE}} +) + +add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../../../.. threadx) +add_subdirectory(bsp) +add_subdirectory(regression) + +target_compile_options( + threadx + PRIVATE -Werror + -Wall + -Wextra + -fmessage-length=0 +) + +# tx_api.h includes tx_execution_profile.h when the option is set. +if("-DTX_EXECUTION_PROFILE_ENABLE" IN_LIST ${CMAKE_BUILD_TYPE}) + target_include_directories(threadx PUBLIC + ${CMAKE_CURRENT_LIST_DIR}/../../../../utility/execution_profile_kit) +endif() + +# With TX_NOT_INTERRUPTABLE, the cleanup functions of the common sources do +# not use their suspension_sequence parameter. +if("-DTX_NOT_INTERRUPTABLE" IN_LIST ${CMAKE_BUILD_TYPE}) + target_compile_options(threadx PRIVATE -Wno-unused-parameter) +endif() diff --git a/test/tx/cmake/tricore_tc1_6_2/README.md b/test/tx/cmake/tricore_tc1_6_2/README.md new file mode 100644 index 000000000..1182389e0 --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/README.md @@ -0,0 +1,97 @@ +# ThreadX regression test on the TriCore TC1.6.2 port + +This directory builds the ThreadX regression suite in `test/tx/regression` for +the AURIX TC375 Lite Kit. All tests run in one image: `testcontrol.c` is built +without `CTEST`, so its control thread runs every test in `test_control_tests[]` +one after the other. The test output goes to the UART of the Lite Kit. + +## Requirements + +- AURIX TC375 Lite Kit (TC375TP) +- AURIX GCC with `tricore-elf-gcc` on `PATH` +- CMake 3.13 or later and Ninja +- A terminal on the virtual COM port of the Lite Kit: 115200 baud + +## Build + +```bash +./run.sh build # default_build +./run.sh build trace_build # one or more configurations +./run.sh build all # every configuration +``` + +The configurations are those of `test/tx/cmake/CMakeLists.txt`: +`default_build`, `disable_notify_callbacks_build`, `stack_checking_build`, +`stack_checking_rand_fill_build`, `trace_build`, `misra_build` and +`misra_trace_build`. Six more configurations each set one option that has +code of its own in the port: `disable_inline_build` (`TX_DISABLE_INLINE`), +`port_use_ccpn_build` (`TX_PORT_USE_CCPN`), `timer_process_in_isr_build` +(`TX_TIMER_PROCESS_IN_ISR`), `not_interruptable_build` +(`TX_NOT_INTERRUPTABLE`), `execution_profile_build` +(`TX_EXECUTION_PROFILE_ENABLE`, with `utility/execution_profile_kit`) and +`low_power_build` (`TX_LOW_POWER`, with `utility/low_power`). Each one +builds into `build//regression/`: +`regression.elf`, `regression.map` and `regression.hex`. + +For `TX_EXECUTION_PROFILE_ENABLE` and `TX_LOW_POWER`, the port implements only +the callouts, and the regression test does not test their function. In +`execution_profile_build`, the scheduler calls `_tx_execution_thread_enter()` +and `_tx_execution_thread_exit()`, and the timer interrupt calls +`_tx_execution_isr_enter()` and `_tx_execution_isr_exit()`. No test reads +the measured times. In `low_power_build`, the idle loop of the scheduler calls +`tx_low_power_enter()` and `tx_low_power_exit()`. The build defines none of +the `TX_LOW_POWER_TIMER_SETUP`, `TX_LOW_POWER_TICKLESS` and +`TX_LOW_POWER_USER_*` macros, so the CPU does not enter a low-power mode and +no timer ticks are adjusted. Both configurations show only that the callouts +do not disturb the kernel. + +## Board support + +The test runs on the example of the port in +`ports/tricore_tc1_6_2/gnu/example_build`, without a driver library. The +start-up code is `crt0-tc38xx.o` of the compiler, and the system runs from +the back-up clock of 100 MHz. `bsp/` adds: + +- `tx_initialize_low_level.patch`, applied to a copy of the example's + `tx_initialize_low_level.c`, calls `test_interrupt_dispatch()` before + `_tx_timer_interrupt()`, as `test/tx/cmake` does for the Linux port. It + also offsets each timer compare by a pseudo-random 0 to 255 STM ticks. + Without the offset, the timer can stay in phase with a test loop that + waits for the interrupt, and the test never ends. +- `main.c` replaces `main()` of the example's `sample_threadx.c`, which the + test does not build. It clears the test memory, initialises ASCLIN0 + (P14.0, 115200 baud from the fast ASCLIN clock of 100 MHz), sends `printf` + output to it through `write()`, provides `external_exit()` and starts the + test control. +- `regression.ld`, given with `-T` after the example's `sample_threadx.ld`, + places the section `.bss_cpu1` in DSPR1. + +The build further changes the regression suite: + +- `regression/testcontrol.patch`, applied to a copy of `testcontrol.c`, reduces + `test_control_memory` to 0x6000 bytes and `tests_memory` to 0x1C000 bytes + and places both in DSPR1 (`.bss_cpu1` of `bsp/regression.ld`). The original 0x60000 bytes each do + not fit the RAM of the TC375. The largest test uses about 94 KiB. +- `testcontrol.c` is compiled with `EXTERNAL_EXIT` and with `main` renamed to + `tx_regression_main`. +- `threadx_initialize_kernel_setup_test.c` is not built. It has its own `main` + and is not part of `test_control_tests[]`. + +The CSA area of CPU0 (`__CSA_SIZE`, 16 KiB, in `sample_threadx.ld`) holds +the CSA chains of the 25 threads of the multi-level preemption threshold +test. With 8 KiB, that test raises the free context list depletion trap +(FCD); 12 KiB suffice. + +## Expected output + +The run takes about half a minute. Each test prints one line, and the run +ends with: + +``` +**** Testing Complete **** +**** Test Summary: Tests Passed: 97 Tests Failed: 0 System Errors: 0 +**** REGRESSION EXIT CODE 0 **** +``` + +`test_control_return()` prints `Running Queue Max Message Size Test (32)` +after every test. The line belongs to the test control, not to a failure. diff --git a/test/tx/cmake/tricore_tc1_6_2/bsp/CMakeLists.txt b/test/tx/cmake/tricore_tc1_6_2/bsp/CMakeLists.txt new file mode 100644 index 000000000..818d68611 --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/bsp/CMakeLists.txt @@ -0,0 +1,41 @@ +############################################################################## +# Copyright (c) 2026 safecubed GmbH +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + +# Portions of this file were generated with AI assistance. + +cmake_minimum_required(VERSION 3.13 FATAL_ERROR) + +# BSP library for the regression test on the TC375 Lite Kit, based on the +# example of the port: its low-level initialisation with the trap vector +# table and the timer interrupt, and main.c, which sends printf output to the +# UART. The start-up code is crt0-tc38xx.o of the compiler. + +project(aurix_lite_kit_v2_bsp LANGUAGES C) + +set(BSP_DIR ${CMAKE_CURRENT_LIST_DIR}) +set(EXAMPLE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../../ports/tricore_tc1_6_2/gnu/example_build) + +# The example's timer interrupt with the call of test_interrupt_dispatch(). +set(LOW_LEVEL_SOURCE ${CMAKE_CURRENT_BINARY_DIR}/tx_initialize_low_level.c) +add_custom_command( + OUTPUT ${LOW_LEVEL_SOURCE} + COMMAND patch --quiet --output=${LOW_LEVEL_SOURCE} + ${EXAMPLE_DIR}/tx_initialize_low_level.c + ${BSP_DIR}/tx_initialize_low_level.patch + DEPENDS ${EXAMPLE_DIR}/tx_initialize_low_level.c + ${BSP_DIR}/tx_initialize_low_level.patch + VERBATIM) + +add_library(aurix_lite_kit_v2_bsp + ${BSP_DIR}/main.c + ${LOW_LEVEL_SOURCE} +) +target_link_libraries(aurix_lite_kit_v2_bsp PUBLIC azrtos::threadx) diff --git a/test/tx/cmake/tricore_tc1_6_2/bsp/main.c b/test/tx/cmake/tricore_tc1_6_2/bsp/main.c new file mode 100644 index 000000000..faf232cd8 --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/bsp/main.c @@ -0,0 +1,182 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* Regression test start-up for CPU0 of the TC375 Lite Kit without a driver + library. The start-up code of the compiler calls main. printf output goes + polled to ASCLIN0 (P14.0, 115200 8N1), the virtual COM port of the Lite + Kit. + + The clock system keeps its reset state, so the fast ASCLIN clock is the + back-up clock of 100 MHz divided by SCU_CCUCON2.ASCLINFDIV (1 after + reset). */ + +#include +#include +#include +#include "tx_api.h" + + +/* CPU0 watchdog: ENDINIT protects ASCLIN0_CLC. */ +#define SCU_WDTCPU0_CON0 (*(volatile unsigned int *) 0xF003624CUL) +#define WDT_CON0_ENDINIT 0x00000001UL +#define WDT_CON0_LCK 0x00000002UL +#define WDT_CON0_PW_OFF 2 +#define WDT_CON0_PW_MSK 0x3FFFUL +#define WDT_CON0_REL_MSK 0xFFFF0000UL +#define WDT_CON0_PW_READ_INVERT 0x003FUL + +/* ASCLIN0. */ +#define ASCLIN0_CLC (*(volatile unsigned int *) 0xF0000600UL) +#define ASCLIN0_TXFIFOCON (*(volatile unsigned int *) 0xF000060CUL) +#define ASCLIN0_BITCON (*(volatile unsigned int *) 0xF0000614UL) +#define ASCLIN0_FRAMECON (*(volatile unsigned int *) 0xF0000618UL) +#define ASCLIN0_DATCON (*(volatile unsigned int *) 0xF000061CUL) +#define ASCLIN0_BRG (*(volatile unsigned int *) 0xF0000620UL) +#define ASCLIN0_TXDATA (*(volatile unsigned int *) 0xF0000644UL) +#define ASCLIN0_CSR (*(volatile unsigned int *) 0xF000064CUL) + +#define ASCLIN_CLC_DISS 0x00000002UL +#define ASCLIN_CSR_CLKSEL_FAST 0x00000002UL /* fASCLINF */ +#define ASCLIN_CSR_CON 0x80000000UL +#define ASCLIN_FRAMECON_STOP_1 (1UL << 9) +#define ASCLIN_FRAMECON_MODE_ASC (1UL << 16) +#define ASCLIN_DATCON_DATLEN_8 7UL +#define ASCLIN_TXFIFOCON_FLUSH 0x00000001UL +#define ASCLIN_TXFIFOCON_ENO 0x00000002UL +#define ASCLIN_TXFIFOCON_INW_1 (1UL << 6) +#define ASCLIN_TXFIFOCON_FILL_OFF 16 +#define ASCLIN_TXFIFOCON_FILL_MSK 0x1FUL +#define ASCLIN_TX_FIFO_SIZE 16U + +/* 115200 baud from fASCLINF = 100 MHz: no prescaler, 16 samples per bit + (6.25 MHz) and the fractional divider 75/4069, which gives 115200.3 baud. + The bit is sampled once, at sample 8. */ +#define ASCLIN_BITCON_115200 ((8UL << 24) | (15UL << 16) | 0UL) +#define ASCLIN_BRG_115200 ((75UL << 16) | 4069UL) + +/* P14.0: push-pull output of alternate function 2, ASCLIN0 ATX. */ +#define P14_IOCR0 (*(volatile unsigned int *) 0xF003AE10UL) +#define PORT_IOCR0_PC0_MSK 0x000000F8UL +#define PORT_IOCR0_PC0_ALT2_PP (0x12UL << 3) + + +void tx_regression_main(void); + + +/* Sets (endinit = WDT_CON0_ENDINIT) or clears (endinit = 0) the ENDINIT bit + of the CPU0 watchdog. */ +static void cpu0_endinit_write(unsigned int endinit) +{ + unsigned int con0; + unsigned int password; + + con0 = SCU_WDTCPU0_CON0; + password = (((con0 >> WDT_CON0_PW_OFF) & WDT_CON0_PW_MSK) ^ WDT_CON0_PW_READ_INVERT) << WDT_CON0_PW_OFF; + if ((con0 & WDT_CON0_LCK) != 0U) + { + SCU_WDTCPU0_CON0 = (con0 & WDT_CON0_REL_MSK) | password | WDT_CON0_ENDINIT; + } + SCU_WDTCPU0_CON0 = (con0 & WDT_CON0_REL_MSK) | password | WDT_CON0_LCK | endinit; + (void) SCU_WDTCPU0_CON0; +} + + +static void uart_init(void) +{ + /* Enable the module. */ + cpu0_endinit_write(0U); + ASCLIN0_CLC = 0U; + cpu0_endinit_write(WDT_CON0_ENDINIT); + while ((ASCLIN0_CLC & ASCLIN_CLC_DISS) != 0U) + { + } + + /* The kernel clock is off while the module is configured. */ + ASCLIN0_CSR = 0U; + while ((ASCLIN0_CSR & ASCLIN_CSR_CON) != 0U) + { + } + + ASCLIN0_FRAMECON = 0U; + ASCLIN0_BITCON = ASCLIN_BITCON_115200; + ASCLIN0_BRG = ASCLIN_BRG_115200; + ASCLIN0_DATCON = ASCLIN_DATCON_DATLEN_8; + ASCLIN0_FRAMECON = ASCLIN_FRAMECON_STOP_1 | ASCLIN_FRAMECON_MODE_ASC; + ASCLIN0_TXFIFOCON = ASCLIN_TXFIFOCON_INW_1 | ASCLIN_TXFIFOCON_ENO | ASCLIN_TXFIFOCON_FLUSH; + + P14_IOCR0 = (P14_IOCR0 & ~PORT_IOCR0_PC0_MSK) | PORT_IOCR0_PC0_ALT2_PP; + + ASCLIN0_CSR = ASCLIN_CSR_CLKSEL_FAST; + while ((ASCLIN0_CSR & ASCLIN_CSR_CON) == 0U) + { + } +} + + +static void uart_put(char c) +{ + while (((ASCLIN0_TXFIFOCON >> ASCLIN_TXFIFOCON_FILL_OFF) & ASCLIN_TXFIFOCON_FILL_MSK) >= (ASCLIN_TX_FIFO_SIZE - 1U)) + { + } + ASCLIN0_TXDATA = (unsigned char) c; +} + + +/* Replaces write() of libos, which forwards output to a virtual I/O host. */ +int write(int desc, void *buf, size_t len) +{ + const char *p = (const char *) buf; + size_t i; + + (void) desc; + for (i = 0; i < len; i++) + { + if (p[i] == '\n') + { + uart_put('\r'); + } + uart_put(p[i]); + } + return (int) len; +} + + +void external_exit(UINT code) +{ + printf("**** REGRESSION EXIT CODE %u ****\n", code); + while (1) + { + } +} + + +/* Start and end of the test memory in DSPR1, from regression.ld. The start-up + code clears only the sections of the default linker script. */ +extern unsigned char __bss_cpu1_start[]; +extern unsigned char __bss_cpu1_end[]; + + +int main(void) +{ + memset(__bss_cpu1_start, 0, (size_t) (__bss_cpu1_end - __bss_cpu1_start)); + + uart_init(); + setvbuf(stdout, NULL, _IONBF, 0); + printf("\n**** REGRESSION START ****\n"); + + tx_regression_main(); + + while (1) + { + } +} diff --git a/test/tx/cmake/tricore_tc1_6_2/bsp/regression.ld b/test/tx/cmake/tricore_tc1_6_2/bsp/regression.ld new file mode 100644 index 000000000..34a72dcde --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/bsp/regression.ld @@ -0,0 +1,36 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* Test memory of the regression test in DSPR1 of the TC375. The file is given + with -T after sample_threadx.ld of the example and augments the default + linker script of the AURIX GCC through INSERT. testcontrol.patch places + test_control_memory and tests_memory in the section .bss_cpu1; main() + clears it. */ + +MEMORY +{ + DSPR1 (w!xp): org = 0x60000000, len = 240K +} + +SECTIONS +{ + .bss_cpu1 (NOLOAD) : ALIGN(8) + { + __bss_cpu1_start = .; + *(.bss_cpu1) + . = ALIGN(8); + __bss_cpu1_end = .; + } > DSPR1 +} + +INSERT AFTER .csa diff --git a/test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.patch b/test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.patch new file mode 100644 index 000000000..12aaf4ee8 --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.patch @@ -0,0 +1,62 @@ +Test interrupt dispatch and timer jitter for the TC375 Lite Kit. + +The regression tests run their interrupt code from test_interrupt_dispatch(), +which the timer interrupt of the example calls before _tx_timer_interrupt(), +as test/tx/cmake does for the Linux port. + +Several tests loop until the timer interrupt arrives in a short window of the +loop. Without caches, the loop and the timer can stay in phase, and the +interrupt never arrives in that window. Each compare is therefore offset by a +pseudo-random 0 to 255 STM ticks; the mean tick period stays unchanged. + +--- a/ports/tricore_tc1_6_2/gnu/example_build/tx_initialize_low_level.c ++++ b/ports/tricore_tc1_6_2/gnu/example_build/tx_initialize_low_level.c +@@ -66,6 +66,7 @@ + + + VOID _tx_timer_interrupt(VOID); ++VOID test_interrupt_dispatch(VOID); + + #if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) + VOID _tx_execution_isr_enter(VOID); +@@ -82,6 +83,11 @@ + /* STM ticks per ThreadX timer tick. */ + static ULONG timer_period; + ++/* Pseudo-random offset of 0 to 255 STM ticks of the current compare. It ++ keeps the timer interrupt from staying in phase with a test loop. */ ++static ULONG timer_jitter; ++static ULONG timer_jitter_seed = 1U; ++ + + /* Sets (endinit = WDT_CON0_ENDINIT) or clears (endinit = 0) the ENDINIT bit + of the CPU0 watchdog. A password access unlocks CON0, the modify access +@@ -148,6 +154,7 @@ + + ULONG now; + ULONG next; ++ ULONG jitter; + + #if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) + _tx_execution_isr_enter(); +@@ -160,14 +167,19 @@ + next compare is one period from now and the ticks in between are lost. + Without this check, the next interrupt would occur only after the + 32-bit timer wraps. */ +- next = STM0_CMP0 + timer_period; ++ timer_jitter_seed = (timer_jitter_seed * 1664525UL) + 1013904223UL; ++ jitter = timer_jitter_seed >> 24; ++ next = STM0_CMP0 - timer_jitter + timer_period + jitter; + now = STM0_TIM0; + if ((LONG) (next - now) <= 0) + { + next = now + timer_period; ++ jitter = 0U; + } ++ timer_jitter = jitter; + STM0_CMP0 = next; + ++ test_interrupt_dispatch(); + _tx_timer_interrupt(); + + #if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) diff --git a/test/tx/cmake/tricore_tc1_6_2/regression/CMakeLists.txt b/test/tx/cmake/tricore_tc1_6_2/regression/CMakeLists.txt new file mode 100644 index 000000000..e8fd980fa --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/regression/CMakeLists.txt @@ -0,0 +1,75 @@ +############################################################################## +# Copyright (c) 2026 safecubed GmbH +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + +# Portions of this file were generated with AI assistance. + +cmake_minimum_required(VERSION 3.13 FATAL_ERROR) + +project(tricore_tc1_6_2_regression_test LANGUAGES C) + +set(SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../regression) +set(BSP_DIR ${CMAKE_CURRENT_LIST_DIR}/../bsp) +set(EXAMPLE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../../ports/tricore_tc1_6_2/gnu/example_build) + +# testcontrol.c runs every test of its table test_control_tests[] in one +# image, so every test file is linked. threadx_initialize_kernel_setup_test.c +# provides its own main() and is not part of the table. +file(GLOB regression_test_cases ${SOURCE_DIR}/threadx_*.c) +list(REMOVE_ITEM regression_test_cases + ${SOURCE_DIR}/threadx_initialize_kernel_setup_test.c) + +# testcontrol.patch reduces the test memory to fit the RAM of the TC375. +set(TESTCONTROL_SOURCE ${CMAKE_CURRENT_BINARY_DIR}/testcontrol.c) +add_custom_command( + OUTPUT ${TESTCONTROL_SOURCE} + COMMAND patch --quiet --output=${TESTCONTROL_SOURCE} + ${SOURCE_DIR}/testcontrol.c + ${CMAKE_CURRENT_LIST_DIR}/testcontrol.patch + DEPENDS ${SOURCE_DIR}/testcontrol.c + ${CMAKE_CURRENT_LIST_DIR}/testcontrol.patch + VERBATIM) +# Cpu0_Main.c of the BSP starts the test control. +set_source_files_properties(${TESTCONTROL_SOURCE} PROPERTIES + COMPILE_DEFINITIONS main=tx_regression_main) + +set(WEAK_DEFAULTS_SOURCE ${CMAKE_CURRENT_LIST_DIR}/../../../../shared/regression/testcontrol_weak_defaults.c) + +# The kernel and the port call into these utilities when the option is set. +set(UTILITY_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../../utility) +set(utility_sources) +if("-DTX_EXECUTION_PROFILE_ENABLE" IN_LIST ${CMAKE_BUILD_TYPE}) + list(APPEND utility_sources ${UTILITY_DIR}/execution_profile_kit/tx_execution_profile.c) +endif() +if("-DTX_LOW_POWER" IN_LIST ${CMAKE_BUILD_TYPE}) + list(APPEND utility_sources ${UTILITY_DIR}/low_power/tx_low_power.c) +endif() + +add_executable(regression + ${TESTCONTROL_SOURCE} + ${regression_test_cases} + ${WEAK_DEFAULTS_SOURCE} + ${utility_sources}) +target_include_directories(regression PRIVATE ${SOURCE_DIR}) +# The BSP overrides write() of libos, so the whole BSP library is linked. +target_link_libraries(regression PRIVATE + -Wl,--whole-archive aurix_lite_kit_v2_bsp -Wl,--no-whole-archive + azrtos::threadx) +target_link_options(regression PRIVATE + "SHELL:-T ${EXAMPLE_DIR}/sample_threadx.ld" + "SHELL:-T ${BSP_DIR}/regression.ld" + -Wl,-Map=${CMAKE_CURRENT_BINARY_DIR}/regression.map) +set_target_properties(regression PROPERTIES SUFFIX ".elf") + +add_custom_command(TARGET regression POST_BUILD + COMMAND ${OBJCOPY} -O ihex + $ ${CMAKE_CURRENT_BINARY_DIR}/regression.hex + COMMAND ${SIZE} $ + VERBATIM) diff --git a/test/tx/cmake/tricore_tc1_6_2/regression/testcontrol.patch b/test/tx/cmake/tricore_tc1_6_2/regression/testcontrol.patch new file mode 100644 index 000000000..a7d76cfdc --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/regression/testcontrol.patch @@ -0,0 +1,20 @@ +Test memory of testcontrol.c for the TC375 Lite Kit. + +The two arrays of 0x60000 bytes each do not fit the RAM of the TC375. The +largest test uses about 94 KiB of tests_memory, and the test control uses +three stacks of TEST_STACK_SIZE bytes from test_control_memory. Both arrays +go to DSPR1 (.bss_cpu1 in bsp/regression.ld). + +--- a/test/tx/regression/testcontrol.c ++++ b/test/tx/regression/testcontrol.c +@@ -118,8 +118,8 @@ + VOID (*test_isr_dispatch)(void); + + +-UCHAR test_control_memory[0x60000]; +-UCHAR tests_memory[0x60000]; ++UCHAR test_control_memory[0x6000] __attribute__((section(".bss_cpu1"))); ++UCHAR tests_memory[0x1C000] __attribute__((section(".bss_cpu1"))); + + /* Define the external reference for the preempt disable flag. */ + diff --git a/test/tx/cmake/tricore_tc1_6_2/run.sh b/test/tx/cmake/tricore_tc1_6_2/run.sh new file mode 100755 index 000000000..cdf5b6367 --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/run.sh @@ -0,0 +1,87 @@ +#!/bin/bash +############################################################################## +# Copyright (c) 2026 safecubed GmbH +# Copyright (c) 2026 Eclipse ThreadX contributors +# +# This program and the accompanying materials are made available under the +# terms of the MIT License which is available at +# https://opensource.org/licenses/MIT. +# +# SPDX-License-Identifier: MIT +############################################################################## + +# Portions of this file were generated with AI assistance. + +set -e + +# Regression test build runner for the TriCore TC1.6.2 port. +# Usage: run.sh build [all| ...] +# The AURIX GCC (tricore-elf-) shall be on PATH. The images run on the TC375 +# Lite Kit, so this script only builds them. See README.md for programming and running them. + +function help() { + echo "Usage: $0 build [all| ...]" + echo "" + echo "Available build configurations:" + for build in ${build_configurations[*]}; do + echo " $build" + done + exit 1 +} + +function validate() { + for build in ${build_configurations[*]}; do + if [ "$1" == "$build" ]; then + return + fi + done + help +} + +function generate() { + local build=$1 + cmake -B"build/${build}" -GNinja \ + -DCMAKE_TOOLCHAIN_FILE="${REPO_ROOT}/cmake/tricore_tc1_6_2.cmake" \ + -DCMAKE_BUILD_TYPE="${build}" \ + . +} + +function build() { + cmake --build "build/$1" +} + +# Determine repo root and script directory +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +REPO_ROOT="$(cd "${SCRIPT_DIR}/../../../.." && pwd)" +cd "$SCRIPT_DIR" + +# Parse build configurations from CMakeLists.txt +result=$(sed -n "/(BUILD_CONFIGURATIONS/,/)/p" CMakeLists.txt | sed ':label;N;s/\n/ /;b label' | grep -Pzo "[a-zA-Z0-9_]*build[a-zA-Z0-9_]*\s*" | tr -d '\0') +IFS=' ' +read -ra build_configurations <<< "$result" + +if [ $# -lt 1 ] || [ "$1" != "build" ]; then + help +fi +shift + +if [ "$#" == "0" ]; then + builds=${build_configurations[0]} +elif [ "$*" == "all" ]; then + builds=${build_configurations[@]} +else + for item in $*; do + validate "$item" + done + builds=$* +fi + +# A failing configuration does not stop the ones after it. The status is +# accumulated and returned. +build_status=0 +for item in $builds; do + echo "Building ${item}" + { generate "$item" && build "$item"; } || build_status=$? + echo "" +done +exit $build_status From 19ff7a3554ea9b8b352d851d949562ee1de8c0ae Mon Sep 17 00:00:00 2001 From: Andreas Neubauer Date: Tue, 17 Nov 2026 14:18:44 +0100 Subject: [PATCH 4/4] Added Windows build scripts to the TriCore TC1.6.2 example and test The regression BSP now contains its own tx_initialize_low_level.c, and testcontrol.c takes the size and placement of its test memories from TEST_CONTROL_MEMORY_SIZE, TESTS_MEMORY_SIZE and TEST_MEMORY_PLACEMENT, whose defaults leave other builds unchanged. The README of the test names the AURIX GCC version the tests ran with and its download link. The example and the regression test build without warnings with AURIX GCC 03_2026 on Linux and Windows. --- .../example_build/build_threadx_sample.bat | 57 ++++ ports/tricore_tc1_6_2/gnu/readme_threadx.txt | 4 + test/tx/cmake/tricore_tc1_6_2/README.md | 42 ++- .../cmake/tricore_tc1_6_2/bsp/CMakeLists.txt | 14 +- .../cmake/tricore_tc1_6_2/bsp/regression.ld | 6 +- .../bsp/tx_initialize_low_level.c | 266 ++++++++++++++++++ .../bsp/tx_initialize_low_level.patch | 62 ---- .../tricore_tc1_6_2/regression/CMakeLists.txt | 16 +- .../regression/testcontrol.patch | 20 -- test/tx/cmake/tricore_tc1_6_2/run.bat | 100 +++++++ test/tx/regression/testcontrol.c | 16 +- 11 files changed, 483 insertions(+), 120 deletions(-) create mode 100644 ports/tricore_tc1_6_2/gnu/example_build/build_threadx_sample.bat create mode 100644 test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.c delete mode 100644 test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.patch delete mode 100644 test/tx/cmake/tricore_tc1_6_2/regression/testcontrol.patch create mode 100644 test/tx/cmake/tricore_tc1_6_2/run.bat diff --git a/ports/tricore_tc1_6_2/gnu/example_build/build_threadx_sample.bat b/ports/tricore_tc1_6_2/gnu/example_build/build_threadx_sample.bat new file mode 100644 index 000000000..cefa7eb5e --- /dev/null +++ b/ports/tricore_tc1_6_2/gnu/example_build/build_threadx_sample.bat @@ -0,0 +1,57 @@ +@echo off +rem ########################################################################## +rem Copyright (c) 2026 safecubed GmbH +rem Copyright (c) 2026 Eclipse ThreadX contributors +rem +rem This program and the accompanying materials are made available under the +rem terms of the MIT License which is available at +rem https://opensource.org/licenses/MIT. +rem +rem SPDX-License-Identifier: MIT +rem ########################################################################## + +rem Portions of this file were generated with AI assistance. + +rem Builds the ThreadX library tx.a and sample_threadx.elf for the AURIX TC375 +rem Lite Kit without a driver library, as build_threadx_sample.sh does. The +rem start-up code is crt0-tc38xx.o of the AURIX GCC: the compiler has no TC37x +rem device, and the TC38x start-up code applies to the TC375 unchanged. +rem sample_threadx.ld replaces the memory description of the TC38x. +rem +rem CROSS_COMPILE selects the toolchain prefix. The default is the AURIX GCC +rem (tricore-elf-), which shall be on PATH. + +setlocal EnableExtensions +cd /d "%~dp0" + +if not defined CROSS_COMPILE set "CROSS_COMPILE=tricore-elf-" +set "CC=%CROSS_COMPILE%gcc" +rem tricore-elf-ar loads lib\bfd-plugins\libdep.a, which is no DLL. +set "AR=%CROSS_COMPILE%gcc-ar" + +set "THREADX_ROOT=..\..\..\.." +set "BUILD_DIR=build" + +set "CFLAGS=-mcpu=tc38xx -std=c99 -O0 -g3 -Wall -fmessage-length=0 -fno-common -fdata-sections -ffunction-sections" +set "INCLUDES=-I%THREADX_ROOT%/common/inc -I../inc" + +if exist "%BUILD_DIR%" rmdir /s /q "%BUILD_DIR%" +mkdir "%BUILD_DIR%\tx" "%BUILD_DIR%\sample" || exit /b 1 +del /q tx.a sample_threadx.elf sample_threadx.map 2>nul + +rem The archiver reads the object list from a response file. The response file +rem uses forward slashes, because the archiver treats a backslash in it as an +rem escape character. +for %%f in (..\src\*.c %THREADX_ROOT%\common\src\*.c) do ( + "%CC%" %CFLAGS% %INCLUDES% -c "%%f" -o "%BUILD_DIR%/tx/%%~nf.o" || exit /b 1 + echo %BUILD_DIR%/tx/%%~nf.o>>"%BUILD_DIR%\tx.rsp" +) +"%AR%" -r tx.a @%BUILD_DIR%/tx.rsp || exit /b 1 + +for %%f in (sample_threadx.c tx_initialize_low_level.c) do ( + "%CC%" %CFLAGS% %INCLUDES% -c "%%f" -o "%BUILD_DIR%/sample/%%~nf.o" || exit /b 1 +) + +"%CC%" -mcpu=tc38xx -T sample_threadx.ld -Wl,--gc-sections -Wl,-Map=sample_threadx.map ^ + -o sample_threadx.elf %BUILD_DIR%/sample/sample_threadx.o ^ + %BUILD_DIR%/sample/tx_initialize_low_level.o tx.a || exit /b 1 diff --git a/ports/tricore_tc1_6_2/gnu/readme_threadx.txt b/ports/tricore_tc1_6_2/gnu/readme_threadx.txt index 9580d0e9b..9dc9b8629 100755 --- a/ports/tricore_tc1_6_2/gnu/readme_threadx.txt +++ b/ports/tricore_tc1_6_2/gnu/readme_threadx.txt @@ -32,6 +32,10 @@ In example_build, run: ./build_threadx_sample.sh +or, on Windows: + + build_threadx_sample.bat + This builds tx.a and sample_threadx.elf for the TC375 Lite Kit from: sample_threadx.c samples/demo_threadx.c with the event trace diff --git a/test/tx/cmake/tricore_tc1_6_2/README.md b/test/tx/cmake/tricore_tc1_6_2/README.md index 1182389e0..696696823 100644 --- a/test/tx/cmake/tricore_tc1_6_2/README.md +++ b/test/tx/cmake/tricore_tc1_6_2/README.md @@ -8,10 +8,28 @@ one after the other. The test output goes to the UART of the Lite Kit. ## Requirements - AURIX TC375 Lite Kit (TC375TP) -- AURIX GCC with `tricore-elf-gcc` on `PATH` +- AURIX GCC with `tricore-elf-gcc` on `PATH` (see [Compiler](#compiler)) - CMake 3.13 or later and Ninja - A terminal on the virtual COM port of the Lite Kit: 115200 baud +## Compiler + +The tests ran with the following AURIX GCC for Linux x86-64: + +| Item | Version | +|--------------|------------------------------------------------------------| +| Package | AURIX GCC 03_2026 (`aurixgcc_03-2026_Linux_x86-x64`) | +| GCC | 11.3.1 20221230 (AURIX(tm) GCC - Built 2026-03-19 10:12:22) | +| Binutils | 2.40.50.20230607 | +| C library | newlib 4.2.0 | +| Start-up code| `lib/gcc/tricore-elf/11.3.1/crt0-tc38xx.o` | + +Infineon provides the AURIX GCC for download at +. +`tricore-elf-gcc --version` prints the GCC version and the build date of the +installed package. The download also offers a Windows package; `run.bat` +builds with it, but the tests ran only with the Linux package. + ## Build ```bash @@ -20,6 +38,14 @@ one after the other. The test output goes to the UART of the Lite Kit. ./run.sh build all # every configuration ``` +On Windows, `run.bat` takes the same arguments: + +```bat +run.bat build +run.bat build trace_build +run.bat build all +``` + The configurations are those of `test/tx/cmake/CMakeLists.txt`: `default_build`, `disable_notify_callbacks_build`, `stack_checking_build`, `stack_checking_rand_fill_build`, `trace_build`, `misra_build` and @@ -52,8 +78,8 @@ The test runs on the example of the port in start-up code is `crt0-tc38xx.o` of the compiler, and the system runs from the back-up clock of 100 MHz. `bsp/` adds: -- `tx_initialize_low_level.patch`, applied to a copy of the example's - `tx_initialize_low_level.c`, calls `test_interrupt_dispatch()` before +- `tx_initialize_low_level.c`, a copy of the example's file whose timer + interrupt calls `test_interrupt_dispatch()` before `_tx_timer_interrupt()`, as `test/tx/cmake` does for the Linux port. It also offsets each timer compare by a pseudo-random 0 to 255 STM ticks. Without the offset, the timer can stay in phase with a test loop that @@ -68,12 +94,12 @@ the back-up clock of 100 MHz. `bsp/` adds: The build further changes the regression suite: -- `regression/testcontrol.patch`, applied to a copy of `testcontrol.c`, reduces - `test_control_memory` to 0x6000 bytes and `tests_memory` to 0x1C000 bytes - and places both in DSPR1 (`.bss_cpu1` of `bsp/regression.ld`). The original 0x60000 bytes each do - not fit the RAM of the TC375. The largest test uses about 94 KiB. - `testcontrol.c` is compiled with `EXTERNAL_EXIT` and with `main` renamed to - `tx_regression_main`. + `tx_regression_main`. `regression/CMakeLists.txt` sets + `TEST_CONTROL_MEMORY_SIZE` to 0x6000 bytes and `TESTS_MEMORY_SIZE` to + 0x1C000 bytes, and `TEST_MEMORY_PLACEMENT` places both arrays in DSPR1 + (`.bss_cpu1` of `bsp/regression.ld`). The default of 0x60000 bytes each + does not fit the RAM of the TC375. The largest test uses about 94 KiB. - `threadx_initialize_kernel_setup_test.c` is not built. It has its own `main` and is not part of `test_control_tests[]`. diff --git a/test/tx/cmake/tricore_tc1_6_2/bsp/CMakeLists.txt b/test/tx/cmake/tricore_tc1_6_2/bsp/CMakeLists.txt index 818d68611..9e5cb3a55 100644 --- a/test/tx/cmake/tricore_tc1_6_2/bsp/CMakeLists.txt +++ b/test/tx/cmake/tricore_tc1_6_2/bsp/CMakeLists.txt @@ -21,21 +21,9 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR) project(aurix_lite_kit_v2_bsp LANGUAGES C) set(BSP_DIR ${CMAKE_CURRENT_LIST_DIR}) -set(EXAMPLE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../../ports/tricore_tc1_6_2/gnu/example_build) - -# The example's timer interrupt with the call of test_interrupt_dispatch(). -set(LOW_LEVEL_SOURCE ${CMAKE_CURRENT_BINARY_DIR}/tx_initialize_low_level.c) -add_custom_command( - OUTPUT ${LOW_LEVEL_SOURCE} - COMMAND patch --quiet --output=${LOW_LEVEL_SOURCE} - ${EXAMPLE_DIR}/tx_initialize_low_level.c - ${BSP_DIR}/tx_initialize_low_level.patch - DEPENDS ${EXAMPLE_DIR}/tx_initialize_low_level.c - ${BSP_DIR}/tx_initialize_low_level.patch - VERBATIM) add_library(aurix_lite_kit_v2_bsp ${BSP_DIR}/main.c - ${LOW_LEVEL_SOURCE} + ${BSP_DIR}/tx_initialize_low_level.c ) target_link_libraries(aurix_lite_kit_v2_bsp PUBLIC azrtos::threadx) diff --git a/test/tx/cmake/tricore_tc1_6_2/bsp/regression.ld b/test/tx/cmake/tricore_tc1_6_2/bsp/regression.ld index 34a72dcde..c34616382 100644 --- a/test/tx/cmake/tricore_tc1_6_2/bsp/regression.ld +++ b/test/tx/cmake/tricore_tc1_6_2/bsp/regression.ld @@ -13,9 +13,9 @@ /* Test memory of the regression test in DSPR1 of the TC375. The file is given with -T after sample_threadx.ld of the example and augments the default - linker script of the AURIX GCC through INSERT. testcontrol.patch places - test_control_memory and tests_memory in the section .bss_cpu1; main() - clears it. */ + linker script of the AURIX GCC through INSERT. regression/CMakeLists.txt + places test_control_memory and tests_memory in the section .bss_cpu1; + main() clears it. */ MEMORY { diff --git a/test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.c b/test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.c new file mode 100644 index 000000000..ed1b1b879 --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.c @@ -0,0 +1,266 @@ +/*************************************************************************** + * Copyright (c) 2026 safecubed GmbH + * Copyright (c) 2026 Eclipse ThreadX contributors + * + * This program and the accompanying materials are made available under the + * terms of the MIT License which is available at + * https://opensource.org/licenses/MIT. + * + * SPDX-License-Identifier: MIT + **************************************************************************/ + +/* Portions of this file were generated with AI assistance. */ + +/* Low-level initialisation of ThreadX on CPU0 of the TC375 Lite Kit without + a driver library. A copy of the example's file whose timer interrupt also + calls test_interrupt_dispatch() and offsets each compare (timer_jitter). + + The start-up code of the compiler (crt0) has disabled the CPU0 watchdog + and the safety watchdog, initialised the stacks, the context save areas + and the C data, and calls main of sample_threadx.c, which calls + tx_kernel_enter. The clock system keeps its reset state: the system runs + from the back-up clock of 100 MHz. + + _tx_initialize_low_level runs from tx_kernel_enter before the kernel and + the application are initialised. It installs the trap and interrupt + vector tables, the ThreadX timer on compare 0 of STM0 and the dispatch + interrupt of the port. Interrupts stay disabled until _tx_thread_schedule + starts the first thread. */ + +#include "tx_api.h" + + +/* Core special function registers. */ +#define CSFR_BIV 0xFE20 +#define CSFR_BTV 0xFE24 + +/* CPU0 watchdog: ENDINIT protects BIV and BTV. */ +#define SCU_WDTCPU0_CON0 (*(volatile unsigned int *) 0xF003624CUL) +#define WDT_CON0_ENDINIT 0x00000001UL +#define WDT_CON0_LCK 0x00000002UL +#define WDT_CON0_PW_OFF 2 +#define WDT_CON0_PW_MSK 0x3FFFUL +#define WDT_CON0_REL_MSK 0xFFFF0000UL +/* CON0.PW reads with bits 5:0 inverted. */ +#define WDT_CON0_PW_READ_INVERT 0x003FUL + +/* Clock control: fSTM = fSOURCE / CCUCON0.STMDIV, where fSOURCE is the + back-up clock while CCUCON0.CLKSEL = 0. */ +#define SCU_CCUCON0 (*(volatile unsigned int *) 0xF0036030UL) +#define CCUCON0_STMDIV_MSK 0x0000000FUL +#define BACKUP_CLOCK_FREQUENCY 100000000UL + +/* STM0 compare 0. */ +#define STM0_TIM0 (*(volatile unsigned int *) 0xF0001010UL) +#define STM0_CMP0 (*(volatile unsigned int *) 0xF0001030UL) +#define STM0_CMCON (*(volatile unsigned int *) 0xF0001038UL) +#define STM0_ICR (*(volatile unsigned int *) 0xF000103CUL) +#define STM0_ISCR (*(volatile unsigned int *) 0xF0001040UL) +#define STM_CMCON_CMP0_MSK 0x00001F1FUL /* MSTART0 and MSIZE0 */ +#define STM_CMCON_CMP0_32_BITS 0x0000001FUL /* MSTART0 = 0, MSIZE0 = 31 */ +#define STM_ICR_CMP0_MSK 0x00000007UL /* CMP0EN, CMP0IR and CMP0OS */ +#define STM_ICR_CMP0EN 0x00000001UL /* CMP0OS = 0: service request STMIR0 */ +#define STM_ISCR_CMP0IRR 0x00000001UL + +/* Service request STMIR0 of STM0. */ +#define SRC_STM0SR0 (*(volatile unsigned int *) 0xF0038300UL) + + +VOID _tx_timer_interrupt(VOID); +VOID test_interrupt_dispatch(VOID); + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) +VOID _tx_execution_isr_enter(VOID); +VOID _tx_execution_isr_exit(VOID); +#endif + +extern VOID *_tx_initialize_unused_memory; + +/* From the trap vector table below and the linker script. */ +extern UCHAR _tx_trap_table[]; +extern UCHAR __INTTAB_CPU0[]; +extern UCHAR __TX_FREE_MEM[]; + +/* STM ticks per ThreadX timer tick. */ +static ULONG timer_period; + +/* Pseudo-random offset of 0 to 255 STM ticks of the current compare. It + keeps the timer interrupt from staying in phase with a test loop. */ +static ULONG timer_jitter; +static ULONG timer_jitter_seed = 1U; + + +/* Sets (endinit = WDT_CON0_ENDINIT) or clears (endinit = 0) the ENDINIT bit + of the CPU0 watchdog. A password access unlocks CON0, the modify access + then writes ENDINIT and locks CON0 again. */ +static VOID cpu0_endinit_write(ULONG endinit) +{ + + ULONG con0; + ULONG password; + + con0 = SCU_WDTCPU0_CON0; + password = (((con0 >> WDT_CON0_PW_OFF) & WDT_CON0_PW_MSK) ^ WDT_CON0_PW_READ_INVERT) << WDT_CON0_PW_OFF; + + if ((con0 & WDT_CON0_LCK) != 0U) + { + SCU_WDTCPU0_CON0 = (con0 & WDT_CON0_REL_MSK) | password | WDT_CON0_ENDINIT; + } + + SCU_WDTCPU0_CON0 = (con0 & WDT_CON0_REL_MSK) | password | WDT_CON0_LCK | endinit; + + /* The read back completes the write before ENDINIT protected registers + are accessed. */ + (VOID) SCU_WDTCPU0_CON0; +} + + +VOID _tx_initialize_low_level(VOID) +{ + + ULONG stm_frequency; + + _disable(); + + _tx_initialize_unused_memory = (VOID *) __TX_FREE_MEM; + + /* Trap and interrupt vector tables. BIV.VSS = 0: vector spacing of 32 + bytes. */ + cpu0_endinit_write(0U); + __mtcr(CSFR_BTV, (ULONG) _tx_trap_table); + __mtcr(CSFR_BIV, (ULONG) __INTTAB_CPU0); + _isync(); + cpu0_endinit_write(WDT_CON0_ENDINIT); + + /* ThreadX timer on compare 0 of STM0. The compare covers all 32 bits of + the lower timer word. */ + stm_frequency = BACKUP_CLOCK_FREQUENCY / (SCU_CCUCON0 & CCUCON0_STMDIV_MSK); + timer_period = (stm_frequency + (TX_TIMER_TICKS_PER_SECOND / 2U)) / TX_TIMER_TICKS_PER_SECOND; + + STM0_CMCON = (STM0_CMCON & ~STM_CMCON_CMP0_MSK) | STM_CMCON_CMP0_32_BITS; + STM0_CMP0 = STM0_TIM0 + timer_period; + STM0_ISCR = STM_ISCR_CMP0IRR; + STM0_ICR = (STM0_ICR & ~STM_ICR_CMP0_MSK) | STM_ICR_CMP0EN; + SRC_STM0SR0 = TX_PORT_TRICORE_SRC_CLRR_MSK | TX_PORT_TRICORE_SRC_SRE_MSK | + (0UL << TX_PORT_TRICORE_SRC_TOS_OFF) | TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY; + + /* Dispatch interrupt of the port. */ + TX_PORT_TRICORE_DISPATCH_SRC = TX_PORT_TRICORE_SRC_CLRR_MSK | TX_PORT_TRICORE_SRC_SRE_MSK | + (0UL << TX_PORT_TRICORE_SRC_TOS_OFF) | TX_PORT_TRICORE_DISPATCH_PRIORITY; +} + + +TX_PORT_TRICORE_INTERRUPT(_tx_timer_isr, TX_PORT_TRICORE_TIMER_INTERRUPT_PRIORITY) +{ + + ULONG now; + ULONG next; + ULONG jitter; + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) + _tx_execution_isr_enter(); +#endif + + STM0_ISCR = STM_ISCR_CMP0IRR; + + /* The next compare follows the previous one by one period. If the timer + has already passed that value, for example after a debugger halt, the + next compare is one period from now and the ticks in between are lost. + Without this check, the next interrupt would occur only after the + 32-bit timer wraps. */ + timer_jitter_seed = (timer_jitter_seed * 1664525UL) + 1013904223UL; + jitter = timer_jitter_seed >> 24; + next = STM0_CMP0 - timer_jitter + timer_period + jitter; + now = STM0_TIM0; + if ((LONG) (next - now) <= 0) + { + next = now + timer_period; + jitter = 0U; + } + timer_jitter = jitter; + STM0_CMP0 = next; + + test_interrupt_dispatch(); + _tx_timer_interrupt(); + +#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) + _tx_execution_isr_exit(); +#endif +} + + +/* Receives the trap class and TIN of every trap except the system call and + shall not return. */ +VOID __attribute__( ( weak, noreturn ) ) tx_trap_error_hook(UINT trap_class, UINT tin) +{ + (VOID) trap_class; + (VOID) tin; + + _debug(); + while (TX_TRUE) + { + } +} + +/* Trap vector table of CPU0: eight entries of 32 bytes, aligned to 256 + bytes. The error entries jump, because a context management trap can + leave no free CSA. */ +__asm__ (".pushsection .traptab, \"ax\", @progbits\n" + " .align 8\n" + " .global _tx_trap_table\n" + " .type _tx_trap_table, @function\n" + "_tx_trap_table:\n" + + /* Class 0: MMU. */ + " mov %d4, 0\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 1: internal protection. */ + " mov %d4, 1\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 2: instruction errors. */ + " mov %d4, 2\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 3: context management. */ + " mov %d4, 3\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 4: system bus and peripheral errors. */ + " mov %d4, 4\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 5: assertion. */ + " mov %d4, 5\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + /* Class 6: system call. The handler shall be called directly + (TX_PORT_TRICORE_SYSCALL_CALL_DEPTH). */ + " svlcx\n" + " mov %d4, %d15\n" + " call _tx_thread_syscall_handler\n" + " rslcx\n" + " rfe\n" + " .align 5\n" + + /* Class 7: non-maskable interrupt. */ + " mov %d4, 7\n" + " mov %d5, %d15\n" + " j tx_trap_error_hook\n" + " .align 5\n" + + " .size _tx_trap_table, . - _tx_trap_table\n" + ".popsection\n"); diff --git a/test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.patch b/test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.patch deleted file mode 100644 index 12aaf4ee8..000000000 --- a/test/tx/cmake/tricore_tc1_6_2/bsp/tx_initialize_low_level.patch +++ /dev/null @@ -1,62 +0,0 @@ -Test interrupt dispatch and timer jitter for the TC375 Lite Kit. - -The regression tests run their interrupt code from test_interrupt_dispatch(), -which the timer interrupt of the example calls before _tx_timer_interrupt(), -as test/tx/cmake does for the Linux port. - -Several tests loop until the timer interrupt arrives in a short window of the -loop. Without caches, the loop and the timer can stay in phase, and the -interrupt never arrives in that window. Each compare is therefore offset by a -pseudo-random 0 to 255 STM ticks; the mean tick period stays unchanged. - ---- a/ports/tricore_tc1_6_2/gnu/example_build/tx_initialize_low_level.c -+++ b/ports/tricore_tc1_6_2/gnu/example_build/tx_initialize_low_level.c -@@ -66,6 +66,7 @@ - - - VOID _tx_timer_interrupt(VOID); -+VOID test_interrupt_dispatch(VOID); - - #if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) - VOID _tx_execution_isr_enter(VOID); -@@ -82,6 +83,11 @@ - /* STM ticks per ThreadX timer tick. */ - static ULONG timer_period; - -+/* Pseudo-random offset of 0 to 255 STM ticks of the current compare. It -+ keeps the timer interrupt from staying in phase with a test loop. */ -+static ULONG timer_jitter; -+static ULONG timer_jitter_seed = 1U; -+ - - /* Sets (endinit = WDT_CON0_ENDINIT) or clears (endinit = 0) the ENDINIT bit - of the CPU0 watchdog. A password access unlocks CON0, the modify access -@@ -148,6 +154,7 @@ - - ULONG now; - ULONG next; -+ ULONG jitter; - - #if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) - _tx_execution_isr_enter(); -@@ -160,14 +167,19 @@ - next compare is one period from now and the ticks in between are lost. - Without this check, the next interrupt would occur only after the - 32-bit timer wraps. */ -- next = STM0_CMP0 + timer_period; -+ timer_jitter_seed = (timer_jitter_seed * 1664525UL) + 1013904223UL; -+ jitter = timer_jitter_seed >> 24; -+ next = STM0_CMP0 - timer_jitter + timer_period + jitter; - now = STM0_TIM0; - if ((LONG) (next - now) <= 0) - { - next = now + timer_period; -+ jitter = 0U; - } -+ timer_jitter = jitter; - STM0_CMP0 = next; - -+ test_interrupt_dispatch(); - _tx_timer_interrupt(); - - #if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)) diff --git a/test/tx/cmake/tricore_tc1_6_2/regression/CMakeLists.txt b/test/tx/cmake/tricore_tc1_6_2/regression/CMakeLists.txt index e8fd980fa..e9b3257f6 100644 --- a/test/tx/cmake/tricore_tc1_6_2/regression/CMakeLists.txt +++ b/test/tx/cmake/tricore_tc1_6_2/regression/CMakeLists.txt @@ -26,19 +26,11 @@ file(GLOB regression_test_cases ${SOURCE_DIR}/threadx_*.c) list(REMOVE_ITEM regression_test_cases ${SOURCE_DIR}/threadx_initialize_kernel_setup_test.c) -# testcontrol.patch reduces the test memory to fit the RAM of the TC375. -set(TESTCONTROL_SOURCE ${CMAKE_CURRENT_BINARY_DIR}/testcontrol.c) -add_custom_command( - OUTPUT ${TESTCONTROL_SOURCE} - COMMAND patch --quiet --output=${TESTCONTROL_SOURCE} - ${SOURCE_DIR}/testcontrol.c - ${CMAKE_CURRENT_LIST_DIR}/testcontrol.patch - DEPENDS ${SOURCE_DIR}/testcontrol.c - ${CMAKE_CURRENT_LIST_DIR}/testcontrol.patch - VERBATIM) -# Cpu0_Main.c of the BSP starts the test control. +# The default test memories do not fit the RAM of the TC375. +set(TESTCONTROL_SOURCE ${SOURCE_DIR}/testcontrol.c) set_source_files_properties(${TESTCONTROL_SOURCE} PROPERTIES - COMPILE_DEFINITIONS main=tx_regression_main) + COMPILE_DEFINITIONS + "main=tx_regression_main;TEST_CONTROL_MEMORY_SIZE=0x6000;TESTS_MEMORY_SIZE=0x1C000;TEST_MEMORY_PLACEMENT=__attribute__((section(\".bss_cpu1\")))") set(WEAK_DEFAULTS_SOURCE ${CMAKE_CURRENT_LIST_DIR}/../../../../shared/regression/testcontrol_weak_defaults.c) diff --git a/test/tx/cmake/tricore_tc1_6_2/regression/testcontrol.patch b/test/tx/cmake/tricore_tc1_6_2/regression/testcontrol.patch deleted file mode 100644 index a7d76cfdc..000000000 --- a/test/tx/cmake/tricore_tc1_6_2/regression/testcontrol.patch +++ /dev/null @@ -1,20 +0,0 @@ -Test memory of testcontrol.c for the TC375 Lite Kit. - -The two arrays of 0x60000 bytes each do not fit the RAM of the TC375. The -largest test uses about 94 KiB of tests_memory, and the test control uses -three stacks of TEST_STACK_SIZE bytes from test_control_memory. Both arrays -go to DSPR1 (.bss_cpu1 in bsp/regression.ld). - ---- a/test/tx/regression/testcontrol.c -+++ b/test/tx/regression/testcontrol.c -@@ -118,8 +118,8 @@ - VOID (*test_isr_dispatch)(void); - - --UCHAR test_control_memory[0x60000]; --UCHAR tests_memory[0x60000]; -+UCHAR test_control_memory[0x6000] __attribute__((section(".bss_cpu1"))); -+UCHAR tests_memory[0x1C000] __attribute__((section(".bss_cpu1"))); - - /* Define the external reference for the preempt disable flag. */ - diff --git a/test/tx/cmake/tricore_tc1_6_2/run.bat b/test/tx/cmake/tricore_tc1_6_2/run.bat new file mode 100644 index 000000000..b2fe00351 --- /dev/null +++ b/test/tx/cmake/tricore_tc1_6_2/run.bat @@ -0,0 +1,100 @@ +@echo off +rem ########################################################################## +rem Copyright (c) 2026 safecubed GmbH +rem Copyright (c) 2026 Eclipse ThreadX contributors +rem +rem This program and the accompanying materials are made available under the +rem terms of the MIT License which is available at +rem https://opensource.org/licenses/MIT. +rem +rem SPDX-License-Identifier: MIT +rem ########################################################################## + +rem Portions of this file were generated with AI assistance. + +rem Regression test build runner for the TriCore TC1.6.2 port on Windows. +rem Usage: run.bat build [all| ...] +rem The AURIX GCC (tricore-elf-), CMake and Ninja shall be on PATH. The images +rem run on the TC375 Lite Kit, so this script only builds them. See README.md +rem for programming and running them. + +setlocal EnableExtensions EnableDelayedExpansion +set "SCRIPT_NAME=%~nx0" +cd /d "%~dp0" +for %%I in ("%~dp0..\..\..\..") do set "REPO_ROOT=%%~fI" +set "REPO_ROOT=%REPO_ROOT:\=/%" + +rem Parse the build configurations from the set(BUILD_CONFIGURATIONS ...) +rem command of CMakeLists.txt, which may span several lines. +set "CONFIGS=" +set "IN_LIST=" +for /f "usebackq delims=" %%L in ("CMakeLists.txt") do ( + set "LINE=%%L" + if not defined IN_LIST if not "!LINE:set(BUILD_CONFIGURATIONS=!"=="!LINE!" ( + set "IN_LIST=1" + set "LINE=!LINE:set(BUILD_CONFIGURATIONS=!" + ) + if defined IN_LIST ( + set "LAST=" + if not "!LINE:)=!"=="!LINE!" set "LAST=1" + set "LINE=!LINE:)= !" + for %%W in (!LINE!) do ( + set "WORD=%%W" + if not "!WORD:build=!"=="!WORD!" set "CONFIGS=!CONFIGS! %%W" + ) + if defined LAST set "IN_LIST=" + ) +) + +if not "%~1"=="build" goto help +shift + +set "BUILDS=" +if "%~1"=="" ( + for %%C in (%CONFIGS%) do if not defined BUILDS set "BUILDS=%%C" + goto run +) +if "%~1"=="all" if "%~2"=="" ( + set "BUILDS=%CONFIGS%" + goto run +) + +:args +if "%~1"=="" goto run +call :validate "%~1" || goto help +set "BUILDS=!BUILDS! %~1" +shift +goto args + +rem A failing configuration does not stop the ones after it. The status is +rem accumulated and returned. +:run +set "BUILD_STATUS=0" +for %%B in (%BUILDS%) do ( + echo Building %%B + call :generate %%B && call :build %%B || set "BUILD_STATUS=1" + echo. +) +exit /b %BUILD_STATUS% + +:help +echo Usage: %SCRIPT_NAME% build [all^|^ ...] +echo. +echo Available build configurations: +for %%C in (%CONFIGS%) do echo %%C +exit /b 1 + +:validate +for %%C in (%CONFIGS%) do if "%~1"=="%%C" exit /b 0 +exit /b 1 + +:generate +cmake -B"build/%~1" -GNinja ^ + -DCMAKE_TOOLCHAIN_FILE="%REPO_ROOT%/cmake/tricore_tc1_6_2.cmake" ^ + -DCMAKE_BUILD_TYPE="%~1" ^ + . +exit /b %ERRORLEVEL% + +:build +cmake --build "build/%~1" +exit /b %ERRORLEVEL% diff --git a/test/tx/regression/testcontrol.c b/test/tx/regression/testcontrol.c index bec50ee76..d76fbe493 100644 --- a/test/tx/regression/testcontrol.c +++ b/test/tx/regression/testcontrol.c @@ -38,6 +38,18 @@ #endif /* Check THREADX_MINOR_VERSION */ +#ifndef TEST_CONTROL_MEMORY_SIZE +#define TEST_CONTROL_MEMORY_SIZE 0x60000 +#endif + +#ifndef TESTS_MEMORY_SIZE +#define TESTS_MEMORY_SIZE 0x60000 +#endif + +#ifndef TEST_MEMORY_PLACEMENT +#define TEST_MEMORY_PLACEMENT +#endif + #define TEST_STACK_SIZE 6144 @@ -118,8 +130,8 @@ UCHAR *test_free_memory_ptr; VOID (*test_isr_dispatch)(void); -UCHAR test_control_memory[0x60000]; -UCHAR tests_memory[0x60000]; +UCHAR test_control_memory[TEST_CONTROL_MEMORY_SIZE] TEST_MEMORY_PLACEMENT; +UCHAR tests_memory[TESTS_MEMORY_SIZE] TEST_MEMORY_PLACEMENT; /* Define the external reference for the preempt disable flag. */