Skip to main content
MSury.1
Associate II
February 26, 2020
Question

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

  • February 26, 2020
  • 1 reply
  • 674 views

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.

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
February 27, 2020

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