The NRFX COMP driver that is included in SDK 17.02 enables the COMP peripheral before configuring the other COMP registers. The product specification specifies:
Before enabling the comparator via the ENABLE register, the following registers must be configured for the single-ended mode:
It has been observed that this has caused a glitch on the pin that is adjacent to the one assigned for the COMP peripheral.