2.3.5 Unused I/O Pins

It is recommended that unused I/O pins must not be left floating as inputs. They can be configured as inputs and pulled up, or alternatively, depending on the application, they can be pulled down.