GPIO pin state before main() with PWM driver used

Hello.

We have a problem on a custom board with nRF52832 chip and nRF Connect SDK 2.0.0.

We have a LED connected to a GPIO pin with active high level. We need to control it with PWM at some times and as simple GPIO at other. We noticed that the LED flashes at starting up and at powering off. I tried to read the GPIO OUT register at the beginning of main() before configuring PWM and GPIO and it has a 1 for the corresponding pin. Is there a way to keep a pin at 0 before kernel main task started?

Thanks.

Related