Skip to main content
Roman REITER
Associate III
January 21, 2023
Question

touchgfx_printf("") in a c-File

  • January 21, 2023
  • 2 replies
  • 850 views

How i can use touchgfx_printf("") in a c-File?

This topic has been closed for replies.

2 replies

Romain DIELEMAN
ST Employee
January 23, 2023

My initial response would be no but I might be missing something "obvious" :thinking_face:. TouchGFX_printf is for the simulator only user code (so C++). But you could call it when what you are using the c file for is interacted with, I suppose this interaction is done with the model ? In what context are you trying to use it ?

/Romain

Roman REITER
Associate III
January 23, 2023

I want use TouchGFX_printf in a .h or .c (own functions), which i have includen in a .hpp. supposedly you can embed c++ functions in c code and c functions in c++ code (with extern "C")!?