libusb_stm32 icon indicating copy to clipboard operation
libusb_stm32 copied to clipboard

Porting to G0x1

Open dzarda opened this issue 5 years ago • 6 comments

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

One notable change is the 32-bit PMA access:

obrazek


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

Cheers

dzarda avatar Mar 01 '21 20:03 dzarda

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

dmitrystu avatar Mar 05 '21 11:03 dmitrystu

Yeah patient we must be

dzarda avatar Mar 05 '21 14:03 dzarda

Mouser has a few pieces stocked. obrazek

dzarda avatar Mar 12 '21 13:03 dzarda

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

ghent360 avatar Mar 18 '23 09:03 ghent360

That's good news!

GrantMTG avatar Mar 22 '23 22:03 GrantMTG

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.

ghent360 avatar Mar 27 '23 01:03 ghent360