Semihosting printf with S32G274A

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Semihosting printf with S32G274A

615 Views
Markus_Schroeder
Contributor II

Hi,

I want to get printf() output on the S32DS console output during debugging.

My current setup:
- A S32G274A controller on a miriac SBC-S32G274A development board
- S32 Design Studio 3.5
- S32 Debug Probe using remote debugging over Ethernet

I found, that for the S32K144 there is a possibility to do that:
https://community.nxp.com/t5/S32-Design-Studio/I-don-t-understand-how-to-use-the-function-printf-in-...

I could also find settings for the semihosting in the project settings, I tried all of those with semihosting in the name, but none of them worked:

Markus_Schroeder_0-1678180324964.png

 

 

The semihosting is also enabled on the Debugger setup:

Markus_Schroeder_1-1678180340723.png

 

During the debug session my console switches automatically into Semihosting:

Markus_Schroeder_2-1678180357107.png

 

But I do not get any output on the console.
Is the S32G274A not supported by the S32DS or the S32 Debug Probe?

I also found another question, asking the same thing, probably not with enough explanation, so there was no real explanation provided:
https://community.nxp.com/t5/S32G/Semihosting-on-S32G274A-S32DS-3-4/m-p/1397863

Can you please let me know if semihosting is possible for the S32G274A derivate and if so, what specific setting I might be missing?

Best regards,
Markus

 

1 Reply

602 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

As told on the last thread you are referring, printf is not recommended for debugging purposes. As for your questions:

Q1 >> Is the S32G274A not supported by the S32DS or the S32 Debug Probe?

A1 >> S32G2/G3 family is supported by both S32DS v3.4/v3.5 and S32 Debug Probe.

 

Q2 >> Can you please let me know if semihosting is possible for the S32G274A derivate and if so, what specific setting I might be missing?

A2 >> As for this moment, we cannot be sure if semihosting is being supported on the S32 Debug Probe itself, given that there is no telling about this specific feature neither on the product page nor on the user guide. We do apologize for this.

We recommend looking into the possibility of using the UART available interfaces for a printf-like interface. There are UART available examples that can help to integrate it to your specific application.

Please, let us know.

0 Kudos
Reply