cancel
Showing results for 
Search instead for 
Did you mean: 

How to print logs for B-L475E-IOT01 board ?

KVenk.2
Associate II

I am using STM32CubeMx to generate default files to build with Makefile. I edited the main.c to print some logs using printf. I am unable to see the same logs in the serial. Am I missing anything ?

2 REPLIES 2

>>Am I missing anything ?

Evidently something

Confirm the configuration of the clocks, peripheral and pins. Inspect registers in debugger.

Check USART via simple string output test, NOT using printf/puts/putchar

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

I tried directly to write into the USART1 using the below method

HAL_UART_Transmit(&console_uart, (uint8_t*)string, strlen(string), 0xffffff);

It is working fine. But how to redirect the standard I/O to the same port ? I am naive in this. Any Help could be appreciated