We are preparing to use DWC2 usb2.0 otg core, but we confused the Dwc2 reference driver code with Linux OS.
Do you have a NXP develop kit with Dwc2 and reference dwc2 driver code without OS?
The USB stack in NXP sdk is based on NXP MCU. It can work with FreeRTOS and bare metal.
You can download NXP sdk from below link. It is not based on dwc2.
Welcome | MCUXpresso SDK Builder