Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Why PIC32MZ EF USB can fail to enumerate while the CPU clock works

A running PIC32MZ EF CPU does not prove that its high-speed USB PHY has the correct reference. Microchip shows a dedicated USB PLL fed from the Primary Oscillator, POSC. The USB reference must be 12 or 24 MHz. Match UPLLFSEL in DEVCFG2 to the actual reference: zero for 12 MHz and one for 24 MHz. Adjusting the system PLL input divider for the CPU does not repair a wrong USB reference selection.

For example, a board uses a suitable 24 MHz SaRonix-eCera FM oscillator with the documented active-clock configuration of POSC. The CPU runs test code, but the firmware was built with the USB setting from a 12 MHz board. Read the programmed configuration on the device rather than assuming the build-time file was applied. A scope trace showing 24 MHz or a working serial console is not proof of the correct UPLL selection. Do not copy the PIC32MX approach of dividing a 20 MHz source down to 4 MHz for USB: Microchip explicitly distinguishes that older input architecture from PIC32MZ EF.

Check the active oscillator's ordered voltage and logic interface, actual POSC waveform and board oscillator mode. Confirm the bit in the programmed image and review USB initialization and host enumeration independently. If the bit and reference match but USB still fails, the power, reset, physical interface and firmware remain separate checks.

For production, record the precise device suffix, firmware build and configuration word. When the platform has both 12 MHz and 24 MHz BOM variants, bind the setting to the populated variant and keep separate acceptance evidence for CPU operation and successful USB enumeration.

Related selection guide: MERLIN Crystal Timing: Configuring the PIC18F4550 USB clock path from a 20 MHz crystal to 48 MHz

Resource link: https://www.mecxtal.com.cn/en/handbook/20mhz-crystal-pic18f4550-usb-plldiv.html

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.