Skip to content

Device crashes when starting with USB connected #15073

@pdunaj

Description

@pdunaj

Describe the bug

ASSERTION FAIL [m_drv_state == NRFX_DRV_STATE_INITIALIZED] @ /home/pdunaj/work/ncs/zephyr/ext/hal/nordic/nrfx/drivers/src/nrfx_usbd.c:1708
void nrfx_usbd_enable(void)                                                                                              
{                                                                                                                        
    NRFX_ASSERT(m_drv_state == NRFX_DRV_STATE_INITIALIZED);

To Reproduce
Steps to reproduce the behavior:
Connect USB cable, observe USB working fine. Reset device - observe device dying.

Expected behavior
Device should be able to work fine when starting with USB connected.

Impact
Showstopper

Screenshots or console output

Environment (please complete the following information):
zephyr ncs: 0bf5263b0522bb5cfac84eefdfdee86dc2c67e3e (upstream d3bb3cf)

Additional context
N/A

Metadata

Metadata

Labels

area: USBUniversal Serial BusbugThe issue is a bug, or the PR is fixing a bugplatform: nRFNordic nRFxpriority: highHigh impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions