-
Notifications
You must be signed in to change notification settings - Fork 19
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
USB Middleware #1365
USB Middleware #1365
Conversation
ef5dbfd
to
2f9424b
Compare
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 am lowkey leaning on not using the STM generated stuff for CDC level of USB at least cause it seems very big and confusing.
Is the delieverable here to have any communication between USB and STM? I assume in a later PR you will do the migration for Chimera from UART to USB.
Overall very good work, and I look forward to the demo on software-dubs
Whoops - should have left this as draft, need to bring back that |
2f9424b
to
c860ec1
Compare
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.
last few things
firmware/cmake/stmlib.cmake
Outdated
@@ -81,9 +84,16 @@ function(stm32f412rx_cube_library | |||
"${SEGGER_SYSTEMVIEW_SOURCE_DIR}/Sample/FreeRTOSV10" | |||
) | |||
|
|||
file(GLOB USB_SRCS |
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.
no glob required
please move to line 126
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.
actually why this cause down there it's the same files
…d USB_ENABLED flag.
### Changelist - Added USB middleware flag to stm32 h7 and f4 binary building functions. - Setup USB Echo Program on F4 and H7 (H7 not tested due to clock misconfiguration). ### Testing Done - USB Device Appears as device when plugged into computer (f4dev). - Able to communicate with f4dev via pyusb (@setaremalekiii). - h7dev untested, to be done when clock configs fixed. - Ran subsequent `hw_usb` library on top of this one, usb comms working awesome. ### Resolved Tickets [FIRM-159](https://ubcformulaelectric.atlassian.net/browse/FIRM-159) [FIRM-159]: https://ubcformulaelectric.atlassian.net/browse/FIRM-159?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Changelist
Testing Done
hw_usb
library on top of this one, usb comms working awesome.Resolved Tickets
FIRM-159