cancel
Showing results for 
Search instead for 
Did you mean: 

My USB HOST (Mass Storage Device) Code is Reset the processor when i connected the Pendrive?

MSury.1
Associate II

My USB HOST (Mass Storage Device) Code is running fine in STM32CUBEMX System work Bench but When this code is implementing in Kiel Software when i am connected the pendrive to my USB HOST Port then my processor get stop and remove the pendrive and i got the watchdog reset and run code as Host idle mode.

1 REPLY 1

Hardfault happens?

If yes, instrument hardfault and debug as usually, i.e. from stack find out the offending code etc. This has been discussed here several times.

You may want to disable watchdog during debugging, so it does not interfere.

JW