USB host/device selection for PIC32MZ
Run into interesting issue with PIC32MZ USB operation. Looks like MCU using special USBID pin to select between device/host operation. Unfortunately I am using this pin for other purposes, so in my case USB always initializing as Host.
Harmony initializing HSEN, HSMODE bits of OTG register to 1. I attempted to override them manually, no effect:
UUSBOTGbits.HOSTREQ = 0;
UUSBOTGbits.HOSTMODE = 0;
Is there anyway to make device operate in non-host mode without manipulating state of USBID pin?