Debug Port
There is connector CN14 for Debugging.
GPIO / COM
Here is a 20pin Terminal Block that supports 2xRS232/485 and GPIOs.
RS-485
GPIO