

change pwm_handler to NULL is OK.
How to solve this problem?


change pwm_handler to NULL is OK.
How to solve this problem?
I'm seeing the same issue... I'll keep an eye on this case!
Ok, so the LED PWM sample you are trying to use, is using Zephyr's PWM drivers. Adding nrfx drivers into this makes the project more confusing.
But to fix the issue with error you need to add the following.
In zephyr\samples\drivers\led_pwm\prj.conf add:
CONFIG_NRFX_PWM0=y
Then on the top of your zephyr\samples\drivers\led_pwm\src\main.c add:
#include "nrfx_pwm.h"
In the main function (void main(void)) add IQR_CONNECT
IRQ_CONNECT(PWM0_IRQn,5, nrfx_isr, nrfx_pwm_0_irq_handler, 0);
This should allow you to change the handler of pwm_nrfx_init() in zephyr\drivers\pwm\pwm_nrfx.c.
Please note that we encourage users to use e.g. Hello World sample and adding the correct nrfx calls directly. You can use the nrfx sample zephyr\samples\boards\nrf\nrfx\ as a starting point.
The Common Application Framework LED module might also be an alternative. This uses the Zephyr PWM drivers. Located under nrf\subsys\caf