- Forum
- Roboteq Motor Controllers
- Troubleshooting
- controller unresponsive on serial port and in dfu mode on usb port
controller unresponsive on serial port and in dfu mode on usb port
7 years 6 months ago #29531419
by rrvt
We have a SDC2130S that will occasionally stop functioning. When it stops functioning, the serial port will become unresponsive and the USB port enters into dfu mode (the kernel log of the usb port enumeration is below). The only way we have figure out how to fix it is to use the roborun software to reload the firmware.
What could be causing this to happen? Is there some command sequence that will put it into this mode? Is the firmware getting corrupted somehow? Any ideas would be helpful.
[ 59.590725] usb 2-5.6: new full-speed USB device number 10 using xhci_hcd
[ 59.608010] usb 2-5.6: New USB device found, idVendor=0483, idProduct=df11
[ 59.608015] usb 2-5.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 59.608017] usb 2-5.6: Product: STM32 DFU
[ 59.608019] usb 2-5.6: Manufacturer: STMicroelectronics
[ 59.608021] usb 2-5.6: SerialNumber: U\xffffffc3\xffffffbf\xffffffbfs\x06g\xffffffc2\xffffff85\xffffff85SI\x13\x14\x15g
[ 60.668109] usb 2-5.6: USB disconnect, device number 10
[ 60.870339] usb 2-5.6: new full-speed USB device number 11 using xhci_hcd
[ 60.888002] usb 2-5.6: New USB device found, idVendor=0483, idProduct=df11
[ 60.888005] usb 2-5.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 60.888006] usb 2-5.6: Product: STM32 DFU
[ 60.888008] usb 2-5.6: Manufacturer: STMicroelectronics
[ 60.888009] usb 2-5.6: SerialNumber: U\xffffffc3\xffffffbf\xffffffbfs\x06g\xffffffc2\xffffff85\xffffff85SI\x13\x14\x15g
What could be causing this to happen? Is there some command sequence that will put it into this mode? Is the firmware getting corrupted somehow? Any ideas would be helpful.
[ 59.590725] usb 2-5.6: new full-speed USB device number 10 using xhci_hcd
[ 59.608010] usb 2-5.6: New USB device found, idVendor=0483, idProduct=df11
[ 59.608015] usb 2-5.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 59.608017] usb 2-5.6: Product: STM32 DFU
[ 59.608019] usb 2-5.6: Manufacturer: STMicroelectronics
[ 59.608021] usb 2-5.6: SerialNumber: U\xffffffc3\xffffffbf\xffffffbfs\x06g\xffffffc2\xffffff85\xffffff85SI\x13\x14\x15g
[ 60.668109] usb 2-5.6: USB disconnect, device number 10
[ 60.870339] usb 2-5.6: new full-speed USB device number 11 using xhci_hcd
[ 60.888002] usb 2-5.6: New USB device found, idVendor=0483, idProduct=df11
[ 60.888005] usb 2-5.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 60.888006] usb 2-5.6: Product: STM32 DFU
[ 60.888008] usb 2-5.6: Manufacturer: STMicroelectronics
[ 60.888009] usb 2-5.6: SerialNumber: U\xffffffc3\xffffffbf\xffffffbfs\x06g\xffffffc2\xffffff85\xffffff85SI\x13\x14\x15g
Please Log in or Create an account to join the conversation.
7 years 6 months ago #29531424
by niko
Replied by niko on topic controller unresponsive on serial port and in dfu mode on usb port
Hello,
Looks like a hard recovery issue. Check if DIN1 and RS232 Out are shorted.
Looks like a hard recovery issue. Check if DIN1 and RS232 Out are shorted.
Please Log in or Create an account to join the conversation.
7 years 3 months ago #29531705
by djyelee
Replied by djyelee on topic controller unresponsive on serial port and in dfu mode on usb port
I have been using USB for a long time without any issues. However, it just happened now that the COM port (through USB) disappeared and it showed as STM32 DFU under Other Devices in Windows 7 device manager. Any idea how to get it back?
Please Log in or Create an account to join the conversation.
7 years 3 months ago #29531718
by niko
Replied by niko on topic controller unresponsive on serial port and in dfu mode on usb port
Hello,
You enter DFU mode when
- you have pressed the button "Upgrade Firmware via USB". So rebooting the controller will get you back to normal mode.
- the hard recovery system has been triggered. Check whether DIN1 and RS232 Out are shorted.
- When there is no valid firmware on board. In that case open DFULoader and install the latest release.
You enter DFU mode when
- you have pressed the button "Upgrade Firmware via USB". So rebooting the controller will get you back to normal mode.
- the hard recovery system has been triggered. Check whether DIN1 and RS232 Out are shorted.
- When there is no valid firmware on board. In that case open DFULoader and install the latest release.
Please Log in or Create an account to join the conversation.
7 years 3 months ago #29531722
by djyelee
Replied by djyelee on topic controller unresponsive on serial port and in dfu mode on usb port
Hi Niko,
I am not sure what happened. It was not the first two for sure when it happened. I did more working using another board. I suspect it may be related to my script (see below). It somehow went in to DFU mode. I see that you replied to my other more detailed post. I will reply there. Thanks.
SetCommand(_ESTOP, 1, 0)
If GetValue(_DIN, 3) > 0 then
SetCommand(_HOME, 1)
SetCommand(_MMOD, 1, 2)
SetCommand(_G, 1, 0)
End If
If GetValue(_DIN, 4) > 0 then
SetCommand(_HOME, 2)
SetCommand(_MMOD, 1, 2)
SetCommand(_G, 1, 0)
End If
SetCommand(_MG, 1, 0)
I am not sure what happened. It was not the first two for sure when it happened. I did more working using another board. I suspect it may be related to my script (see below). It somehow went in to DFU mode. I see that you replied to my other more detailed post. I will reply there. Thanks.
SetCommand(_ESTOP, 1, 0)
If GetValue(_DIN, 3) > 0 then
SetCommand(_HOME, 1)
SetCommand(_MMOD, 1, 2)
SetCommand(_G, 1, 0)
End If
If GetValue(_DIN, 4) > 0 then
SetCommand(_HOME, 2)
SetCommand(_MMOD, 1, 2)
SetCommand(_G, 1, 0)
End If
SetCommand(_MG, 1, 0)
Please Log in or Create an account to join the conversation.
7 years 3 months ago #29531727
by niko
Replied by niko on topic controller unresponsive on serial port and in dfu mode on usb port
The only issue I can see in your script is MMOD. MMOD is a configuration field so you have to use function setconfig instead of setcommand. The fact that you use setcommand has unpredictable effect.
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
- Forum
- Roboteq Motor Controllers
- Troubleshooting
- controller unresponsive on serial port and in dfu mode on usb port
Time to create page: 0.066 seconds