Hi
I am developing a bootloader for nRF52840 using SDK 15.2.0 and s140_nrf52_6.1.0_softdevice, that should support both USBD and BLE transports.
The first transport layer initiated inside 'nrf_dfu_transports_init' is the USBD ('usb_dfu_transport_init').
Inside 'app_usbd_power_events_enable' the interrupt handler is set to be 'app_usbd_power_event_handler', and than USB power events are enabled ('nrfx_power_usbevt_enable').
The problem is that is I have a USBD event pending when I enable USB events the Default_Handler is called instead of 'app_usbd_power_event_handler'.
However, if I have a USB power event after the second transport layer is initiated ('ble_dfu_transport_init') , than the correct interrupt handler is called ('app_usbd_power_event_handler').
Am I doing something wrong?
Thanks,
Yaron