Hi Yacob,
Redirecting may be different from IDE to IDE. Redirecting is not only for printf. In general you should define the macro PUTCHAR or similar to some low level handling depended on your own hardware. Here are some examples I found, for KAIL: http://www.keil.com/forum/60531/ <http://www.keil.com/forum/60531/> For IAR: <http://www.keil.com/forum/60531/> https://stackoverflow.com/questions/23388659/redirect-printf-to-console-i-o-on-iar-embedded-workbench <http://www.keil.com/forum/60531/> <http://www.keil.com/forum/60531/> BR, Noam. <http://www.keil.com/forum/60531/> [https://cdn.sstatic.net/Sites/stackoverflow/img/[email protected]?v=73d79a89bded]<https://stackoverflow.com/questions/23388659/redirect-printf-to-console-i-o-on-iar-embedded-workbench> Redirect printf to Console I/O on IAR Embedded Workbench<https://stackoverflow.com/questions/23388659/redirect-printf-to-console-i-o-on-iar-embedded-workbench> stackoverflow.com I have coded a project of mine in C on a Windows machine in the software IAR Embedded Workbench IDE. The project compiles and runs fine. I have a couple of printf ... How printf to specific USART? - Keil<http://www.keil.com/forum/60531/> www.keil.com Thread 60531: Hello,I have STM32F103 with three active USART + one SWO port.I need to single UART send different data, ideally using printf, butI do not know how to ... ________________________________ From: lwip-users <[email protected]> on behalf of Yacob Hassidim <[email protected]> Sent: Sunday, February 25, 2018 5:28 PM To: 'Mailing list for lwIP users' Subject: Re: [lwip-users] LwIP configuration for directing LWIP_DEBUGF to user function Helo Simon, Thank you for referring me to lwip-contrib. I downloaded the version contrib-2.0.1. I found that LWIP_DEBUG is defined as compilation parameters of project layer. I didn’t find mention of LWIP_PLATFORM_DIAG. I use LwIP as part of ST CubeMx environment that defines LWIP_PLATFORM_DIAG in cc.h as the following: #define LWIP_PLATFORM_DIAG(message) printf message Can you please advise me how should I direct the “printf message” to serial_write(char *message_string)? Yacob Hassidim. From: lwip-users [mailto:[email protected]] On Behalf Of [email protected] Sent: Sunday, February 25, 2018 2:27 PM To: Mailing list for lwIP users <[email protected]> Subject: Re: [lwip-users] LwIP configuration for directing LWIP_DEBUGF to user function On 25.02.2018 13:18, Yacob Hassidim wrote: Can you please send an example of definitions of LWIP_DEBUG and LWIP_PLATFORM_DIAG? Instead of sharing yet more ports, why don't you have a look at the example ports for windows or linux in lwip-contrib? There you will find what you are looking for. Simon
_______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
