Skip to content

No DCD_EVENT_UNPLUGGED event for STM32 dwc2 #1476

@mauriciocirelli

Description

@mauriciocirelli

Operating System

Windows 10

Board

Custom based on STM32H7B3

Firmware

portable/st/stm32_fsdev/dcd_stm32_fsdev.c

What happened ?

Dear,

I have followed the example for CDC/MSC using FreeRTOS and have got pretty much everything working. Except for the disconnection event: unmount callback (tud_umount_cb) is not being called for this platform and driver. Mount callback (tud_mount_cb) happens as expected.

I am new to this library, so maybe I have messed up something, but as everything else is working, I guess I maybe facing a bug somewhere. Looking into the code, the old synopsys driver evokes the DCD_EVENT_UNPLUGGED event, but the new stm32_fsdev does not.

Any help would be much appreciated.

How to reproduce ?

Just connect the board using the new stm32_fsdev and look for the mount and unmount callbacks.

Debug Log as txt file

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions