Skip to main content
Visitor II
September 21, 2021
Solved

Is STM32_USB_Device_Library portable or usable for STM32U5?

  • September 21, 2021
  • 10 replies
  • 6677 views

I wonder if the STM32_USB_Device_Library middleware is compatible with STM32U5?

I can see that the USBX has been included in the Cube as the host/device library for U5 but since we want to migrate from STM32L5 to STM32U5 and we have already our usb communication based on STM32_USB_Device_Library, that might be great to see if STM32_USB_Device_Library could be ported or used on STM32U5? Otherwise we have to refactor our usb communication to use USBX library

Thank you in advance

    This topic has been closed for replies.
    Best answer by Imen.D

    Dear @Ramin​ ,

    I'm pleased to announce you that the STM32U5 Classic Core Middleware (CoreMW) MCU Firmware Package is now available on GitHub :).

    Thank you once again for your patience and for your contribution.

    Imen

    10 replies

    Technical Moderator
    September 22, 2021

    Hello @Ramin​ and welcome to the Community :)

    In the STM32U5 there is now USBX (AzureRTOS) and the device legacy ST lib is still compatible with all available MCUs.

    You can get latest tags from github or use the one of STM32L5, this is HW independent.

    However, there will be examples supporting STM32_USB_Device_Library in Github (but I can't give you any target date for the moment).

    There is also an AN5371 Application note "STM32L5 Series to STM32U575/585 migration guide" it may help you on the migration.

    When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Imen

    Ramin1Author
    Visitor II
    September 22, 2021

    Thank you Imen for getting back to me.

    On which Github repo shall we expecting this example and is there any worst case estimation about the time there?

    I think we should adapt and replace the usbd and usb_conf templates(h and c) for STM32U5 and that would do the trick, right?

    Best Regards,

    Ramin

    Technical Moderator
    September 22, 2021

    Here is the link for the USB device lib Middleware.

    For sure you need to adapt the usbd_conf for OTG IP.

    Let me check back with the team about the expected delivery date, and I will come back to you with update.

    Imen

    Ramin1Author
    Visitor II
    September 22, 2021

    Appreciate your help, actually we will be using U5 as a device only, not host.

    That would be great to see if by when we will be having that example in the github repo. I look forward to receving your feedback.

    Ramin

    Technical Moderator
    September 22, 2021

    I have the pleasure to inform that the STM32U5 Classic CoreMW package will be available on GitHub in few days :) .

    So, keep an eye out for the coming update.

    Imen

    Ramin1Author
    Visitor II
    September 22, 2021

    Wow, that is a great news for us, on the same repo here https://github.com/STMicroelectronics/stm32_mw_usb_device? or somewhere else?

    Technical Moderator
    September 22, 2021

    I'll make sure to post the announcement here with the GitHub link, as soon as I have more details.

    Ramin1Author
    Visitor II
    September 22, 2021

    I do appreciate your support,

    Ramin

    Ramin1Author
    Visitor II
    October 4, 2021

    Dear @Imen DAHMEN​ ,

    I wonder if you might already have any update for me on this regard? We are eager and have to start the usb library integration this week.

    Thank you in advance,

    Ramin

    Technical Moderator
    October 4, 2021

    Hi @Ramin​ ,

    Final review in progress, hopefully publication will be available this week.

    I will get back to you as soon as the publication is made.

    Thank you for your patience while we work on this, and I count on your kind understanding.

    Imen

    Imen.DAnswer
    Technical Moderator
    October 7, 2021

    Dear @Ramin​ ,

    I'm pleased to announce you that the STM32U5 Classic Core Middleware (CoreMW) MCU Firmware Package is now available on GitHub :).

    Thank you once again for your patience and for your contribution.

    Imen

    Visitor II
    March 14, 2022

    @Imen DAHMEN​ I am trying to implement USB VCP (device only).

    I am using this U5 board first time. Could you share an example or link to simple USB communication using STM32U5.

    Visitor II
    April 14, 2022

    Can I get some assistance how to implement the STM32U5 Classic Core Middleware (CoreMW) MCU Firmware Package . With other sample projects, there are usually .ioc, .cproject, .project files. With those, I simply import as project, compile and go. This package does not appear to contain any projects, just directory of files.

    Visitor II
    April 14, 2022

    I am attempting to integrate USB Device - HID Standalone into my existing project.

    Visitor II
    December 21, 2022

    Hello @Imen DAHMEN​ 

    I think there is a small variable naming error in function

    USBD_StatusTypeDef USBD_LL_SetUSBAddress(USBD_HandleTypeDef *pdev,
     uint8_t dev_addr)
    {
     UNUSED(pdev);
     UNUSED(ep_addr);
     
     return USBD_OK;
    }

    in file

    stm32u5-classic-coremw-apps-main\Middlewares\ST\STM32_USB_Device_Library\Core\Src\usbd_conf_template.c

    BR

    Paul