How to disable Parallel Master Port Address pins in PIC32
The PIC32 Reference Manual describes how to do this using the PMCON register. From the manual:



The content of the register is described as follows, see the highlighted section in red:



If you have already set the ON bit low, then the functionality should revert to "normal". What's not so clear, but is buried in the reference manual, is that you also need to clear the PMAEN register:





However, having done that, it's possible that the pins you want to use are also affected by other peripherals and you may need to map inputs/outputs via PPS.

The pins you refer to are RD9 and RD10 in that device. The datasheet shows which other peripherals can use those pins: