Skip to content

Port for Tricore tc1.6.2 - #841

Open
s3neubauer wants to merge 4 commits into
eclipse-threadx:devfrom
safecubed:tricore_tc1_6_2
Open

s3neubauer wants to merge 4 commits into
eclipse-threadx:devfrom
safecubed:tricore_tc1_6_2

Conversation

@s3neubauer

Copy link
Copy Markdown

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

  • Updated function header with a short description and version number
  • Added test case for bug fix or new feature (regression build in test/tx/cmake/tricore_tc1_6_2)
  • Validated on real hardware

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant