STM32f407- Discovery, USB CDC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-27 12:41 AM
Hello all,
i am using STM32f407-Discovery. I am working with USB CDC in FS mode. Code for that was generate with CubeMX and HAL libraries.
My question is if anyone has already done the USB CDC communication with SPL libraries or registers?
I want this because my other program is written with SPL libraries and i want to merge together.
Sorry for my bad english
- Labels:
-
STM32F4 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-02-27 1:02 AM
https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-standard-peripheral-library-expansion/stsw-stm32046.html is SPL based. Whether this fulfills your requirements, it's up to you to judge.
But the USB itself has quite a little hardware dependencies - you need to set some clocks, a couple of pins, one interrupt, and that's basically it - so if you think the CubeMX-generated code is OK for you, it shouldn't be too complicated to stitch it to any other code.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-03-01 3:04 AM
CubeMX generate code with HAL libraries, but i won't that. I need code with SPL libraries and i don't know, how convert code with HAL to SPL.
https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-standard-peripheral-library-expansion/stsw-stm32046.html in this code are two interrupt, one on USART and one on USB OTG.
