Skip to main content
Visitor II
December 29, 2024
Solved

Getting started with NUCLEO-H7S3L8 USB

  • December 29, 2024
  • 4 replies
  • 1645 views

Hi,

I'm trying to get started with the STM32 NUCLEO-H7S3L8 board to create a USB HS device. I am new to the boot/application split development (also to trustzone) and don't know where to find the right resources to get started. I have tried using the STM32CubeIDE examples importer but keep receiving "failed to copy error" which I don't know how to debug. I have also tried loading the project from the git repo, I can compile and run the boot project but know how to properly setup the application project to run as well.

I would really appreciate some pointers on where to find the information to get the CDC_Standalone example running and how to develop with the boot and application.

Apologies I can't be more specific, I seem a little out of my depth and don't know where to start!

    This topic has been closed for replies.
    Best answer by Linduri

    After reading around for a considerable time I discovered that the STMCube code generator always sets the USB reference clock to 24MHz (unfortunately I have mis-placed the link to the post) which then conflicts with the HAL USB Init.

    The problem was fixed by setting the USBPHYC Clock Mux to use the NUCELO-H7S3L8 external 24MHz HSE.

    4 replies

    ST Employee
    December 30, 2024
    Super User
    December 30, 2024

    In addition to the links above, here you can help and support with your STM32 project.

    https://www.fiverr.com/categories/programming-tech/electronics-engineering/embedded-systems-iot?ref=platform%3Astm32

     

    LinduriAuthorAnswer
    Visitor II
    January 14, 2025

    After reading around for a considerable time I discovered that the STMCube code generator always sets the USB reference clock to 24MHz (unfortunately I have mis-placed the link to the post) which then conflicts with the HAL USB Init.

    The problem was fixed by setting the USBPHYC Clock Mux to use the NUCELO-H7S3L8 external 24MHz HSE.

    Graduate II
    February 16, 2025

    Hello @Linduri,

    Could you please share your minimal working USB Device ioc file if possible ?

    I am trying to setting it up without success...

    Thanks,

    s.

    LinduriAuthor
    Visitor II
    February 17, 2025

    After further communication with ST they helped me diagnosed that I had failed to correctly enable the internal USB power regulator. I have attached the minimal IOC for your convenience.

    Graduate II
    February 17, 2025

    Thanks, @Linduri.

    My setup is quiet different, taken from the CDC_Standalone.ioc example, so booting from external flash and USB HS Device. I also think that UCPD setup is required for this purpose (CDC_Standalone.ioc enables it by default).

    I will also test yours.

    s.