Topic 2 Lesson 4 of nRF Connect SDK Intermediate has an error

servo uses pwm0 device, channel 1 in DTS file.

But in its pinctrl file, GPIO P0.13 uses PWM_OUT0 which is channel 0. 

It should be changed to "psels = <NRF_PSEL(PWM_OUT1, 0, 13)>;". 

Also, it would be better to give a brief introduction about PWM module and its channels. 

For example, 52840 supports 4 PWM modules and each module can support up to 4 channels. 

Parents Reply Children
No Data
Related