First Printf, some problems :-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-04-12 1:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-04-12 4:38 AM
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 TCUp vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-04-12 5:45 AM
I would recommend you to try semihosting first, then ITMing and leaving uarting for the very end when everything earlier works as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-04-15 6:57 AM
Hello Brutte, hello everyone :)
In debug mode with semihosting activated printf work fine, adding previously this lineSH_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..- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2014-04-15 7:32 AM
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
Up vote any posts that you find helpful, it shows what's working..
