cancel
Showing results for 
Search instead for 
Did you mean: 

USART Rx interrupt NOT Work

SoHaeng.Lee
Associate II
Posted on October 17, 2017 at 18:03

0690X00000608eIQAQ.png

I tested three devices all day long today.

All devices are connected to the USART, but the incoming interrupt does not work at all.

A program that connects the Lo Ra modules, GPS modules, and wifi modules to USART 1 and outputs the data sent to USART 2.

However, the Rx Interrupt does not work at all.

Attach the project file.

Note: this post was migrated and contained many threaded conversations, some content may be missing.
26 REPLIES 26
Posted on October 20, 2017 at 03:44

Great, so your basically seeing exactly what i told you would happen!

Only thing you didn't say, is where it ended up when it didn't interrupt.

Which is in the error handler, if you added one... did you? what was the error?

Posted on October 21, 2017 at 06:13

At 9600 bps, sometimes rx interrupt stops.

Sometimes it stops in a few minutes or stops in a matter of hours.

However, the scope can still confirm that the data is still transferred.

The problem remains unsolved.

Posted on October 21, 2017 at 06:19

At 9600 bps, sometimes rx interrupt stops. Sometimes it stops in a few minutes or stops in a matter of hours.

However, the scope can still confirm that the data is still transferred.

The problem remains unsolved.

Posted on October 21, 2017 at 16:45

>>

The problem remains unsolved.

I'm not sure what the expectations are here, you might have to code things differently and more defensively against errors or timeouts. Coding assistance for HAL projects is limited.

Attached is a test supporting 115200 baud on the USART2 (VCP) and 9600 on the USART1 (GPS), please try this and report experience. There is some buffering, but no flow control.

________________

Attachments :

NUCLEO53-F446RE-USART1_2_FORWARD_001.hex.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyLn&d=%2Fa%2F0X0000000b6P%2Fw.B8DB1tIV3_tlpl8RJhak87sGV1_aJ0IzZup19tBMc&asPdf=false
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
roseanne qiu
Associate II
Posted on June 19, 2018 at 16:33

Dear Sohaeng:

I also have the same problem with using Nucleo UART6 without interrupt.

have you solve the problem? if so , how do you solve? 

thanks

roseanne

Posted on June 19, 2018 at 16:49

 ,

 ,

But not the same board right?

https://community.st.com/0D50X00009XkWIoSAN

 ,
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 19, 2018 at 18:04

Dear Clive:

same board. I have both uart and timer interrupt problems. 

the reset problem has been found only on my PC connecting to the nucleo board, 

if the nucleo is connected to other PC, there is no problem.

thanks

rose