I’m working with an STM32F042F4Px microcontroller and want to implement a USB full-speed (12 Mbps) device.
According to the datasheet, the chip offers:
- HSI48: internal 48 MHz RC oscillator with USB SOF auto-trim
- HSE: optional external crystal
Can the STM32F042F4Px’s internal HSI48 oscillator (with USB SOF auto-trim) meet this requirement and be selected as the USB clock in STM32CubeMX/HAL to drive the USB interface, or is an external crystal mandatory to comply with the USB specification?