Since I was not getting any logs on UART. I tried it on all 3 : UART0, UART1 and UART2 one by one I have now ordered logic level converter so that I can convert 3.3V to 1.8V signals, but till it arrives, what is the chance that my board’s TX, RX pins are already damaged?
I had connect a FTDI serial board to hikey.
It works fine.
You may check your TX/RX on FTDI serial board connect to RX/TX and gound pin on Hikey.
And baudrate set to 115200 in minicom or putty.
In my case, I don’t need to level shift 3.3V to 1.8V.
By the way, This is my serial board. For your reference.
Yes, I indeed realised later that I connected TX to TX and RX to RX, which should have been the opposite. But I didn’t have courage to try again with proper connection with 3.3V serial cable, as there is still chance of damage, if not already done. So I am waiting for my logic level converter to be delivered.
How long have you been using this setup? Because I see yours is working fine, but I would still recommend to use 1.8V serial cable or logic level converter, just to be safe. I am not sure though if its really needed.
If some official Hikey member can confirm that 3.3 V serial is equally safe, then we should be good.
3.3v is far beyond the specification of the pins. Even if it works most of the time it cannot be described as “safe”.
Whether it works will depend on a number of things such as how much current you adaptor can dump into an over volted pin and what logic level you adaptor observes 1.8v to be (in TTL logic 1.8v is an indeterminate value; neither 0 nor 1).
OK. So I read the datasheet for TTL-232R cables and the very first line says
"Each TTL-232R cable contains a small internal electronic circuit board, utilising the FT232R, which is
encapsulated into the USB connector end of the cable. "
and since FT232R datasheet says it has integrated level converter for 1.8V interfacing, it means it should work on Hikey with no need for external level converters. I will now go ahead and connected TX-RX and RX-TX and try again. hopefully, it should work.
Moral of the story “read datasheets for all the confusions”
+1.8V to +5.25V supply to the UART Interface and CBUS group pins
(1...3, 5, 6, 9...14, 22, 23). In USB bus powered designs connect this pin
to 3V3OUT pin to drive out at +3.3V levels, or connect to VCC to drive
out at 5V CMOS level. This pin can also be supplied with an external
+1.8V to +2.8V supply in order to drive outputs at lower levels. It should
be noted that in this case this supply should originate from the same
source as the supply to VCC. This means that in bus powered designs
a regulator which is supplied by the +5V on the USB bus should be used.
So, in short, voltage on VCCIO defines the TTL level, and I suppose it’s hardwired depending on cables/packages (TTL-232RG-VREG1V8-WE, TTL-232R-3V3…).
If you have doubt on voltages I assume you can only connect GND and board TX (PC RX) pin.
Please, also ensure you do not enable any flow control on PC side.
Also worth noting is that a lot of the “FTDI breakout” boards do NOT adhere to the voltage they claim to. One that I have which is supposedly a “3.3v” is actually running the I/O lines at 3.8. I would never hook that up to any 96boards SBC (and funny thing is that it was actually delivered WITH a hikey960! Scary!). For me that particular board is for ESP8266. While still concerning that it is over spec, ESP8266 are so cheap (<$1) that if I did cook one, I wouldn’t lose any sleep over it.
I finally got the logs on serial with hikey…with connecting just 3 cables RX, TX and GND. Looks like the assumptions were correct.
But it didn’t last long.
After 2-3 minutes I started getting random characters. Didn’t do anything, it happened itself.
Now I get random characters on minicom even if I bring my hand close to my laptop or even touch the rubber portion of the cable. Even if I touch the metallic legs of my table on which my setup lies, I get random characters on screen. If I leave the setup idle,nothing comes on minicom.
I am not an electrical/electronic engineers but I guess some static electricity issue is there… I am confused what to do now. Facing this first time in my life.
Confused whether to laugh or bang my head, I can fix those nasty kernel issues, but this is really annoying me now. Seriously demotivating.
It’s not a so bad investment for $5, and you gain level shifters on I/Os at the same time, though the audio part will not be functional. You can also use the UART mezzanine or any 1V8 FTDI (e.g. TTL-232RG-VREG1V8).
Because its not just UART, later some day, I will need level shifting for other GPIO pins. And logic level converters are generic as they can be used with any board. Not like audio mezzanine or 960 UART adapters which are specific to hikey.
Are logic level converters helpful here with Hikey?