Skip to main content
KMoth.1
Associate
February 16, 2023
Question

I am using NUCLEO-H7A3 board and getting hard fault error in USB host -CDC method. Any relevant examples in USB host and device can be helpful.

..

This topic has been closed for replies.

3 replies

KMoth.1
KMoth.1Author
Associate
February 16, 2023

Here, I tried with USB host method this example code USB CDC Device and HOST in STM32 » ControllersTech , the problem is the "Appli_state" is not entering the "Application_Ready " state, it is present in Application_Idle state. I am not sure, what am I missing. Please help me.

IChak.1
Associate II
February 18, 2023

I've faced the same problem with my stm32f407g-disc1 board, in this tuto " https://www.youtube.com/watch?v=V3sMN-ErKPw&list=PLnMKNibPkDnFFRBVD206EfnnHhQZI4Hxa&index=20 "

The question is what makes Appli_state change from Application_IDLE to Application_Ready ?

Anyone could help please !

AScha.3
Super User
February 18, 2023

try to look with debug - break point : is Appli_state = APPLICATION_START; coming ?

 if not, big problem ! maybe hardware/wires wrong.

in usb_host.c :

0693W00000aH97OQAS.pngafaik app_ready is set, when device is ready . :)

means, after handshake ok and enumeration success ...

and try for first without DMA template . (i got it not working with DMA (caches ON) )

+ and also first test with D-cache off -- or if errors or not working

If you feel a post has answered your question, please click on " Best Answer ".