Skip to content
Commit e01662d3 authored by Paweł Zadrożniak's avatar Paweł Zadrożniak Committed by Anas Nashif
Browse files

drivers: usb: nordic: Fix for startup with USB cable attached.



Fixes bug introduced in #14875.
USBDETECTED event is be generated on cable attachment and
when cable is already attached during reset, but not when
the peripheral is re-initialized. When USB-enabled bootloader
is used, target application will not receive this event
and it needs to be generated again. This commit implements
a check against driver being enabled multiple times in case
of application without bootlader starting with cable attached
(both "fake" and "real" events are generated). Such dirty
trick allows bootloader to leave the peripheral in any state
before jumping to target application.

Fixes #15073

Signed-off-by: default avatarPaweł Zadrożniak <pawel.zadrozniak@nordicsemi.no>
parent 4fd9d89d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment