nRF5_SDK_17.0.2\examples\peripheral\ADC\ work with I2C

Hello,

nRF5_SDK_17.0.2\examples\peripheral\ADC\ ,  keil5, see the zip codes.

USB uart (USBD_CDC_ACM), it work well,

another projece of I2C the same work well;

but  add I2C to USBD_CDC_ACM project, will not work,

it will got evt msg APP_USBD_EVT_POWER_REMOVED or lost msg.

tips: my I2C fun  run once take 300ms in main loop. 

even add while (app_usbd_event_queue_process()){}; to I2C loop300 every frame. the same some time can't finded device in PC.

loging TX pin have changed to 0x29.

What shall I do?

or how to initialize and uninitialize USBD dynamically when finish I2C fun?

5518.ADC.rar

   

Best regards

Related