I also figured out that i can decompile the /boot/script.bin to the original fex file:
bin2fex script.bin > script.fex
In there I can see that no RTS signal is configured for uart2 (for some reason the is also none configured for uart0 which doesn't match with the output above for som reason!?)
No RTS on NanoPi Neo UART2
in Allwinner sunxi
Posted
Hi,
I'm fairly new to SBCs and Linux and try to get RS485 working on a NanoPi NEO running Armbian (Legacy 3.4.113).
I build a custom shield for the NanoPi Neo with a MAX3485 taht is connected to the UART2 (TX,RX,RTS) but so far only transmission works.
This is because the RTS pin which I planned to use for toggling the direction pins is always high.
I tried to use ioctrl to have it been toggled automatically, but had no success so far.
I'm tried to figure out whats the problem and I believe that the configuration of the UART2 does not include the RTS signal:
I also figured out that i can decompile the /boot/script.bin to the original fex file:
bin2fex script.bin > script.fex
In there I can see that no RTS signal is configured for uart2 (for some reason the is also none configured for uart0 which doesn't match with the output above for som reason!?)
The compile it again, replace the current script.bin with the new one and reboot in order to get RTS working?
Any help is highly appreciated!