dmitrystu / libusb_stm32

Lightweight USB device Stack for STM32 microcontrollers
Apache License 2.0
713 stars 163 forks source link

Porting to G0x1 #83

Open dzarda opened 3 years ago

dzarda commented 3 years ago

I reckon the upcoming G0C1/G0B1 ought to be successful. We should add support for their USB cell.

They call it USB full-speed host/device interface, and it appears that they extended the existing dev/fs with backwards compatibility. Host bits seem to be a simple addition in register description, occupying the high halfword. (We should probably ignore the host functionality...?)

obrazek

G4 map for comparison: ![obrazek](https://user-images.githubusercontent.com/3955056/109553780-b9461c80-7ad3-11eb-8700-28a684891cb6.png)

One notable change is the 32-bit PMA access:

obrazek


Which of our implementation files would be an appropriate starting point?

Cheers

dmitrystu commented 3 years ago

I think it's close to L052. Unfortunately, there is no proper G0 on the local suppliers stock.

dzarda commented 3 years ago

Yeah patient we must be

dzarda commented 3 years ago

Mouser has a few pieces stocked. obrazek

ghent360 commented 1 year ago

G0s a widely available now, you can get several nucleo G0 kits from mouser.

GrantMTG commented 1 year ago

That's good news!

ghent360 commented 1 year ago

The PMA on the G0 is 32-bit access only. The rest is more or less the same with some reg names changed.

Created PR #123.