This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Memory leak with usb cdc driver

  
Hi,
i am working with usb cdc driver (sdk 15.3 and nrf52840) and i have a problem .
This is my variables initialization
APP_USBD_CDC_ACM_GLOBAL_DEF(m_app_cdc_acm,
                            cdc_acm_user_ev_handler,
                            CDC_ACM_COMM_INTERFACE,
                            CDC_ACM_DATA_INTERFACE,
......
static const app_usbd_config_t usbd_config = {
.ev_isr_handler = usb_new_event_isr_handler,
.ev_state_proc  = usbd_user_ev_handler
...

When usb is not working properly , i see the function "usb_new_event_isr_handler"
is called but the function "cdc_acm_user_ev_handler"
(with event equal to APP_USBD_CDC_ACM_USER_EVT_RX_DONE) it's not called.
In this situation the data on usb are not received  , only after some time
or when i received some data usb is unblock.
However even if the usb has "recovered" i also see a memory leak (48 bytes).
Does anyone have any idea why in some situations the usb driver dont call
the function (with APP_USBD_CDC_ACM_USER_EVT_RX_DONE) to download data ?

Thanks in advance
Andy

Parents Reply Children
No Data
Related