cancel
Showing results for 
Search instead for 
Did you mean: 

First Printf, some problems :-(

robust_ed
Associate
Posted on April 12, 2014 at 10:37

The original post was too long to process during our migration. Please click on the attachment to read the original post.
4 REPLIES 4
Posted on April 12, 2014 at 13:38

Whatever your tool chain, you fail to provide any association between your USART output routines, and those the tool uses for stdout (putchar, puts, printf, etc), review documentation related to targeting, and board support. Give the awkward clock setup, I might assume CooCox?

Also, I would recommend front testing for TXE, rather than back testing for TC
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
os_kopernika
Associate II
Posted on April 12, 2014 at 14:45

I would recommend you to try semihosting first, then ITMing and leaving uarting for the very end when everything earlier works as expected.

robust_ed
Associate
Posted on April 15, 2014 at 15:57

Hello Brutte, hello everyone 🙂

In debug mode with semihosting activated printf work fine, adding previously this line 

SH_SendChar(c);

at PrintChar function inside printf.c

I don't what do you want to say with ITming ¿? More ideas??

Thanks in advance for your help..

Posted on April 15, 2014 at 16:32

I would recommend you to try semihosting first, then ITMing and leaving uarting for the very end when everything earlier works as expected.

Because ITM via SWD/SWV is totally simple and not fraught with all kinds of issues of it's own?

http://www.keil.com/pack/doc/cmsis/Core/html/group___i_t_m___debug__gr.html

http://www.keil.com/appnotes/files/apnt_230.pdf

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..