Skip to main content
Gabriel T
Senior
Oct 26, 2020 12:23 PM UTC
Solved

STM32H743I6-EVAL2 USB HID not working

Hi,

I load a basic HID program in ST Cube IDE which is working perfectly on NUCLEO-H743ZI2

With the eval board, when i plug CN18 USB to my PC it says "Unknown USB Device (Device Descriptor Request Failed)"

I can't find where it is coming from, any ideas ?

This topic has been closed for replies.
Gabriel T
Gabriel TBest answer
Senior
Oct 26, 2020 2:15 PM UTC

The issue was related to ST Link debugger it was somehow disabling DFU. I tried without ST link connected to PC and it worked fine

5 replies

Gabriel T
Gabriel TAuthor
Senior
Oct 26, 2020 12:32 PM UTC

I fixed it but when i jump into bootloader i cant get the DFU port, do I need to do some kind of DeInit or Reset before jumping into bootloader

TDK
Oct 26, 2020 1:29 PM UTC

You need to reset everything back to the state it was in at startup. This includes resetting the USB peripheral, disabling individual interrupts.

https://community.st.com/s/article/STM32H7-bootloader-jump-from-application

"If you feel a post has answered your question, please click ""Accept as Solution""."
Gabriel T
Gabriel TAuthor
Senior
Oct 26, 2020 1:48 PM UTC

Even if i use this function at the very beginning of my code i cant detect any DFU Device with Cube Programmer

my code :

int main(void)
{
 /* USER CODE BEGIN 1 */
 
 /* USER CODE END 1 */
 
 /* MCU Configuration--------------------------------------------------------*/
 
 /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
 HAL_Init();
 
 /* USER CODE BEGIN Init */
 Bootloader_Jump();

Gabriel T
Gabriel TAuthor
Senior
Oct 26, 2020 2:06 PM UTC

It seams i must unplug the power supply between each bootload if i want the DFU port to appear, very uncommon

Gabriel T
Gabriel TAuthorBest answer
Senior
Oct 26, 2020 2:15 PM UTC

The issue was related to ST Link debugger it was somehow disabling DFU. I tried without ST link connected to PC and it worked fine