cancel
Showing results for 
Search instead for 
Did you mean: 

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.

KMoth.1
Associate
 
3 REPLIES 3
KMoth.1
Associate

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

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
Chief II

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 "Accept as Solution".