-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32WB: enable USB Device #12751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32WB: enable USB Device #12751
Conversation
@jeromecoutant, thank you for your changes. |
Thanks @jeromecoutant, we'll review and provide feedback ASAP |
Thank you for the PR @jeromecoutant! I checked our USB tests with
See the full table here.
A couple of comments regarding the results:
@jeromecoutant, could you re-check with |
@maciejbocianski could you run I can see errors related to USB configuration setting on my setup. E.g. this one:
|
@fkjagodzinski
|
@jeromecoutant When you get a chance, please review above tests |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
@MarceloSalazar |
Thanks Jerome, this makes sense to me. |
@donatieng could you review please? In the meantime I will start CI |
Test run: FAILEDSummary: 1 of 6 test jobs failed Failed test jobs:
|
What's this ? Thx |
CI restarted @jeromecoutant should be cleared once CI completes |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
See #13215 |
#define PMA_EP2_OUT_ADDR ((PMA_EP2_OUT_BASE + MAX_PACKET_SIZE_NON_ISO) | (PMA_EP2_OUT_BASE << 16U)) | ||
#define PMA_EP2_IN_ADDR (PMA_EP2_OUT_BASE + MAX_PACKET_SIZE_NON_ISO * 2) | ||
#define PMA_EP2_CMD_ADDR (PMA_EP2_IN_ADDR + MAX_PACKET_SIZE_NON_ISO) | ||
HAL_PCDEx_PMAConfig(&hpcd, LOG_OUT_TO_EP(2), PCD_DBL_BUF, PMA_EP2_OUT_ADDR); // HAL_PCDEx_PMAConfig always returns HAL_OK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we have a bug here causing endpoint wrong RAM buffer address
Shouldn't be PCD_SNG_BUF
here ? @jeromecoutant
@donatieng
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you meet some issue with STM32WB target?
or it is a question during review ?
I checked this commit: 4b29c4f
Tests are still OK, no regression.
Can you check it in your application ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was implementing two interface HID device and noticed that on EP2_OUT the driver read other RAM location than expected causing wrong data to be send to host. Changing to SNG_BUF fixes this problem.
Summary of changes
This enable USBDEVICE for STM32WB55
@LMESTM
@MarceloSalazar
@donatieng
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
USB tests are OK.
Also tested with an internal application
Reviewers