I started with the pwm_led example and merged some code from the SDK17 Pwm driver and it comiples and runs fine. I have a 16 khz period and a 50% duty cycle and if I put it on pins
4,5,6,7 things work just fine. but when i try to put it on p0.23 the processor starts rebooting. I know P0.23 is a push button but I do not care about the button. If i put the pwm output on P0.22 it goes from 3.0 to 1.3 volts. it will not go to ground. now on the nrf5340 DK board it says UART2 RX is using p0.22 . I tried to disable uart2 in my .overlay file with
&uart2 {
status = "disabled";
};
but there was no change on p0.22.
Any help would be much appreciated.
thanks
phil