-
Notifications
You must be signed in to change notification settings - Fork 3k
experimental - add ST NUCLEO L073RZ USB support #11360
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
experimental - add ST NUCLEO L073RZ USB support #11360
Conversation
@paul-szczepanek-arm, thank you for your changes. |
@ARMmbed/team-st-mcd please have a look |
Hi |
@@ -1369,8 +1369,7 @@ def ep_test_abort(dev, log, verbose=False): | |||
payload_size = (NUM_PACKETS_UNTIL_ABORT + NUM_PACKETS_AFTER_ABORT) * ep_out.wMaxPacketSize | |||
num_bytes_written = 0 | |||
while num_bytes_written < payload_size: | |||
payload_out = array.array('B', (num_bytes_written/ep_out.wMaxPacketSize | |||
for _ in range(ep_out.wMaxPacketSize))) | |||
payload_out = array.array('B', ([num_bytes_written//ep_out.wMaxPacketSize] * ep_out.wMaxPacketSize)) |
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 would prefer to have a specific PR for this "common" test part ?
(to be tested with all other targets?)
@@ -3421,7 +3421,8 @@ | |||
"SERIAL_ASYNCH", | |||
"TRNG", | |||
"FLASH", | |||
"MPU" | |||
"MPU", | |||
"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.
Can't be part of PR, as board doesn't have any USB connection.
This part has to be part of mbed_app.json
For your information, I am able to run USB serial and mouse examples! |
Only HID and basic. There are issues with a couple of basic ones - which is why this PR is here so they can be addressed. |
Hi all I have started STM32 USB "refactor". Please have a look on master...jeromecoutant:DEV_USB_STM32 I currently tested L4 and F4. |
@jeromecoutant, I checked your branch (currently at 9cac20e, compiled with GCC_ARM) with:
Both fail I had to update 2 lines to compile successfully; please see fkjagodzinski@6e2467b. Please note that the |
About your patch, I agree.. I made some last minute file renaming.... |
@paul-szczepanek-arm sorry to keep you waiting. I checked this branch locally; here are the results of
To sum up, this implementation still needs a bit of work with regard to control transfer handling. BTW, I can see quite a few of these errors give very verbose Python tracebacks. I'll prepare a patch for the host script and update the error handling. The current output is a bit messy and can be confusing for the user. |
I have updated my working branch : https://github.com/jeromecoutant/mbed/tree/DEV_USB_STM32 |
Updated error formatting in #11540. |
Hi all |
@paul-szczepanek-arm is this still worth keeping opened? |
I think this has served its purpose. Thanks. |
Description
Add USB device support for L073RZ.
DO NOT MERGE.
Pull request type
Reviewers
@fkjagodzinski
@jamesbeyond
Release Notes