Skip to main content
Visitor II
February 9, 2024
Question

Unable to send data over USART1 TX line (PC4) on NUCLEO-G0B1RE

  • February 9, 2024
  • 2 replies
  • 1357 views

Hi,  

  Configured PC4 and PC5 for transmitting and receiving over USART1.

   Enabled the interrupt, DMA is disabled.

    Tried with different baud rates, same results. 

   The data seen on serial console application cutecom does not match data I am setting in my transmit buffer.

 

   Tried same test on USART2 using putty, it shows data matching TX buffer.

    Any suggestions ?

Thanks,

  Mo

    This topic has been closed for replies.

    2 replies

    Graduate
    February 9, 2024

    No schematic, no connections described, no code shown. How could anyone help you without any of these?

    Super User
    February 9, 2024

    @mohitmg wrote:

    The data seen on serial console application cutecom does not match data I am setting in my transmit buffer.

    Tried same test on USART2 using putty, it shows data matching TX buffer.


    So you changed two things at once?

    What does PuTTY show in the USART1 case?

    What does this "cutecom" (not heard of that one before) show with the USART2 case?

    Have you looked at the UART lines with a scope to see what's happening?

     


    @mohitmg wrote:

     Enabled the interrupt, DMA is disabled.


    Before adding those complications, can you do a simple, blocking Tx ?

    As @gbm said, you're going to need to give a lot more details for anybody to be able to help debug this remotely.

    Super User
    February 9, 2024

    @Andrew Neil wrote:

    "cutecom" (not heard of that one before) .

    This: https://cutecom.sourceforge.net/ ?

    I note:

    AndrewNeil_0-1707474736688.png

    So are you sure that your code is sending in a proper format that CuteCom will recognise as a "line" ?

    mohitmgAuthor
    Visitor II
    February 9, 2024

    All I am doing is sending 2 byte data over UART TX and trying to sniff the data on TX line to make sure it matches what we are sending from the main function.

    Note - We are running on ubuntu so cutecom is the tool I could find.   Cutecom is able to see my device on tty/USB0 and attach.

    Do you have any other tool I can use in similar fashion to see what exact data being sent out on UART TX line ?

     

    Thanks,

     Mohit