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
STM32L4: Add support of the new USB Device API #8665
STM32L4: Add support of the new USB Device API #8665
Conversation
@c1728p9 This review has been waiting for 7 days could you please take a look asap |
@@ -311,10 +310,10 @@ __weak void HAL_PCD_MspDeInit(PCD_HandleTypeDef *hpcd) | |||
*/ | |||
HAL_StatusTypeDef HAL_PCD_Start(PCD_HandleTypeDef *hpcd) | |||
{ | |||
__HAL_LOCK(hpcd); | |||
// MBED PATCH __HAL_LOCK(hpcd); |
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.
Why was the lock removed?
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.
It has been removed in the F4 file so I just did the same...
hpcd->EPLock[index].Lock = HAL_UNLOCKED; | ||
|
||
for (index = 0; index < hpcd->Init.dev_endpoints ; index++) { // MBED PATCH | ||
hpcd->EPLock[index].Lock = HAL_UNLOCKED; |
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.
Is this just cosmetic?
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.
Yes
Note: we are currently having high load on the CI. It might take some time. @c1728p9 this is not scheduled for 5.11 , is it? |
Info: This PR has been re-bundled into a new rollup PR (#8768). No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged. |
OK. I will not add more commits here. I will send a new PR later to align the PCD functions (Init, Start, Stop) in the F2, F4, F7 and L4 families. |
@bcostm It looks like both PRs in the last rollup PR had issues. Please take a look at the L4-related build failures: #8768 (comment) |
18037c6
to
da471ab
Compare
Rebased. I don't understand the build errors with the rollup PR for the L4 boards related to USB ? Because these boards don't have the USBDEVICE macro in targets.json. How is it possible ? |
@bcostm It's possible it was an interpretation error on my part. Restarting CI. |
I have reproduced the build error and found the root cause. I'll send a new commit to fix it. |
This answers my question I asked a week ago above - this is targeting 5.11. There were build problems and CI issues, we migrated to the new CI so improve. We will start CI soon (rollup PR and kvstore need to pass first , they should finish within few hours). |
CI started |
This is the build failure:
I do not see any change related to this. @jarvte CAn you review the failure? I looked at the cellular example, there were recent commits (related to this failure) ? Did anything break? |
sigh And now the feature branch itself needs a rebase because of Travis CI fixes... @bcostm Will start in a bit once the feature branch is sorted out. The TLDR is that the feature branch needs this PR (#9289) and a fix for an astyle simplification which I'm resolving now (ref: #9287 (comment)). |
Note: #7976 (comment) |
@c1728p9 Can you help rebasing the branch please? |
8b6fffb
to
15f9389
Compare
This function is for USB_OTG_FS devices only. Move it in the correct place (in "#ifdef USB_OTG_FS" area).
e8c5762
to
72e0a98
Compare
Rebased |
I restarted travis failure, and will schedule CI as soon as CI is back from updates |
CI restarted |
Test run: FAILEDSummary: 3 of 7 test jobs failed Failed test jobs:
|
|
I don't understand what happens here ??? It is the same error as 10 days ago which I already resolved. Now it comes back again after a Rebase ? @jeromecoutant can you please have a look ? |
targets/targets.json
Outdated
@@ -3777,6 +3777,7 @@ | |||
"TRNG", | |||
"FLASH", | |||
"QSPI", | |||
"USBDEVICE", |
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.
"USBDEVICE", |
72e0a98
to
bd1c700
Compare
CI restart :-) |
CI restarted |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Test restarted (CI agent failures) |
Description
Enable new USB Device API on the following STM32L4 platforms:
The same USB HAL patch as done for STM32F4 and STM32F2 has been applied (see PRs #7322 and #8583)
Tests
Pull request type