Close

ECHO 2-3

A project log for Antti Easy Hacks

Collection of really simple hacks of mine

antti-lukatsAntti Lukats 08/22/2015 at 10:462 Comments

Hey my UART is not working. The engineer looks at his microcontroller board or even worse FPGA board.

How many times I have heard it.

UART we have a problem..

This is generic way to troubleshoot RS232C UART problem.

It is called loopback: you take tweazers, and short pins 2-3 creating a TXD to RXD loopback.

And this is how to test UART problem with FPGA - you create a HARD LOOPBACK without using the tweazers: you just say I want electrical signal from UART input to be forwarded to the UART output.

Whenever you have UART issue, be it with real RS232C cable or with FPGA, the first thing to try is echo.

If you get ECHO back then you know that

  1. the terminal you use to send out data to the cable you think it shoud does do it
  2. the terminal you use can can actually send and receive data
  3. that the hardware that is connected to the cable you think the terminal sends data is actually working

Echo loopback with Microcontroller is a bit harder task, it depends on the microcontroller, toolchain, language, peripherals, O/S and libraries being used. If the UART pins can be configured as GPIO, then the "hard loopback" can be implemented as tight loop with GPIO read and writes.

Discussions

jaromir.sukuba wrote 08/27/2015 at 11:22 point

Nice. 

Once I used paperclip for 2-3 echo. Paperclip is handy "tool".

  Are you sure? yes | no

Yann Guidon / YGDES wrote 08/27/2015 at 15:57 point

Or a cut resistor wire :-)

  Are you sure? yes | no