To activate the RTS and CTS pins on Beaglebone, I followed several routes, but unfortunately I did not get any further.
1) the activation of the RXD and TXD was easier. I entered the command at uEnv.txt:
root@beaglebone:/boot# nano uEnv.txt
cmdline=coherent_pool=1M quiet cape_universal=enable
dtb=am335x-boneblack-emmc-overlay.dtb
then I can directly activate the pins in the code
//UART1
system("config-pin P9.26 uart"); // RXD
system("config-pin P9.24 uart"); // TXD
// UART4
system("config-pin P9.11 uart"); // RXD
system("config-pin P9.13 uart"); // TXD
if I want to activate a RTS or a CTS pin with this way,
system("config-pin P9.20 uart"); // CTS
I get the error message
Pin is not modifyable: P9_20 i2c2_sda
information:
root@beaglebone:~# config-pin -l P9_20
Pin is not modifyable: P9_20 i2c2_sda
2) I also used a second way, I commented on the komand at uEnv.txt.
# cmdline = coherent_pool = 1M quiet cape_universal = enable
I restarted Beaglebone and prepared that:
root@beaglebone:/lib/firmware# cat $SLOTS
0: PF---- -1
1: PF---- -1
2: PF---- -1
3: PF---- -1
4: P-O-L- 0 Override Board Name,00A0,Override Manuf,BB-UART4
5: P-O-L- 1 Override Board Name,00A0,Override Manuf,BB-UART1
6: P-O-L- 2 Override Board Name,00A0,Override Manuf,BB-UART4-RTSCTS
7: P-O-L- 3 Override Board Name,00A0,Override Manuf,BB-UART1-RTSCTS
in this case, my code hangs at read function, which responds to code as if UART is not enabled
3) I also tried the command before
capemgr.enable_partno=BB-UART1,BB-UART4
my code also hangs in the read function.
Can someone say what should I do?