Skip to main content
KVenk.2
Associate II
November 28, 2018
Question

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

  • November 28, 2018
  • 2 replies
  • 559 views

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 ?

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    November 28, 2018

    >>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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    KVenk.2
    KVenk.2Author
    Associate II
    November 30, 2018

    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