2017-04-13 03:58 PM
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.
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:
From external sources:
From internal sources:
Thank you very much in advance for all your input!
Cheers,
Andrés
2017-04-22 09:54 AM
I don't think any of those devices attempts to spoof a mass-storage controller.
Definitely some interaction. If it still fails on the Dell's when booted from a Linux Live CD I'd suspect the hardware, but most probably a software interaction from something installed on the Dell. Toshiba, Compaq and Dell systems were always tech support nightmares.
2017-04-22 12:21 PM
It has something to do with the USB Mass Storage system. I disconnected the mbed drive using 'Safely Remove Hardware and Eject Media' taskbar icon menu item 'Eject NODE_L432KC (E:)'. The drive unmounted. A few minutes later, Windows 10 autonomously remounted the drive. The Nucleo board reset at exactly the same moment.
Next step: figure out why Windows is remounting the drive.
By the way, real-time antivirus is off. The machine is active the entire time -- no screensaver or power-down.
2017-04-22 12:58 PM
Disabling the 'MBED Microcontroller USB Device' under 'Disk drives' in Windows Device Manager seems to have solved the problem. That's not an ideal solution, but it's an acceptable temporary workaround.
2017-04-23 11:52 AM
If it is truely Dell unique, review what filter drivers are installed and attaching themselves to the USB Storage nodes.
2017-04-24 10:43 AM
I am running Windows 7 on both of the Dell laptops that have this problem.
One is a Dell Precision 3510 and the other is a Dell Precision 7710.
2017-04-24 11:20 AM
May be you can identify what Upper/Lower Filters you have attached to the USB Storage class devices.
2017-04-24 12:16 PM
MBED microcontroller USB Device Properties 'Details' Tab
Property: Class upper filters
Value: PartMgr
Property: Class lower filters
Value: iaStorF, stdcfltn
2017-04-24 12:21 PM
If it helps, on one of the Dell laptops that does not have this problem, under Class lower filters, it only has the stdcfltn filter listed.
2017-04-24 12:25 PM
In the debugger st link settings, tgere should be some options on how it interacts by swd and how the rst pin behaves. Try the options to find out if one configuration is closer to your needs.
2017-04-24 12:51 PM
I uninstalled the Dell support/diagnostic tools (OEMed from PCDoctor) before I read these latest comments, and now the problem seems to be gone. For what it's worth, here is my (working) USB device configuration now:
Class lower filters: EhStorClass, stdcfltn
Class upper filter: partmgr
Driver files:
c:\windows\system32\DRIVERS\disk.sys - Microsoft Corporation, 10.0.14393.0 (rs1_release.160715-1616)
c:\windows\system32\drivers\EhStorClass.sys - Microsoft Corporation, 10.0.14393.0 (rs1_release.160715-1616)
c:\windows\system32\drivers\partmgr.sys - Microsoft Corporation, 10.0.14393.0 (rs1_release.160715-1616)
c:\windows\system32\DRIVERS\stdcfltn.sys - ST Microelectronics, 1.00.00.12
I could reinstall the Dell support tools to further test this, but that seems counterproductive at this point.