Skip to main content
voyvoda .
Senior
August 29, 2018
Solved

Problem in MSC_Standalone, STM32F4

  • August 29, 2018
  • 6 replies
  • 1277 views

When I compile and download the code. I see a USB problem.

What could be the possible solution ?

This topic has been closed for replies.
Best answer by Tesla DeLorean

>>Why should I check the PLL, HSE_VALUE, stack and heap sizes ?

Cause stuff isn't working, and this would take a couple of minutes to cross-check? You need a check-list or script to do the debugging, start with this.

>>This is the example which should run out of the box. Am I wrong ?

I don't know, you've been unsuccessful, what does that tell you about the situation and your expectations?

I don't know you, I don't know what hardware you have. STM32F4 covers dozens of different chips, and thousands of boards. You're lack of specificity make remote diagnosis really hard to do.

6 replies

Pavel A.
August 29, 2018

It is USB enumeration error. Win10 usually displays better/more detailed reason than older versions so try it.

Debug the USB code on the STM32 side to get to the root case.

-- pa

voyvoda .
voyvoda .Author
Senior
September 3, 2018

I have already used Win10.

Which I should pay attention in the STM code side ?

Tesla DeLorean
Guru
September 3, 2018

The descriptors might be a good starting point?

Make sure your clock, PLL, and HSE_VALUE sets are correct.

Make sure the stack and heap sizes are sufficient.

Instrument your code to see what interactions are occuring, and where things stop functioning.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
voyvoda .
voyvoda .Author
Senior
September 3, 2018

This is the example which should run out of the box. Am I wrong ?

Why should I check the PLL, HSE_VALUE, stack and heap sizes ?

Pavel A.
September 3, 2018

Is this on your custom board or some "Discovery", "Nucleo" or other ST product?

-- pa

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
September 3, 2018

>>Why should I check the PLL, HSE_VALUE, stack and heap sizes ?

Cause stuff isn't working, and this would take a couple of minutes to cross-check? You need a check-list or script to do the debugging, start with this.

>>This is the example which should run out of the box. Am I wrong ?

I don't know, you've been unsuccessful, what does that tell you about the situation and your expectations?

I don't know you, I don't know what hardware you have. STM32F4 covers dozens of different chips, and thousands of boards. You're lack of specificity make remote diagnosis really hard to do.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..