Skip to main content
KlausF01
Associate II
March 6, 2020
Question

USART2 communication no longer works after STM32cubeIDE Update to V1.3.0

I have just updated STM32cubeIDE from Version 1.2.0 to 1.3.0.

After uploading a previously running program, I saw that USART communication to the PC is no longer working, after IDE update. I did NOT change anything in my C-sourcecode, just recompiled and uploaded.

This effect occurs in all software, I'm using VCP as a debugging output!

I have no idea, where to search, as the C-sourcecode was not alterd at all!

As you can see in the picture below, there is something received periodically. However I'm not able anymore to set a baudrate (at HTerm) which decodes the transmitted text. I assume that the baudrate, set in USART2, is totally mismatched and anything else than 115200. Unfortunately, in this location I do not have an oscilloscope available to figure out what is reall transmitted there.

Any help is welcom - all my projects are on HALT now :grimacing_face:

0690X00000DYtouQAD.jpg

BTW: I'm using a nucleo54 STM32L053R8 board.

This topic has been closed for replies.

19 replies

TDK
July 8, 2021

@UButt.1​ Your two projects are not the same, there are quite a few differences in them.

In particular, one of them has the line:

HAL_UART_Transmit(&huart2,'A', 1, 100);

This won't work as intended, since 'A' is a char literal and not a pointer to data. It will also throw a warning during compilation.

I don't see how this is the same problem as the original post, which was solved.

If you still have a problem, please create a new thread with relevant details.

"If you feel a post has answered your question, please click ""Accept as Solution""."