Skip to main content
Eitan Michaelson
Visitor II
Dec 19, 2017 11:48 AM UTC
Question

STM32L4R9-EVAL UART Promblem

Posted on December 19, 2017 at 12:48

Hello, I'm struggling to make (any of) the UART examples for the STM32L4R9-EVAL board work, so far without any success. Has any one here was able to get any data from the UART port (through the ST_Link interface) on this specific board?

Working With the latest Keil along with ST Cube version :

STM32Cube_FW_L4_V1.10.0

Thanks

    This topic has been closed for replies.

    2 replies

    Andrew Neil
    Super User
    Dec 20, 2017 9:02 AM UTC
    Posted on December 20, 2017 at 10:02

    Have you determined whether any data is actually exiting the 

    STM32L4 chip?

    ie, is the problem in the chip, or in the ST-Link/PC ?

    (I don't know this specific board but, usually, the UART pins are accessible on a header).

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Tesla DeLorean
    Guru
    Dec 21, 2017 5:28 PM UTC
    Posted on December 21, 2017 at 18:28

    The VCP should be accessible via USART3 and PB10/PB11, the RS232 via LPUART1 PG7,PG8

    GPIOG needs special initialization. LPUART1 needs a prescaler to hit 9600. Review initialization, and check not bombing into Error_Handler() or while(1) loop.

    GPIOB and USART3 should be straight forward.

    Have several UART working on the STM32L4R9I-DISCO, would need an EVAL to test code for that.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..