ok
ok
I got the following error when running your code:
app: ERROR 3735928559 [Unknown error code] at C:\testing SDK\nRF5_SDK_17.1.0_ddde560\components\libraries\usbd\app_usbd.c:817
You should move the call to nrf_drv_clock_init() before your call to app_usbd_init(). I'm not sure if this is causing the issue you are seeing, but I'm not seeing any other issues when running your code. I don't have the TWI device connected, so the code is stuck at waiting for m_xfer_done, not sure if your issues occur after this point?
I got the following error when running your code:
app: ERROR 3735928559 [Unknown error code] at C:\testing SDK\nRF5_SDK_17.1.0_ddde560\components\libraries\usbd\app_usbd.c:817
You should move the call to nrf_drv_clock_init() before your call to app_usbd_init(). I'm not sure if this is causing the issue you are seeing, but I'm not seeing any other issues when running your code. I don't have the TWI device connected, so the code is stuck at waiting for m_xfer_done, not sure if your issues occur after this point?