Skip to main content
hemant
Associate II
July 6, 2009
Question

UART1 problem

  • July 6, 2009
  • 2 replies
  • 718 views
Posted on July 06, 2009 at 06:55

UART1 problem

    This topic has been closed for replies.

    2 replies

    st3
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:16

    I think it is far more likely that your code has a bug (or bugs) that is/are causing the data corruption...

    hemant
    hemantAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:16

    I am using STM32F103ZET6 in my project.

    I am facing the problem with UART1, which seems to work if it is the only

    peripheral used in the system, i.e. as per the sample code for the UART.

    In my project, when i try to send the data to PC just after power on, it sends correctly.

    But after i start other peripheral like ADC, DAC, Timers,DMA , then it sends the data, but incorrect (shows unreadable characters on the hyper terminal).

    I have tried in polled & interrupt mode, @ different baud rates (9600 to 57600), and tried changing the PC, but i does not seem to work.

    I had some info from the ST's web site stating that the Revision Z is having problem with compilers and is discomtinued, and Revision Y is the version to be used.

    I wonder this behaviour of the USRT is due to the fact that revision Z is used?

    Can some one help me solve the problem.

    Regards,

    HEMANT