Example S32K312 Printf Semihosting DS3.5 RTD300

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

Example S32K312 Printf Semihosting DS3.5 RTD300

Example S32K312 Printf Semihosting DS3.5 RTD300

*******************************************************************************

 The purpose of this demo application is to present a usage of the
Printf Semihosting for the S32K3xx MCU.

 ------------------------------------------------------------------------------
* Test HW: S32K3X2EVB-Q172
* MCU: S32K312
* Compiler: S32DS3.5
* SDK release: RTD 3.0.0
* Debugger: PE micro
* Target: internal_FLASH
********************************************************************************

Create New project :--

Dinesh_Guleria_0-1707031699387.png



Select Semi hosting library in project Properties :--

Dinesh_Guleria_1-1707031800366.png



In Debugger setting :---

Dinesh_Guleria_2-1707031851198.png



Include file :--
#include <stdio.h>

Output :--

Dinesh_Guleria_3-1707031893795.png

 

 

Attachments
Comments

Hi @Dinesh_Guleria ,

 

Thanks for the information. It works but only with debugger.

I cannot run the code without debugger with given settings.

It runs without debugger when I select "libraries support" as non semihosting options like  newlib or newlib nano.

 

What could you suggest?

 

No ratings
Version history
Last update:
‎02-04-2024 12:32 AM
Updated by: