AnsweredAssumed Answered

I don't understand how to use the function printf in S32 Design Studio for ARM Version 2.2

Question asked by Paola De Cesare on Jun 25, 2020
Latest reply on Jun 29, 2020 by Jiri Kral


I have some problems with the function Printf. I include the library <stdio.h> in my file main.c. The idea of my code is to turn on and off a green led. When I debug my code, I want to see on comsole the word: Green.

Here my code:


#include "S32K144.h" /* include peripheral declarations S32K144 */
#include <stdio.h>

int main(void)
PCC->PCCn[PCC_PORTD_INDEX] = 0x40000000;
PORTD->PCR[15] = 0x00000100;
PTD->PDDR = 0x00008000; /*output*/

for(;;) {
PTD->PDOR = 0;
PTD->PDOR = 0x00008000;

return 0;


Excuse me for the trivial question, but I'm a begginer with the embedded system.

I hope that someone could help me.

Thanks for your availability