Comments (7)
Looks like it's fixed. Could you please do an independent test then i will merge this branch.
from libusb_stm32.
OMG. Some things from ST make me crazy. Is this fix works for the multiple endpoints? I have no L151 in my lab, so I can't do a test.
from libusb_stm32.
OMG. Some things from ST make me crazy. Is this fix works for the multiple endpoints? I have no L151 in my lab, so I can't do a test.
I have Control Endpoint and 2 Bulk IN endpoints. Fix works well.
from libusb_stm32.
Could you please test with the assembly version of the driver? Looks like it's correct for L151.
libusb_stm32/src/usbd_stm32l100_devfs_asm.S
Line 419 in 0a0a24f
libusb_stm32/src/usbd_stm32l100_devfs_asm.S
Line 499 in 0a0a24f
For L100 it works well in both cases. Perhaps it's a cause that i didn't discover this bug.
from libusb_stm32.
Just testing assembler version. pma_write and pma_read works well.
But my BULK endpoint didn't works.
Endpoints configure as:
usbd_ep_config(dev, 0x02, USB_EPTYPE_BULK /*| USB_EPTYPE_DBLBUF*/, 0x40);
usbd_ep_config(dev, 0x05, USB_EPTYPE_BULK /*| USB_EPTYPE_DBLBUF*/, 0x40);
usbd_reg_endpoint(dev, 0x02, txd1_ep_cb);
usbd_reg_endpoint(dev, 0x05, txd2_ep_cb);
And i have STALL packet on USB analyzer on both endpoints.
Seems with asm driver endpoint didn't config correctly (C version works well)
I not familiar with asm, its hard to debug this for me
from libusb_stm32.
Confirmed for large (>=64 bytes) endpoints.
from libusb_stm32.
Test done. Asm and C version works well. Thanks for fixing.
from libusb_stm32.
Related Issues (20)
- STM32F411: Sending corrupted data HOT 18
- Thoughts on unimplemented USB_STD_SET_FEATURE & USB_STD_CLEAR_FEATURE for Device? HOT 7
- USB Compliance test failed (Chapter9) HOT 6
- Howto use this lib in a real project? HOT 3
- Greetings HOT 1
- cdc_loop example at high speed HOT 3
- Mass storage? HOT 1
- Add STM32 U5 Support HOT 2
- Add common usb_conf.h HOT 1
- Missing STM32F103x8
- Host?
- Missing vendor request demo
- with pedantic, this two places wont compile HOT 2
- STM32F411 port can't send more than 64 bytes HOT 8
- Clock setup in cdc_init_rcc() for STM32F411 is incorrect HOT 1
- STM32L476RG assert failed: endpoint busy HOT 1
- Get data for USB HID Keyboard's LED via Class Request 0x09 (Set Report)? HOT 3
- Best way to control EP data send flow (ACK/NACK)? HOT 1
- Warning in usbd_stm32f103_devfs.c HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libusb_stm32.