dmitrystu / libusb_stm32

Lightweight USB device Stack for STM32 microcontrollers
Apache License 2.0
696 stars 160 forks source link

Fix PMA offset in F103 ASM driver #112

Closed vvg77ripe closed 2 years ago

vvg77ripe commented 2 years ago

Valid buffer address is PMABASE + RXADDR

dmitrystu commented 2 years ago

Thnx. Looks like this bug coming from #70. So strange it wasn't discovered by hardware tests. I can't check HW right now, Is this bug and fix confirmed on real HW?

vvg77ripe commented 2 years ago

Yes, on my board with STM32F303CC it works ok. With original driver ep_read skips first 8 bytes on endpoint 1.