Enabling Semihosting for TriCore App

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User16235
Level 1
Level 1
Hello, I'm new to MCU programming in general so I apologize if this actually a very basic procedure. I would like to output printf() messages to a debug console using UDE. Any help regarding this matter would be greatly appreciated. Thanks in advance!
0 Likes
3 Replies
User13290
Level 5
Level 5
First like received First solution authored
Hi Abhijeet,

pska wrote:
Hello, I'm new to MCU programming in general so I apologize if this actually a very basic procedure. I would like to output printf() messages to a debug console using UDE. Any help regarding this matter would be greatly appreciated. Thanks in advance!


You will first need to copy two sources from within the AURIX board support packages:


  • \bsp\tricore\common\src\simio_pls_tc.c
  • \bsp\common\h\simio_pls.h


And add these to your project. Then rebuild your project and reload it into your UDE debugger. In here you must then select the 'Views > Simulated I/O' and you're good to go.

If you're a first time user of our tools then it may be wise to first try one of our examples on your target. These can be found using the following steps:


  • Select 'File > New > Example...' Wizard
  • Select 'HighTec Examples' and press Next
  • Expand the 'TriCore Free Entry Toolchain' Tree

You can now select an example for the specific development board that you are using. Note I'm specifically referring to these examples because they include relevant files of our board support packages, which you'll also need. I also recommend you take a look at the following documentation:


  • \docs\eclipse-quickstart-en.pdf

In part it explains what I have already outlined just now, but in a more detailed fashion.

Best regards,


Henk-Piet Glas
Principal Technical Specialist

0 Likes
User13514
Level 1
Level 1
Hello, I want to do the same but I'm using the Lauterbach debugger instead of UDE. How can I do the same? Are there some similar files for Lauterbach?
0 Likes
NeMa_4793301
Level 6
Level 6
10 likes received 10 solutions authored 5 solutions authored
Hi Daniel. The iLLD has some Ifx_Console functions to use ASCLIN0 as a console. On a TriBoard, that routes through the FTDI IC to a Virtual USB Com port, so you can use a terminal program (e.g. TeraTerm) to communicate with the target.

See the AsclinShellInterface demo for an example.
0 Likes