855 views
in GUI Development by
Regarding https://doc.embedded-wizard.de/getting-started-stm32f746-discovery?v=8.20#Console%20output debug messages of the C code should be displayed in the console output. However, the output of a printf() does not.

1 Answer

0 votes
by
 
Best answer
Hello,

yes, the C library function printf() is not connected to a serial connection.

Therefore we added the "universal string handler for user console interface" (xprintf) within the different STM32Fx Build Environments (xprintf.c in subdirectory /Misc).

You can use the xprintf() function to print debug messages via the serial connection - or you can use the EwPrint() function (which uses the same functionality). For example, within the main.c file you can see several debug messages during the startup by using EwPrint().

Best regards,

Manfred Schweyer.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...