Skip to main content
Explorer
January 23, 2025
Question

USB project on H7a3 not running

  • January 23, 2025
  • 2 replies
  • 860 views

i'm trying to learn about ST USB LIBRARY AND CLASSES . i tried to run an example on my stm32h7a3ZI-Q board but i didn't succeed . i tried the HID class to make the board act like a mouse . i really copied the MOOC tutorial video step by step and the code was compiled with 0 error  but when i run it ,nothing happen when i press the blue button( i checked it in an other led blinking project and the button is working fine) .  so i tried the keyboard tutorial from the mooc tutorial also but the serial monitor didnt show anything . i checked the internet and it appears the board lacks a VCP so i tried to run a project with the CDC class to simulate a VCP to link the board with the serial monitor but also it didn't show anything despite  code was clean from any error and im pretty sure i used the right functions(CDC_TRANSMIT_HS) . i used CN1  if this helps . so is there any guide? . i really didnt now where i went wrong . i didn't find any article that guides me to run a project step by step like (webcam on h747i for example) i also tried the  USB _standalone project .in the readme they said i only need to plug the board and run the project but when i did nothing happend . the cursor didnt move when i clicked the blue button. 

here is the video i followed : https://youtu.be/6MJJwDKsKsc?si=t5FA9LdYFcq1V_7C

Please Help

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    January 23, 2025

    Hi @yessine 

    Are you using NUCLEO-H7A3ZI-Q? Did you check the example provided in cube firmware?

    yessineAuthor
    Explorer
    January 23, 2025

    yes  im using that board . and i tried the example provided. the cursor didnt move despite the code compiled with 0 errors and i managed to run it .  the only thing that i didnt follow is that i used  the CN1 connector(micro typeB  to power the board and run the project ) not the CN13 as mentioned in the readme file because i didnt find the cable that fit CN13 . i mean a normal micro type B cable can fit in the CN13 PORT but he doesnt power the board(so i didnt know if its the right cable or not) . can you provide a picture for the cable that CN13 needs if this may be the problem or is there any jumper that i need to change . i really ran out of  ideas