Skip to content

Commit dde7bff

Browse files
committed
Added code to ignore ZLP packets on the ISOOUT endpoint... not fixing issue yet
1 parent d3844a1 commit dde7bff

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhy_Nordic.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,18 @@ void USBPhyHw::process() {
467467
events->ep0_out();
468468
}
469469
else
470+
{
471+
// TODO - this may impact valid ZLP transfers
472+
// on the ISOOUT endpoint
473+
// If ISOOUT endpoint transaction occurred
474+
// and the ZERO bit of SIZE.ISOOUT is set...
475+
// ignore it for now... possible hardware bug?
476+
if((usb_event.data.eptransfer.ep == NRF_DRV_USBD_EPOUT8)
477+
&& (NRF_USBD->SIZE.ISOOUT & (1 << 16)))
478+
break;
479+
470480
events->out((usb_ep_t) usb_event.data.eptransfer.ep);
481+
}
471482
}
472483
}
473484
break;

0 commit comments

Comments
 (0)