cancel
Showing results for 
Search instead for 
Did you mean: 

serial data droping

Ranjeet Singh
Senior


_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

1 ACCEPTED SOLUTION

Accepted Solutions
Ranjeet Singh
Senior


_legacyfs_online_stmicro_images_0693W00000biSxbQAE.png
_legacyfs_online_stmicro_images_0693W00000biSxgQAE.png

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

View solution in original post

8 REPLIES 8
KDJEM.1
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.

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
Up vote any posts that you find helpful, it shows what's working..

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
Up vote any posts that you find helpful, it shows what's working..

this is the same question asked by me

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

If this board is using an ST-LINK/V3 watch that HSE BYPASS is likely 8.333 MHz not 8.0 MHz​

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


_legacyfs_online_stmicro_images_0693W00000biSxbQAE.png
_legacyfs_online_stmicro_images_0693W00000biSxgQAE.png

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

thank you ,my code is working ,setting are mention below