cancel
Showing results for 
Search instead for 
Did you mean: 

uart interrupt reception problem in stm32f103

abhi
Associate
Posted on June 03, 2016 at 06:46

hi,

i'm doing n interfacing a sensor with stm32f103 via uart with 4800bps odd parity nd 1 stop bit.the code is generated using cubemx 4.9.0 . in the main code i m trnsmitting  a string.

The problem is that wen i connect the sensor with the stm32 ,the there is no data is received in the interrupt receiver and only some of the letters of string  is transmitted. The data coming out of sensor is 5 byte continously.

pls help me..

thank you..

]
3 REPLIES 3
Rosiney Silva
Associate II
Posted on June 04, 2016 at 03:13

Do you tried to set the stm32 uart as 9O1(9 odd 1)?

abhi
Associate
Posted on June 06, 2016 at 11:55

Hi,

i tried 9bit mode with odd parity and checked.Wen i check via hyper terminal by sending 5 byte data and re transmitting the received data output is getting.but wen i connect the sensor the problem arises. no output.

give me a solution pls...

Posted on June 06, 2016 at 13:10

What sensor, connected how exactly?

What does the sending/receiving code look like?

Frame your problem in a way a solution can be suggested.

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