Skip to main content
Ranjeet Singh
Senior
April 18, 2023
Solved

serial data droping


_legacyfs_online_stmicro_images_0693W00000biInSQAU.pngi can not get full text msg ,some alphabats are missing each time .how i can solve this ?


_legacyfs_online_stmicro_images_0693W00000biIngQAE.png

This topic has been closed for replies.
Ranjeet Singh
Ranjeet SinghBest answer
Senior
April 20, 2023


_legacyfs_online_stmicro_images_0693W00000biSxbQAE.png
_legacyfs_online_stmicro_images_0693W00000biSxgQAE.png

this is the solution ,my code is working with this parameters

8 replies

KDJEM.1
ST Technical Moderator
April 19, 2023

Hello @Ranjeet Singh​ ,

Could you please precise the STM32 product you are using ?

Please check the UART Parameter Settings and the serial port parameter such as Baud rate, Word length, Parity and Stop Bits.

I advise you to take a look at this wiki page: Introduction to the UART I/F on NUCLEO-L476RG.

I hope this help you to solve the issue!

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
Ranjeet Singh
Senior
April 20, 2023

these are the clock setttinfg .but am doing wrong in clock side?
_legacyfs_online_stmicro_images_0693W00000biSrxQAE.png
_legacyfs_online_stmicro_images_0693W00000biSs7QAE.png
_legacyfs_online_stmicro_images_0693W00000biSsHQAU.pngthese are the output in which alphabats are missing


_legacyfs_online_stmicro_images_0693W00000biSp9QAE.pngthese are tera term settings
_legacyfs_online_stmicro_images_0693W00000biSuhQAE.png

Tesla DeLorean
Guru
April 19, 2023

Probably not an issue with the code you're showing, but elsewhere.

​

W​hat chip and board are you using?

Which clock source? Is that properly calibrated? Which UART and pins, connected to what?

​

W​ould suggest sending 0x55 'U' data patterns constantly and inspecting signal timing on a scope.

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

Related https://community.st.com/s/question/0D53W00002DyX2XSAV/serial-port-not-work

Make sure to provide more detail and context.

Identify the board, chip and mode of connectivity.

Focus on the cause, not the symptoms. You're not looking in the right place.

Here perhaps the timing, whether MSI or HSI clock sources use the right calibration values, and how accurately they are clocking.

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

this is the same question asked by me

Ranjeet Singh
Ranjeet SinghAuthorBest answer
Senior
April 20, 2023


_legacyfs_online_stmicro_images_0693W00000biSxbQAE.png
_legacyfs_online_stmicro_images_0693W00000biSxgQAE.png

this is the solution ,my code is working with this parameters