Skip to main content
abhi
Associate
June 3, 2016
Question

uart interrupt reception problem in stm32f103

  • June 3, 2016
  • 3 replies
  • 877 views
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..

]
    This topic has been closed for replies.

    3 replies

    Rosiney Silva
    Associate
    June 4, 2016
    Posted on June 04, 2016 at 03:13

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

    abhi
    abhiAuthor
    Associate
    June 6, 2016
    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...

    Tesla DeLorean
    Guru
    June 6, 2016
    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 VenmoUp vote any posts that you find helpful, it shows what's working..