Repository navigation
Port for Tricore tc1.6.2 - #841
Open
s3neubauer wants to merge 4 commits into
Open
s3neubauer wants to merge 4 commits into
s3neubauer wants to merge 4 commits into
Conversation
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.
…ample 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.
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.
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.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds a ThreadX port for the Infineon AURIX TC3xx family (TriCore TC1.6.2 core) with the AURIX GCC, an example for the AURIX TC375 Lite Kit, and a build that runs the ThreadX regression suite on that board.
Port
Thread contexts are kept in CSA chains. Threads enter the scheduler through a system call; interrupt handlers request a context switch through a GPSR software interrupt at the lowest priority. The port uses no driver library: it relies on the intrinsics and the start-up code (crt0-tc38xx.o) of the AURIX GCC. TX_PORT_USE_CCPN, TX_NOT_INTERRUPTABLE, TX_TIMER_PROCESS_IN_ISR, TX_EXECUTION_PROFILE_ENABLE and TX_LOW_POWER have port-specific code.
Change to shared test code
test/tx/regression/testcontrol.c takes the size and placement of its test memories from TEST_CONTROL_MEMORY_SIZE, TESTS_MEMORY_SIZE and TEST_MEMORY_PLACEMENT. The defaults keep the previous values, so other builds are unchanged. The TC375 needs smaller memories placed in DSPR1.
Verification
Hardware: AURIX TC375 Lite Kit (KIT_A2G_TC375_LITE) with AURIX GCC 03_2026 (GCC 11.3.1, Binutils 2.40.50).
The regression suite ran on the board in 13 configurations (the 7 of test/tx/cmake plus 6 for port options); each passed 97 tests with 0 failures and 0 system errors.
The example and the regression test build without warnings on Linux and Windows.
AI assistance
The development was assisted by Claude Code (Claude Opus 5.5). Files with AI-assisted changes carry the AI disclosure line. Code was reviewed and verified on the TC375 Lite Kit.
PR checklist