Repurpose debug UART as GPIO
#1
Is it possible to reuse the SoC debug UART as two independent GPIO pins that can be controlled from Linux? If so, how?
  Reply
#2
Without revisiting the schematics, I'll say "no" until someone confirms it.

But converting RS232 to as much GPIO as you care to multiplex is do-able, even with off-the-shelf controllers. However I'm not aware of any that are cheap (think obscure industrial automation) nor any that would work at the PBPs baud rate. But if you're savvy you could make your own controller with a BASIC Stamp, Arduino, or even RockPro64.

What's even easier and much cheaper, is USB GPIO. You can even hide this inside the case (I've already thought about doing this).
:wq



[ SRA accepts you ]
  Reply
#3
(04-11-2023, 06:26 PM)KC9UDX Wrote: Without revisiting the schematics, I'll say "no" until someone confirms it.

But converting RS232 to as much GPIO as you care to multiplex is do-able, even with off-the-shelf controllers.  However I'm not aware of any that are cheap (think obscure industrial automation) nor any that would work at the PBPs baud rate.  But if you're savvy you could make your own controller with a BASIC Stamp, Arduino, or even RockPro64.

What's even easier and much cheaper, is USB GPIO.  You can even hide this inside the case (I've already thought about doing this).

I was planning on rolling my own solution for UART <--> GPIO conversion with an AVR if I needed to. But USB GPIO might be easier - Are there any USB pads outside the shielding (I'm 100% not removing it if not necessary)?

Additionally, is it straightforward to disable the debug console on the serial port? So that it doesn't interfere with the GPIO conversion. Is it simply the same steps as it might be on a Raspberry Pi board?
  Reply
#4
I think there are. I had planned on using USB internally. But I could be wrong. It should be easy to tell by looking at the schematic and board layout.

Disabling the console would have to be done in your kernel (and U-Boot). It won't be the same as a Pi.
:wq



[ SRA accepts you ]
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Using UART VoxUnius 13 15,696 11-22-2019, 05:01 AM
Last Post: Arwen

Forum Jump:


Users browsing this thread: 1 Guest(s)