cancel
Showing results for 
Search instead for 
Did you mean: 

USB comms getting started.

LHoug.1
Associate II

I am tasked to create a usb driver for a board running STM32H745 chip. I have been trying to use the datasheet to get the usb driver going.

The boards will always run in device mode and has a usb-b cables plugged in at powerup for most of my tests

I have the clocks enabled and selected :

RCC->AHB1ENR = RCC_AHB1ENR_USB1OTGHSULPIEN |

RCC_AHB1ENR_USB1OTGHSEN;

RCC->D2CCIP2R = (0b01 << RCC_D2CCIP2R_USBSEL_Pos); // USBOTG1/2=pll1_q_clk=61.5Mhz

Then I would folow the core init step:

RM0399 60.15.1 Core initialization

Am I correct to assume the OTG interrupt should assert when the cable is plugged in (at powerup or re-interted).

Any advice would be appreciated

0 REPLIES 0