AnsweredAssumed Answered

S32DS1.3: printf.c missing out '\n' at the end of text: BUG.

Question asked by richard payne on Dec 31, 2016

Using "Quick Start Package v5" library kit with printf.h and uart.h (avoiding stdio.h) with FREEDOM+ KEA128 eval board.

 

It seems to skip out the '\n' at the end of the statement, wondering why. I had to put '\n\n' 

 

printf("\n\n\n");                              // only two \n\n is outputted to stream. 
UART2_Drawn_Line('=',80);
printf("== Total Vision Bulgaria EOOA, NXP KEA8/KEA132 Evaluation \n\n");      // Worked okay

printf("== Total Vision Bulgaria EOOA, NXP KEA8/KEA132 Evaluation \n");        // Will not work. 

 

I used debug variable view to check fmt[] in printf and found the \n is missing out and only \n is shown when \n\n is used.

 

NB: I cannot use \r. 

 

Supplemental Note

When I did this with extra space after '\n', it worked fine but space is included after new line, not ideal. 

printf("== Total Vision Bulgaria EOOA, NXP KEA8/KEA132 Evaluation \n ");

 

Is there fix for this bug I can use?

 

Alternatively, is there bug in OPENSDA on Comm interface?, I do not think so because I observed the fmt[] variable which shown missing '\n'

Outcomes