cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Resetting itself (Nucleo 64)

Andres Cao
Associate III
Posted on April 14, 2017 at 00:58

Hi!

I have a Nucleo64-446RE and every 5/10 minutes the board resets itself.

I'm using the Virtual COM to send data to my PC and plot it (among many other things), and when the board resets I lose the Serial connection. I need to re-open it in order to plot again. If after this reset I want to program the microcontroller I get the ''Unable to reset target'' message for which I need to unplug and replug the USB(which is also powering the board). I'm using the System Workbench for STM32.

Here's an oscilloscope picture of the NRST pin (blue), which confirms the reset. The red trace is a 3.3V pin, which shows there are no power issues. 

0690X00000606kYQAQ.png

Can you please help me debug this reset?

As I understand, it can't be a Hard Fault because (I think) in that case the system wouldn't reset but end up in an infinite loop. I haven't implemented any of the error handlers, but I think they're implemented by default with weak attributes.

Watching the following image:

0690X00000606llQAA.png

From external sources:

  • Definitely I'm not pressing the reset button
  • The ST-LINK could be resetting. How likely is this, why would it? Given that Virtual Com connection is lost it could be the case, since if I press the reset button the Virtual Com connection is not lost.

From internal sources:

  • WWDG is not activated
  • IWDG is not activated
  • Red trace would prove it's not a power reset
  • There's no lower-power mode being used.
  • Software reset, this would be the only option. What causes a software reset?

Thank you very much in advance for all your input!

Cheers,

Andrés

51 REPLIES 51
Daniel Dyck
Associate
Posted on May 31, 2017 at 19:49

I have uninstalled ALL Dell support software and it is still reinstalling the driver every time I unplug and plug in the board, after manually removing it. I am running Windows 10 on a Dell Precision Tower 3420. 

Anyone encounter this problem?

Posted on June 02, 2017 at 01:59

Yes, happened to me too on my Dell (window 10).  STLink debug driver will reinstall (when ST board is connected) even u uninstalled. 

Which should not caused you problem.

I find out the issue with below, it is due to Mv18 on board, I managed to borrow a board which has Mv15 STlink frimware.

The ERROR message is not show anymore. 

Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED

Info : STLINK v2 JTAG v28 API v2 M v18 VID 0x0483 PID 0x374B

I am able to ask anyone know where to get previous version of stsw-link007

Mark Peter Vargha
Associate III
Posted on March 07, 2018 at 06:26

The ST-Link V2-1 (with mass storage) is unusable. Randomly disconnects, resets target, ST-Link not found error, etc. Standalone ST-Link V2-0 is rock solid and works fine. It would be so nice to let us officially downgrade the onboard debugger. The hardware is the SAME.

There is only the unofficial way now: Download standalone ST-Link's old firmware binary from some dev forum, reflash onboard STM32F103, and update with official tool. It works fine.

I never missed the mass storage mode. Virtual serial port would be nice to have, but working debug is more important.

Posted on March 07, 2018 at 07:11

You could always convert it to a J-LINK OB

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on March 07, 2018 at 07:20

Yes, I know. I tried, but I did not like.

Posted on March 08, 2018 at 17:20

If you are using Dell, uninstall the Dell Service Application/Agent, which cause problem.

After I uninstall it, problem never come back for 9 months

Posted on March 08, 2018 at 17:50

I use a no-brand i7 desktop, a Lenovo notebook and two HP notebooks...

AndyJT
Associate III

I had a similar issue developing on a 144 pin Nucleo-L496ZG.

It would reset every 10 minutes or so. If debugging then I'd get an exception and breakpoint at the start of main. If not debugging (just powering through the onboard ST Link) then I'd keep hearing the USB virtual com port drop out on the PC.

I seem to have cured this now by powering the Nucleo board off an external 5V supply connected to the Morpho pins. (Remember to swap jumper JP6 to the E5V setting and make sure JP1 is removed)

Hope this helps.

JKing.5
Associate

I have a total of four Dells. A PC and laptop both at home and at work. All exhibited the periodic reset. I stopped and disabled all Dell services on the home PC. My Nucleo has now been running for three hours without a reset. Can't wait to try it on the other Dells.

Thank you to all who suggested the Support Assist and agent. It has been a frustrating issue.

AMaci.16
Associate II

Thank you all guys, using STM32NucleoF411RE on a Dell Inspiron 3521 and almost quit on learning ST microcontrollers because of this periodical reset issue. Uninstalling Dell SupportAssist solved the problem.

regards,

Alberto M