Sign Up

Unlock the Gateway: Join the Embed Threads

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Unlock the Possibilities: Dive In with Login Access

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Embed Threads

Embed Threads

Embed Threads Navigation

  • Blogs
  • Forum
  • About Us
  • Contact Us
  • Books
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Forum
  • Communities
  • Questions
    • New Questions
    • Must Read Questions
    • Trending Questions
    • Hot Questions
  • Polls
  • Groups
  • Add group
  • Badges
  • Users
  • Help
  • Blogs
  • Forum
  • About Us
  • Contact Us
  • Books
Paresh
  • 1
PareshBeginner
Asked: July 18, 20232023-07-18T08:57:25+00:00 2023-07-18T08:57:25+00:00In: Hardware Design and PCB Layout

USB Serial Port giving junk data

  • 1

We have a custom PCB board, and we’re making use of the CP2105 IC. But we’re getting junk data on the Serial output. Any idea on how to debug the issue?

The device is getting recognized and the baud rate is also verified.

Any suggestions are appreciated.

cp2105debuguartusb
  • 20 20 Answers
  • 233 Views
  • 0 Followers
  • 0
Share
  • Facebook
    Leave an answer

    Leave an answer
    Cancel reply

    Browse
    Captcha Click on image to update the captcha.

    20 Answers

    • Voted
    • Oldest
    • Recent
    1. shiva Beginner
      2023-07-18T11:47:48+00:00Added an answer on July 18, 2023 at 11:47 am

      Please also check the baud rate (9600 , 115200, etc.,)

      • 2
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • Paresh Beginner
        2023-07-18T12:10:10+00:00Replied to answer on July 18, 2023 at 12:10 pm

        Have cross verified it

        • 0
        • Reply
        • Share
          Share
          • Share onFacebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
    2. Hamza Beginner
      2023-07-18T09:29:49+00:00Added an answer on July 18, 2023 at 9:29 am

      Please share the circuit diagram that you have followed or designed, and then we will be able to identify the issue

      • 1
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • Paresh Beginner
        2023-07-18T12:12:09+00:00Replied to answer on July 18, 2023 at 12:12 pm

        We have multiple boards of the same design. Other boards are working. Only board is giving an issue. So circuit is not an issue.

        • 0
        • Reply
        • Share
          Share
          • Share onFacebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
        • Hamza
          2023-07-18T12:25:03+00:00Replied to answer on July 18, 2023 at 12:25 pm

          Have you used any ESD protection in your circuit?

          • 1
          • Reply
          • Share
            Share
            • Share onFacebook
            • Share on Twitter
            • Share on LinkedIn
            • Share on WhatsApp
          • Paresh Beginner
            2023-07-18T12:30:08+00:00Replied to answer on July 18, 2023 at 12:30 pm

            Yeah. It’s there

            • 0
            • Reply
            • Share
              Share
              • Share onFacebook
              • Share on Twitter
              • Share on LinkedIn
              • Share on WhatsApp
    3. navig2712 Pundit
      2023-07-18T10:43:12+00:00Added an answer on July 18, 2023 at 10:43 am

      Check TX and RX pins properly.
      Device getting recognised just means that D+ and D- pins are working and IC is working.
      That’s good but if you are receiving junk data it’s related to TX and RX line this has nothing to do with USB side.
      So try to debug that.

      • 1
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • Paresh Beginner
        2023-07-18T12:13:24+00:00Replied to answer on July 18, 2023 at 12:13 pm

        Are you asking to check the traces?

        Also, since I’m getting junk data doesn’t that mean there is proper connection?

        • 0
        • Reply
        • Share
          Share
          • Share onFacebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
        • navig2712 Pundit
          2023-07-18T12:20:02+00:00Replied to answer on July 18, 2023 at 12:20 pm

          Yes I am asking you to check with an Oscilloscope are you getting right bits at the end of the trace which is connecting to USBtoSerial IC just hook up TX line and check what you are getting.

          Because that’s the same data that is being printed over the screen.
          Junk data not necessarily means proper connection there “might” be something which is causing this data corruption(if you are saying that the baud rate is correct)
          Is it possible to share the circuit diagram?or layout?

          • 1
          • Reply
          • Share
            Share
            • Share onFacebook
            • Share on Twitter
            • Share on LinkedIn
            • Share on WhatsApp
          • navig2712 Pundit
            2023-07-18T12:21:05+00:00Replied to answer on July 18, 2023 at 12:21 pm

            Also if circuit is fine then it might be IC issue swap with another IC and check if problem still persist.

            • 1
            • Reply
            • Share
              Share
              • Share onFacebook
              • Share on Twitter
              • Share on LinkedIn
              • Share on WhatsApp
            • navig2712 Pundit
              2023-07-18T18:13:11+00:00Replied to answer on July 18, 2023 at 6:13 pm

              Well desoldering and soldering QFN package is not a big deal if you have a soldering station.
              Apart from that if circuit is working and this issue is just on this board it seems like a IC issue particularly but I Can’t tell until you probe TX line and update what you are getting.

              • 1
              • Share
                Share
                • Share onFacebook
                • Share on Twitter
                • Share on LinkedIn
                • Share on WhatsApp
            • navig2712 Pundit
              2023-07-19T06:08:31+00:00Replied to answer on July 19, 2023 at 6:08 am

              So yes I want you to hook up the TX pin to an oscilloscope and check and decode the data coming start by sending “Hello” from MCU and see what you are getting.
              OR
              If you don’t want to get into that much trouble take a working USB to Serial converter that are dirt cheap and easily available in market connect your TX line to RX for that converter and see if you are getting right data, If yes then the issue is with the IC if No then the issue is with the data that is being transmitted (MCU).

              Either way you will have your answer.
              Also before starting all this check the pins pf QFN package if they have been soldered properly ,Cold solder joint can also cause this is sort of issue.
              Use a thin pin multimeter for it.

              Let me know your progress.
              All the best.

              • 1
              • Share
                Share
                • Share onFacebook
                • Share on Twitter
                • Share on LinkedIn
                • Share on WhatsApp
            • Paresh Beginner
              2023-07-19T10:05:02+00:00Replied to answer on July 19, 2023 at 10:05 am

              Sure, will try it out. Thanks for the detailed reply

              • 1
              • Share
                Share
                • Share onFacebook
                • Share on Twitter
                • Share on LinkedIn
                • Share on WhatsApp
            • Paresh Beginner
              2023-07-18T12:23:56+00:00Replied to answer on July 18, 2023 at 12:23 pm

              The IC is in QFN package. So I wanted to keep that as the last option.

              • 0
              • Share
                Share
                • Share onFacebook
                • Share on Twitter
                • Share on LinkedIn
                • Share on WhatsApp
            • Paresh Beginner
              2023-07-19T04:35:24+00:00Replied to answer on July 19, 2023 at 4:35 am

              Can you explain how you want me to check the Tx / Rx line? Just the connectivity between the pin and connector?

              • 0
              • Share
                Share
                • Share onFacebook
                • Share on Twitter
                • Share on LinkedIn
                • Share on WhatsApp
    4. Ritesh236 Explainer
      2023-07-18T13:16:41+00:00Added an answer on July 18, 2023 at 1:16 pm

      Hello Paresh,

      Are you able to send data over TX pin like TX Pin is working or not? That you can check by sending some data from USB UART to your controller and read data over controller.

      If that is working fine it means your TX PATH is working while issue is into RX PATH or let me know if both are not working.

      Also, you can try testing using loopback like connect TX and RX together and verify that sent data are received on RX pin or not.

      Which boardrate are you using? Have you checked with all standard boardrates like 9600, 115200 etc?

      Regards,
      Ritesh Prajapati

      • 1
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • Paresh Beginner
        2023-07-19T04:34:40+00:00Replied to answer on July 19, 2023 at 4:34 am

        I have checked with different baud rates. All are giving junk values.
        Can you explain how you want me to check the Tx line? Just the connectivity between the pin and connector?

        • 0
        • Reply
        • Share
          Share
          • Share onFacebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
        • Ritesh236 Explainer
          2023-07-19T08:23:32+00:00Replied to answer on July 19, 2023 at 8:23 am

          Hello Paresh,

          if you want to check TX Line of MCU then send data from MCU and check received data is correct over Serial Terminal or not.

          If you want to check RX Line of MCU then send some data from Serial Terminal and validate into MCU with some ISR logic to print received data and check data are same or not. Also print received data into HEX print so that you can have idea like if any garbage value is received or not.

          Let me know if still you have any questions.

          Regards,
          Ritesh Prajapati

          • 1
          • Reply
          • Share
            Share
            • Share onFacebook
            • Share on Twitter
            • Share on LinkedIn
            • Share on WhatsApp
          • Paresh Beginner
            2023-07-19T10:22:34+00:00Replied to answer on July 19, 2023 at 10:22 am

            Sure, I will check it out.

            • 1
            • Reply
            • Share
              Share
              • Share onFacebook
              • Share on Twitter
              • Share on LinkedIn
              • Share on WhatsApp
            • alokm014 Enlightened
              2023-08-13T18:12:10+00:00Replied to answer on August 13, 2023 at 6:12 pm

              Has your problem been resolved?

              • 1
              • Share
                Share
                • Share onFacebook
                • Share on Twitter
                • Share on LinkedIn
                • Share on WhatsApp

    Sidebar

    Ask A Question

    Stats

    • Questions 85
    • Answers 945
    • Best Answers 15
    • Users 800

    Free PDF Downloads

    A Roadmap to a Successful Career

    HTTP, WS and TLS: The Complete Guide

    Embedded Interview Questions

    • Popular
    • Answers
    • alokm014

      Embedded System Testing: Strategies and Approaches

      • 270 Answers
    • BHASKAR

      RTC IN STM32 DATE PROBLEM

      • 62 Answers
    • Tanmoy Chandra Dey

      Why is the "ADDR flag" cleared without reading the SR2

      • 60 Answers
    • Aditya007

      Programming Error while using PICKIT4

      • 56 Answers
    • D Sai krishna

      STM32 board is not shown in Device Manager ( Not ...

      • 53 Answers
    • Maltepe Masaj Salonu
      Maltepe Masaj Salonu added an answer Hmm is anyone else having problems with the images on… June 7, 2025 at 3:41 am
    • How to take dianabol
      How to take dianabol added an answer By taking these steps, medical doctors can discover the proper… June 7, 2025 at 2:45 am
    • Supplements And Steroids
      Supplements And Steroids added an answer SARMs goal androgen receptors in tissue that promote muscle progress… June 7, 2025 at 2:42 am
    • buying real steroids
      buying real steroids added an answer They also promote nitrogen retention, which permits for more efficient… June 7, 2025 at 2:36 am
    • https://goldneonatal.com/newsletter/pgs/?comprar_dianabol_4.html
      https://goldneonatal.com/newsletter/pgs/?comprar_dianabol_4.html added an answer This product is very useful to men who have low… June 7, 2025 at 2:31 am

    Explore

    • Forum
    • Communities
    • Questions
      • New Questions
      • Must Read Questions
      • Trending Questions
      • Hot Questions
    • Polls
    • Groups
    • Add group
    • Badges
    • Users
    • Help

    Footer

    Embed Threads

    Embed Threads

    Join us on a transformative journey where knowledge is amplified and solutions are empowered.

    About Us

    • Blogs
    • Forum
    • About Us
    • Contact Us
    • Books

    Legal Stuffs

    • Privacy Policy
    • Adsense Disclaimer

    Help

    • Help
    • Contact Us

    Follow

    © 2024 Embed Threads. All Rights Reserved
    With Love by Embed Threads.