Hi, i have tested the usb cdc(single port) vcom example (frdmmcxa153_dev_cdc_vcom_bm) where it echoes back the characters received from host. I tried using a flag for device detach event in USB_DeviceCallback() function defined in application main code. It looks like there is no interrupt triggered for detach event.
I have enabled detach event by defining macro USB_DEVICE_CONFIG_DETACH_ENABLE with value 1, but main isr function USB_DeviceKhciIsrFunction(), inside USB0_IRQHandler() is not getting called.
in main(), am trying to send message with delay and this is supposed to stop and print a debug message as flag is changed if interrupt has triggered. Please find below the attcahed images for screenshots and let me know if i need to do some configuration.