Open zach323 opened 3 years ago
UBOOT: Loaded Overlay:[BBORG_COMMS-00A2]
UBOOT: Loaded Overlay:[BB-UART4-00A0]
These two overlays got loaded for uart features. Thus if they used the pin, they would delete the universal "pin mode" option from config-pin and just enable usart on bootup..
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-UART4-00A0.dts#L36-L54
@pdp7 uart is already enabled, does this library have way to just use uart avaialble?
Regards,
UBOOT: Loaded Overlay:[BBORG_COMMS-00A2] UBOOT: Loaded Overlay:[BB-UART4-00A0]
These two overlays got loaded for uart features. Thus if they used the pin, they would delete the universal "pin mode" option from config-pin and just enable usart on bootup..
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-UART4-00A0.dts#L36-L54
@pdp7 uart is already enabled, does this library have way to just use uart avaialble?
Regards,
1) How do you disable BBORG_COMMS_00A2 from loading? 2) Does Adafruit need overlays loaded to use UART?
Thanks for the help!
HI @zach323 since the uart is already enabled on bootup, you should be able to access /dev/ttyS* thru python without the help of this io library.
Regards,
Hello,
So...just for sake of argument here, would one just use pyserial instead of UART.setup("P9_xx")
?
Seth
Hi there, I am trying to use Adafruit UART to enable UART4 to work with some modbus devices, but I am getting an error if I try to setup("UART4"). code
import Adafruit_BBIO.UART as u
u.setup("UART4")
py_setup_uart(UART4): set_pin_mode() failed for pin=P9_11Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: Set pin mode failed for uart channel.
sudo /opt/scripts/tools/version.sh output:
Here is my uEnv.txt. I have seen a lot of inconsistent information on uboot overlays, whether you have to use them, etc, what to change etc. Lots of google digging and conflicting information depending on the year.
I noticed that the P9.11 and P9.13 pins for UART4 aren't even showing up in my 'ls /sys/devices/platform/ocp | grep pinmux*'
I am still learning a lot about this device, but any help you could provide would be great. Thanks.